unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* persistent file history
@ 2003-05-08  2:50 Miles Bader
  0 siblings, 0 replies; 2+ messages in thread
From: Miles Bader @ 2003-05-08  2:50 UTC (permalink / raw)


I have the following entry in my `recentf-mode-hook':

   (lambda ()
     (dolist (f (reverse recentf-list))
       (add-to-list 'file-name-history f)))

So if recentf-mode is turned on, the history for find-file persists
across emacs sessions; I find this _very_ useful.

Does this seem like a good idea to add as default behavior somehow?

[Perhaps it would be better to (1) just append recentf-list to the _end_
of file-name-history, and (2) keep track of whether this has been done
before, and not do it more than once; then this should work properly
if recentf-mode is turned on in the middle of a session.]

-Miles
-- 
[|nurgle|]  ddt- demonic? so quake will have an evil kinda setting? one that
            will  make every christian in the world foamm at the mouth?
[iddt]      nurg, that's the goal

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

* persistent file history
@ 2003-05-08 20:20 Markus Rost
  0 siblings, 0 replies; 2+ messages in thread
From: Markus Rost @ 2003-05-08 20:20 UTC (permalink / raw)
  Cc: emacs-devel

   I have the following entry in my `recentf-mode-hook':

      (lambda ()
	(dolist (f (reverse recentf-list))
	  (add-to-list 'file-name-history f)))

I like this very much.  What about using abbreviate-file-name in that
function?  I mean here something like:

 (lambda nil
   (dolist
       (f
	(reverse recentf-list))
     (add-to-list 'file-name-history
		  (abbreviate-file-name f)))))

Since we are about values of history variables:  What about setting
the default value of yes-or-no-p-history as follows:

(setq yes-or-no-p-history (list "yes" "no"))

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

end of thread, other threads:[~2003-05-08 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08 20:20 persistent file history Markus Rost
  -- strict thread matches above, loose matches on Subject: below --
2003-05-08  2:50 Miles Bader

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