From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: Re: [RFC] Could we get rid of Org specific "mark ring" Date: Tue, 30 Jan 2018 15:53:10 -0800 Message-ID: References: <87o9lcntdq.fsf@nicolasgoaziou.fr> <87po5rxcgq.fsf@nicolasgoaziou.fr> <87fu6nx93a.fsf@nicolasgoaziou.fr> <87bmhbx7z6.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eggSr-0007hx-Iu for emacs-orgmode@gnu.org; Tue, 30 Jan 2018 19:42:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eggSK-0003Nb-7K for emacs-orgmode@gnu.org; Tue, 30 Jan 2018 19:41:25 -0500 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:44708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eggSJ-0003Mu-LQ for emacs-orgmode@gnu.org; Tue, 30 Jan 2018 19:40:51 -0500 Received: by mail-qk0-x233.google.com with SMTP id n188so1266404qkn.11 for ; Tue, 30 Jan 2018 16:40:51 -0800 (PST) In-Reply-To: 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" To: Samuel Wales Cc: Org Mode List , Nicolas Goaziou On Tue, Jan 30, 2018 at 3:15 PM, Samuel Wales wrote: > On 1/30/18, Nicolas Goaziou wrote: >> With local ring, you do, not with global one. That is standard Emacs >> behaviour. > > does this constitute a change in org behavior? i'd want the same > behavior as now. it would be confusing to follow a link, then follow > another link in the same buffer, then go back globally, and end up not > in the original place [or even the same buffer]. It does change org behavior, since the native mark ring distinguishes local from global, whereas org-mark-ring does not. With the proposed change, there won't be a single org-mark-ring-goto, you would have to make sure you call the right command out of pop-to-mark-command or pop-global-mark. As a counterpoint, it is not entirely without precedent to implement our own mark ring. xref.el also has its own "marker" ring. Maybe there should be a standard specialized marker ring macro in Emacs, then org and xref (and others) can use it. > > probably i have the wrong end of the stick. but i find that asking > weird questions like this can lead to people being on the same page > where they were not. >