all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#34474: Save last search string between sessions
@ 2019-02-14  1:40 積丹尼 Dan Jacobson
  2019-02-14  8:54 ` Robert Pluim
  2019-02-14 15:10 ` Drew Adams
  0 siblings, 2 replies; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-02-14  1:40 UTC (permalink / raw)
  To: 34474

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*)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#34474: Save last search string between sessions
  2019-02-14  1:40 bug#34474: Save last search string between sessions 積丹尼 Dan Jacobson
@ 2019-02-14  8:54 ` Robert Pluim
  2019-02-14 15:10 ` Drew Adams
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Pluim @ 2019-02-14  8:54 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 34474

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#34474: Save last search string between sessions
  2019-02-14  1:40 bug#34474: Save last search string between sessions 積丹尼 Dan Jacobson
  2019-02-14  8:54 ` Robert Pluim
@ 2019-02-14 15:10 ` Drew Adams
  2019-02-15 17:14   ` 積丹尼 Dan Jacobson
  1 sibling, 1 reply; 4+ messages in thread
From: Drew Adams @ 2019-02-14 15:10 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson, 34474

> 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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#34474: Save last search string between sessions
  2019-02-14 15:10 ` Drew Adams
@ 2019-02-15 17:14   ` 積丹尼 Dan Jacobson
  0 siblings, 0 replies; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-02-15 17:14 UTC (permalink / raw)
  To: Drew Adams; +Cc: 34474

>>>>> "DA" == Drew Adams <drew.adams@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-15 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-14  1:40 bug#34474: Save last search string between sessions 積丹尼 Dan Jacobson
2019-02-14  8:54 ` Robert Pluim
2019-02-14 15:10 ` Drew Adams
2019-02-15 17:14   ` 積丹尼 Dan Jacobson

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.