[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: goto-line-history should not be buffer local.
From: |
Juri Linkov |
Subject: |
Re: goto-line-history should not be buffer local. |
Date: |
Tue, 16 Feb 2021 19:13:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> -(defvar-local goto-line-history nil
> +(defcustom goto-line-history-local nil
> + "If this option is nil, `goto-line-history' is shared between all buffers.
> +if it is non-nil, each buffer has its own value of this history list.
> +
> +Note that on changing from non-nil to nil, the former contents of
> +`goto-line-history' for each buffer are discarded on use of
> +`goto-line' in that buffer."
> + :group 'editing
> + :type 'boolean
> + :safe #'booleanp
> + :version "28.1")
>
> Anybody have any objections to this?
This is not an objection, just sharing a tip that to make
Isearch history buffer-local like it's in web browsers,
where each web page tab uses own local search history,
is possible with a small code snippet:
(make-variable-buffer-local 'search-ring)
(make-variable-buffer-local 'regexp-search-ring)
OTOH, with using defcustom it's easier to customize this, indeed.
- goto-line-history should not be buffer local., Alan Mackenzie, 2021/02/14
- Re: goto-line-history should not be buffer local., Óscar Fuentes, 2021/02/14
- Re: goto-line-history should not be buffer local., Richard Copley, 2021/02/14
- Re: goto-line-history should not be buffer local., martin rudalics, 2021/02/15
- Re: goto-line-history should not be buffer local., Alan Mackenzie, 2021/02/15
- Re: goto-line-history should not be buffer local., Lars Ingebrigtsen, 2021/02/16
- Re: goto-line-history should not be buffer local.,
Juri Linkov <=
- Re: goto-line-history should not be buffer local., Alan Mackenzie, 2021/02/16
- Re: goto-line-history should not be buffer local., Matt Armstrong, 2021/02/16
- Re: goto-line-history should not be buffer local., Lars Ingebrigtsen, 2021/02/16
- Re: goto-line-history should not be buffer local., Rolf Ade, 2021/02/17
- Re: goto-line-history should not be buffer local., Alan Mackenzie, 2021/02/18
- Re: goto-line-history should not be buffer local., Kévin Le Gouguec, 2021/02/18
- Re: goto-line-history should not be buffer local., Rolf Ade, 2021/02/18
- Re: goto-line-history should not be buffer local., Philip Kaludercic, 2021/02/18
- Re: goto-line-history should not be buffer local., Andreas Schwab, 2021/02/18
- Re: goto-line-history should not be buffer local., Stefan Monnier, 2021/02/16