[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trouble writing small program
From: |
jenia mtl |
Subject: |
trouble writing small program |
Date: |
Fri, 5 Jun 2015 09:57:17 -0400 |
Hello:
Using evil and ggtags, I want to be able to jump back, using C-o, to the
position where I execute
ggtags-find-tag-dwim.
I have wrote this small program:
(defun ggtags-go-to-definition ()
(interactive)
(let ((current-pos (make-marker)))
(add-to-list 'evil-jump-list current-pos)
(ggtags-find-tag-dwim (thing-at-point 'symbol))))
But it gives me the error "Marker does not point anywhere".
Can someone please tell me, how do I write this program correctly? That
is, I want to store the position before executing `ggtags...` and then
be able to jump back (using "C-o" a.k.a "evil-jump-back").
Thanks in advance for your kind help.
Jenia
- trouble writing small program,
jenia mtl <=