GNU bug report logs - #34474
Save last search string between sessions

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 14 Feb 2019 03:38:01 UTC

Severity: wishlist

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34474 in the body.
You can then email your comments to 34474 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#34474; Package emacs. (Thu, 14 Feb 2019 03:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 14 Feb 2019 03:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Save last search string between sessions
Date: Thu, 14 Feb 2019 09:40:23 +0800
You know just the other day I was reading
(info "(emacs) Repeat Isearch")
and thinking, oh the mighty emacs, doesn't even have an option to save
the last search string between session, like the puny less(1) can.
Let's see, you could save it in .emacs.d/* somewhere.
(Yes, I'm sure somebody has already implemented this as an add-on.)
(Sure, you might say well then also save the last yank area too, etc.
but I didn't say that.)

Ah yes, say goodbye to every morning:
"I-search:  [No previous search string]"
(which by the way doesn't show up in *Messages*)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34474; Package emacs. (Thu, 14 Feb 2019 08:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 34474 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 34474 <at> debbugs.gnu.org
Subject: Re: bug#34474: Save last search string between sessions
Date: Thu, 14 Feb 2019 09:54:18 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> You know just the other day I was reading
> (info "(emacs) Repeat Isearch")
> and thinking, oh the mighty emacs, doesn't even have an option to save
> the last search string between session, like the puny less(1) can.
> Let's see, you could save it in .emacs.d/* somewhere.
> (Yes, I'm sure somebody has already implemented this as an add-on.)
> (Sure, you might say well then also save the last yank area too, etc.
> but I didn't say that.)
>
> Ah yes, say goodbye to every morning:
> "I-search:  [No previous search string]"
> (which by the way doesn't show up in *Messages*)

desktop can do this. It is part of Emacs.

Robert




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34474; Package emacs. (Thu, 14 Feb 2019 15:12:02 GMT) Full text and rfc822 format available.

Message #11 received at 34474 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: 積丹尼 Dan Jacobson
 <jidanni <at> jidanni.org>, 34474 <at> debbugs.gnu.org
Subject: RE: bug#34474: Save last search string between sessions
Date: Thu, 14 Feb 2019 15:10:50 +0000 (UTC)
> Emacs doesn't even have an option to save
> the last search string between session

(`desktop.el' is overkill for this.  But if you're
using it anyway then sure, it will do this too.)

Use library `savehist.el'.  Just customize option
`savehist-additional-variables' to include both
`search-ring' and `regexp-search-ring.




bug closed, send any further explanations to 34474 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 14 Feb 2019 16:27:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34474; Package emacs. (Fri, 15 Feb 2019 17:15:02 GMT) Full text and rfc822 format available.

Message #16 received at 34474 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 34474 <at> debbugs.gnu.org
Subject: Re: bug#34474: Save last search string between sessions
Date: Sat, 16 Feb 2019 01:14:26 +0800
>>>>> "DA" == Drew Adams <drew.adams <at> oracle.com> writes:
DA> (`desktop.el' is overkill for this.  But if you're
DA> using it anyway then sure, it will do this too.)

DA> Use library `savehist.el'.  Just customize option
DA> `savehist-additional-variables' to include both
DA> `search-ring' and `regexp-search-ring.

OK, be sure to make a note about this/these in (info "(emacs) Repeat Isearch"). Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 16 Mar 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.