emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Samuel Wales <samologist@gmail.com>
Cc: Allen Li <vianchielfaura@gmail.com>,
	Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [RFC] Could we get rid of Org specific "mark ring"
Date: Wed, 31 Jan 2018 12:40:28 +0100	[thread overview]
Message-ID: <87lggew91v.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAJcAo8uY=unNM5sfTMhGt1ijKc-RJzNtEbTeObGGw-OdQD4XaQ@mail.gmail.com> (Samuel Wales's message of "Tue, 30 Jan 2018 19:02:52 -0700")

Hello,

Samuel Wales <samologist@gmail.com> writes:

> On 1/30/18, Allen Li <vianchielfaura@gmail.com> wrote:
>> 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.
>
> thanks.  then i oppose this change.
>
> it seems crazy to have to think about whether where you will be going
> is in the same buffer or not.  if that is what you mean.

It isn't crazy at all, and works surprising well in practice. Mark ring
is about finding some place you were before. Usually, at least for me,
the document where that place was is known. Once you are there, the
local ring can probably get you back to the desired location. Have you
tried regular Emacs mark ring?

In the current situation, you have to answer a more difficult question:
"Did I move to the desired location using Org tools or other Emacs
tools?". In the former case, I have to use Org specific ring (C-c &,
assuming it is accessible), otherwise, this is Emacs mark ring. So,
e.g., if I follow a link, this is C-c &, if I do an isearch, this is C-u
C-<SPC>. This is exactly what bug #23745 is about. A user is following
an Org internal link and is surprised, rightfully IMO, that C-u C-<SPC>
doesn't get it back to where it was before.

The crazier situation may not be the one you think.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2018-01-31 11:40 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-29 23:21 [RFC] Could we get rid of Org specific "mark ring" Nicolas Goaziou
2018-01-30  5:06 ` Allen Li
2018-01-30 11:35   ` Kaushal Modi
2018-01-30 12:02     ` Rasmus
2018-01-30 12:36     ` Tim Cross
2018-01-30 20:47 ` Samuel Wales
2018-01-30 21:29   ` Nicolas Goaziou
2018-01-30 22:30     ` Samuel Wales
2018-01-30 22:33       ` Samuel Wales
2018-01-30 22:42       ` Nicolas Goaziou
2018-01-30 23:00         ` Samuel Wales
2018-01-30 23:06           ` Nicolas Goaziou
2018-01-30 23:15             ` Samuel Wales
2018-01-30 23:53               ` Allen Li
2018-01-31  2:02                 ` Samuel Wales
2018-01-31 11:40                   ` Nicolas Goaziou [this message]
2018-01-31 19:24                     ` Samuel Wales
2018-01-31 19:29                       ` Samuel Wales
2018-02-24 22:30                       ` Nicolas Goaziou
2018-02-24 23:50                         ` Samuel Wales
2018-02-25  8:08                           ` Nicolas Goaziou
2018-02-25 20:28                             ` Samuel Wales
2018-02-27  0:27                               ` Nicolas Goaziou
2018-02-27  1:54                                 ` Samuel Wales
2018-02-27  7:09                                   ` Allen Li
2018-02-27 15:53                                     ` Nicolas Goaziou
2018-02-27 20:40                                       ` Samuel Wales
2018-02-27 20:48                                         ` Samuel Wales
2018-02-25  0:02                         ` Samuel Wales
2018-04-26 23:34 ` Bastien
2018-04-27  0:32   ` Samuel Wales
2018-04-27  1:21     ` Bastien
2018-04-27  1:24       ` Samuel Wales
2018-04-27  1:56         ` Bastien
2018-05-03 22:04           ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lggew91v.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    --cc=vianchielfaura@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).