help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trouble writing small program


From: Pascal J. Bourguignon
Subject: Re: trouble writing small program
Date: Fri, 05 Jun 2015 17:35:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

jenia mtl <jenia.ivlev@gmail.com> writes:

> 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...` 

You can store it using set-marker.

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]