unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: master fbc9c59: Make goto-line-history buffer local only when so customized
Date: Fri, 26 Feb 2021 13:15:02 +0000	[thread overview]
Message-ID: <875z2f3r8p.fsf@tcd.ie> (raw)
In-Reply-To: <YDjxOnQb5I9Lsf9+@ACM> (Alan Mackenzie's message of "Fri, 26 Feb 2021 13:01:46 +0000")

Alan Mackenzie <acm@muc.de> writes:

>> > ++++
>> > +** The history list for the 'goto-line' command is now a single list
>> > +for all buffers by default.  You can configure a separate list for
>> > +each buffer by customizing the user option 'goto-line-history-local'.
>
>> I think this contradicts a preceding entry:
>
>> ** Input history for 'goto-line' is now local to every buffer.
>> Each buffer will keep a separate history of line numbers used with
>> 'goto-line'.  This should help making faster the process of finding
>> line numbers that were previously jumped to.
>
> Well, I think "contradict" is not quite the right word.  Whether the list
> is buffer local or not is now customisable, which it wasn't before.  The
> default is somewhat arbitrary, as it always is in these things, with some
> people proclaiming a particular setting "obviously" should be the
> default, others saying the opposite is "obvious".  That the list, before
> that previous patch, wasn't buffer local points to the current default.
>
> Or, have I misunderstood what you're saying?

I think so.  My point is that the older entry says goto-line has
buffer-local history by default, whereas the newer entry says goto-line
does not have buffer-local history by default.

The older entry came with the following change:

Make goto-line keep a separate input history per buffer
7c5d6a2afc 2019-12-24 17:40:15 +0100
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=7c5d6a2afc6c23a7fff8456f506ee2aa2d37a3b9

The newer entry came with the following change:

Make goto-line-history buffer local only when so customized
fbc9c59b9e 2021-02-17 21:15:51 +0000
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=fbc9c59b9eb02d49f426341ee32334784d224ce4

The latter change reverts some parts of the former, and makes the
behaviour customisable, but the older NEWS entry was not updated to
reflect this.  I was hoping you would merge the two NEWS entries or
simply delete the older one, since it no longer accurately represents
the default, and is duplicated by the newer entry.

This part of (info "(elisp) Minibuffer History") also needs updating:

 -- Variable: goto-line-history
     A history list for arguments to ‘goto-line’.  This variable is
     buffer local.

Thanks,

-- 
Basil



  reply	other threads:[~2021-02-26 13:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210217212130.32410.14813@vcs0.savannah.gnu.org>
     [not found] ` <20210217212132.0B17F20DFB@vcs0.savannah.gnu.org>
2021-02-26 12:19   ` master fbc9c59: Make goto-line-history buffer local only when so customized Basil L. Contovounesios
2021-02-26 13:01     ` Alan Mackenzie
2021-02-26 13:15       ` Basil L. Contovounesios [this message]
2021-02-26 13:36         ` Alan Mackenzie
2021-02-27 14:27           ` Basil L. Contovounesios
2021-02-28 21:33             ` Alan Mackenzie
2021-02-28 21:53               ` Basil L. Contovounesios

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=875z2f3r8p.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /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.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).