From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.bugs Subject: 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__45318.5440660038$1465645187$gmane$org@gmx.us> References: <87twh01tfu.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1465645187 25238 80.91.229.3 (11 Jun 2016 11:39:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2016 11:39:47 +0000 (UTC) To: 23745@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 11 13:39:35 2016 Return-path: Envelope-to: geb-bug-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 1bBhGJ-0000KP-2t for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Jun 2016 13:39:35 +0200 Original-Received: from localhost ([::1]:46612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBhGI-0006ja-Eh for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Jun 2016 07:39:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBhFr-0006Uu-O3 for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2016 07:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBhFq-0003lu-Ox for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2016 07:39:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBhFm-0003k4-99; Sat, 11 Jun 2016 07:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bBhFm-0002LY-4h; Sat, 11 Jun 2016 07:39:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87twh01tfu.fsf@secretsauce.net> Resent-From: Rasmus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sat, 11 Jun 2016 11:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23745 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Cc: emacs-orgmode@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14656450908959 (code B ref -1); Sat, 11 Jun 2016 11:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jun 2016 11:38:10 +0000 Original-Received: from localhost ([127.0.0.1]:36460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bBhEw-0002KR-3F for submit@debbugs.gnu.org; Sat, 11 Jun 2016 07:38:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bBhEu-0002K4-1Z for submit@debbugs.gnu.org; Sat, 11 Jun 2016 07:38:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBhEn-0003KO-VD for submit@debbugs.gnu.org; Sat, 11 Jun 2016 07:38:02 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBhEn-0003KI-Sn for submit@debbugs.gnu.org; Sat, 11 Jun 2016 07:38:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBhEl-0005vp-N6 for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2016 07:38:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBhEh-0003GZ-EQ for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2016 07:37:58 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBhEh-0003BP-7Q for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2016 07:37:55 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bBhEa-0007EY-Bb for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2016 13:37:48 +0200 Original-Received: from 46.166.190.231 ([46.166.190.231]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2016 13:37:48 +0200 Original-Received: from rasmus by 46.166.190.231 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2016 13:37:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 46.166.190.231 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAnRSTlMA/iyWEiMAAAACYktH RAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAjNJREFUSMe1lsGNIzsMRH15+VQmlUqFwlAY CiMS9qDucdtuD7D78QX4YFtPJFVUSY/1l+Pxj0AbqOO36ZrfgTFytfa0EaD+DRBxTR0h4ukS+Q6Y UC2AJBZOJl+Ix1qNyYCrAhIg8xPwE4jE2DGqTqoNgjFfAEtUzDnUJRvPbYjHWhJvo6YMI+Y+JfxO yMAKN8Qu+oMA3ESfWT1WgGp4wzSCCL2p/iglZUC1Qm2ZUcY7N4Gvqj/iOoue3h88U89y9KL6Y1As CfWysvbMdHVftsCXGhqc1K5hWmABR057XPrksdYqwVWLqaqjt54x5uU8DBf1NJ97HPn1APkCdN2o EvoVeOaU5k5G6UuErcRHryiH6D9AfpuPZO2kThM4GlD388EEzcVmjhruCwCsgzgB0wYtU/c5mU2c QBOrssTMXbOrD8F/nK+gJiPKee7+GDA7NoR5WmVR+8io8FRSPV05FnfPDnHx1khENIWrusqCPlpF 8QjbVzOeUKI4z6xiyngCFJlq68W9d0oUCjWz1shF3EABNdQbUFAE5TAxKTQpKGzkdQOoUI7+l61i r1Nr5u1CqQ3kBxis/ZU6+vsFCIXq8ndTeAN9Aww2qp1D7xKMQ3Qfodj7d2S8VhNwKNAdIBuUnVLO U6Ic63wCREBZUMpayy5wrC+APFHXoetaq+iZ5XwDGveUirOGZSTIVLoPZd6E2xabPjexk3jffrl9 CUy3SD19a53OWN+fDgHydvXMf35r/I/AH5DaBVjP2kHeAAAAAElFTkSuQmCC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:E5KQUJcB7U/15n6AIHgo0azpk/E= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119413 Archived-At: 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