From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jenia mtl Newsgroups: gmane.emacs.help Subject: trouble writing small program Date: Fri, 5 Jun 2015 09:57:17 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1433519222 3657 80.91.229.3 (5 Jun 2015 15:47:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 15:47:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 17:46:43 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z0tpJ-00083j-90 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 17:46:33 +0200 Original-Received: from localhost ([::1]:48251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0tpI-0002Uc-Nv for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 11:46:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0s7g-0004L7-BW for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 09:57:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0s7b-00076C-Cg for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 09:57:24 -0400 Original-Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:35291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0s7b-00075o-6E for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 09:57:19 -0400 Original-Received: by wgme6 with SMTP id e6so57510281wgm.2 for ; Fri, 05 Jun 2015 06:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NYCbUpp3xjnlqwOpjgPqcG8HHYuKf6PaTc5CQfxThbE=; b=RCOFrtq6LshiUcjww43gOP/jLgCQKE/lRGa+nN4IffgvJN0SAVXPkXycVc2fi2YbrB XOKVnZTyLHj8UAXhPD41aAqlpuCuEo1CSHONRwvkKKVsv+Y6UJOSdJeL1L5ZqDbhDB+t j1Z0/sGwgcc7W5AGIumueogBTkD93g+HwYC8ngsIUtby1YVWmj5hMb9KDGG1xRZKfwIG U/KzvViYWdoMmlmDCoCnYgmyTkoCM/JFJjbBBAU1zeqAQ84K6LHSl3LMwexTvNvkwZOC 9sVgfRCDbwjObg0e9lxAgmUclmMUwJTkLCrGd1zaUVU0hT4O9esrsmPiwAyq8IHwY0zP gLHA== X-Received: by 10.180.84.6 with SMTP id u6mr18536760wiy.87.1433512637461; Fri, 05 Jun 2015 06:57:17 -0700 (PDT) Original-Received: by 10.194.67.232 with HTTP; Fri, 5 Jun 2015 06:57:17 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::229 X-Mailman-Approved-At: Fri, 05 Jun 2015 11:27:45 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104769 Archived-At: 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