Subject: bug#34474: Save last search string between sessions

From: Drew Adams <[email-masked]>
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.