From: David PONCE <david.ponce@wanadoo.fr>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: recentf improvement
Date: Mon, 22 Sep 2003 08:58:47 +0200 (CEST) [thread overview]
Message-ID: <33379023.1064213927020.JavaMail.www@wwinf0503> (raw)
Hi Richard,
> Finally, I don't see the point of calling `abbreviate-file-name' on
> every recent file before copying them to file-name-history?
>
> That is so the names in the history will be more concise.
> I think this is desirable, so I think you should put that call
> back in.
OK, here is a new patch.
David
Index: lisp/recentf.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/recentf.el,v
retrieving revision 1.27
diff -c -r1.27 recentf.el
*** lisp/recentf.el 15 Sep 2003 16:24:35 -0000 1.27
--- lisp/recentf.el 22 Sep 2003 06:52:58 -0000
***************
*** 240,245 ****
--- 240,251 ----
;; Unavailable until recentf has been loaded.
(recentf-auto-cleanup))))
+ (defcustom recentf-initialize-file-name-history t
+ "*non-nil means to initialize `file-name-history' with the recent list.
+ If `file-name-history' is not empty, do nothing."
+ :group 'recentf
+ :type 'boolean)
+
(defcustom recentf-load-hook nil
"*Normal hook run at end of loading the `recentf' package."
:group 'recentf
***************
*** 1143,1153 ****
(defun recentf-load-list ()
"Load a previously saved recent list.
! Read data from the file specified by `recentf-save-file'."
(interactive)
(let ((file (expand-file-name recentf-save-file)))
(when (file-readable-p file)
! (load-file file))))
(defun recentf-cleanup ()
"Remove all excluded or non-readable files from the recent list."
--- 1149,1165 ----
(defun recentf-load-list ()
"Load a previously saved recent list.
! Read data from the file specified by `recentf-save-file'.
! When `recentf-initialize-file-name-history' is non-nil, initialize an
! empty `file-name-history' with the recent list."
(interactive)
(let ((file (expand-file-name recentf-save-file)))
(when (file-readable-p file)
! (load-file file)
! (and recentf-initialize-file-name-history
! (not file-name-history)
! (setq file-name-history (mapcar 'abbreviate-file-name
! recentf-list))))))
(defun recentf-cleanup ()
"Remove all excluded or non-readable files from the recent list."
next reply other threads:[~2003-09-22 6:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-22 6:58 David PONCE [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-20 21:27 recentf improvement Richard Stallman
2003-09-20 22:47 ` David Ponce
2003-09-20 23:07 ` Miles Bader
2003-09-21 7:00 ` David Ponce
2003-09-21 6:40 ` Masatake YAMATO
2003-09-21 6:50 ` David Ponce
2003-09-21 7:03 ` Masatake YAMATO
2003-09-21 7:35 ` David Ponce
2003-09-21 22:34 ` Richard Stallman
2003-09-21 22:33 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33379023.1064213927020.JavaMail.www@wwinf0503 \
--to=david.ponce@wanadoo.fr \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).