From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: bug#23745: 25.0.94; Org: (pop-to-mark-command) doesn't work when using (org-open-at-point) to visit a same-file link Date: Sat, 11 Jun 2016 13:37:37 +0200 Message-ID: <8760tgx8fy.fsf@gmx.us> References: <87twh01tfu.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBhEZ-0005hn-UJ for emacs-orgmode@gnu.org; Sat, 11 Jun 2016 07:37:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBhEV-0003As-I4 for emacs-orgmode@gnu.org; Sat, 11 Jun 2016 07:37:46 -0400 Received: from mout.gmx.net ([212.227.15.18]:54863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBhEV-00039C-7T for emacs-orgmode@gnu.org; Sat, 11 Jun 2016 07:37:43 -0400 Received: from W530 ([46.166.190.231]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MAyZg-1bLZ8Z3Hzo-00A0gC for ; Sat, 11 Jun 2016 13:37:40 +0200 In-Reply-To: <87twh01tfu.fsf@secretsauce.net> (Dima Kogan's message of "Fri, 10 Jun 2016 17:05:09 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" Cc: emacs-orgmode@gnu.org The following message is a courtesy copy of an article that has been posted to gmane.emacs.bugs as well. Hi Dima, Thanks for the report. Dima Kogan writes: > ===================== > * aaaa > bbbbb > > * cccc > [[aaaa]] > ===================== > > With the point at the [[aaaa]] link, I can visit the aaaa heading with > C-c C-o (org-open-at-point), and I can go back to where I was with the > org-specific C-c & (org-mark-ring-goto). But I should also be able to go > back with C-u C-SPC (effectively pop-to-mark-command), since that works > for inside-the-same-buffer jumps in all other emacs context, including > non-org ones. I suspect all we would need to do is to > (push-mark-command) before we jump in (org-open-at-point). Is this > simply forgotten, or was it omitted on purpose? If the former, I'll post > a patch. I think you are right; your description of behavior would be consistent. Note that once I click C-c & at "* aaaa" and thus return to the link "[[aaaa]]" I can pop the mark to go back to "* aaaa" but the reverse is not possible. A fix for this would be appreciated. Thanks, Rasmus -- Send from my Emacs