aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ponce2005-09-15 08:02:18 +0000
committerDavid Ponce2005-09-15 08:02:18 +0000
commit9be6a03949893d6063357089c9cd29641fb71d74 (patch)
tree4eb963466045a99a58c6bbab14acd65b1628d87c
parentda16962a8f6148809c2a87210fba4893bc71259a (diff)
downloademacs-9be6a03949893d6063357089c9cd29641fb71d74.tar.gz
emacs-9be6a03949893d6063357089c9cd29641fb71d74.zip
(recentf-save-file-modes): New option.
(recentf-save-list): Use it.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/recentf.el13
2 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 69607db81e0..14378099b83 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-09-15 David Ponce <david@dponce.com>
2
3 * recentf.el (recentf-save-file-modes): New option.
4 (recentf-save-list): Use it.
5
12005-09-15 Nick Roberts <nickrob@snap.net.nz> 62005-09-15 Nick Roberts <nickrob@snap.net.nz>
2 7
3 * bindings.el (mode-line-eol-desc, mode-line-coding-system-map) 8 * bindings.el (mode-line-eol-desc, mode-line-coding-system-map)
diff --git a/lisp/recentf.el b/lisp/recentf.el
index 20251508941..df12debe453 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -74,6 +74,15 @@ See the command `recentf-save-list'."
74 :group 'recentf 74 :group 'recentf
75 :type 'file) 75 :type 'file)
76 76
77(defcustom recentf-save-file-modes 384 ;; 0600
78 "Mode bits of recentf save file, as an integer, or nil.
79If non-nil, after writing `recentf-save-file', set its mode bits to
80this value. By default give R/W access only to the user who owns that
81file. See also the function `set-file-modes'."
82 :group 'recentf
83 :type '(choice (const :tag "Don't change" nil)
84 integer))
85
77(defcustom recentf-exclude nil 86(defcustom recentf-exclude nil
78 "*List of regexps and predicates for filenames excluded from the recent list. 87 "*List of regexps and predicates for filenames excluded from the recent list.
79When a filename matches any of the regexps or satisfies any of the 88When a filename matches any of the regexps or satisfies any of the
@@ -257,7 +266,7 @@ It is passed a filename to give a chance to transform it.
257If it returns nil, the filename is left unchanged." 266If it returns nil, the filename is left unchanged."
258 :group 'recentf 267 :group 'recentf
259 :type '(choice (const :tag "None" nil) 268 :type '(choice (const :tag "None" nil)
260 (const abbreviate-file-name) 269 (const abbreviate-file-name)
261 function)) 270 function))
262 271
263(defcustom recentf-show-file-shortcuts-flag t 272(defcustom recentf-show-file-shortcuts-flag t
@@ -1206,6 +1215,8 @@ Write data into the file specified by `recentf-save-file'."
1206 (format ";;; coding: %s\n" recentf-save-file-coding-system) 1215 (format ";;; coding: %s\n" recentf-save-file-coding-system)
1207 ";;; End:\n") 1216 ";;; End:\n")
1208 (write-file (expand-file-name recentf-save-file)) 1217 (write-file (expand-file-name recentf-save-file))
1218 (when recentf-save-file-modes
1219 (set-file-modes recentf-save-file recentf-save-file-modes))
1209 nil) 1220 nil)
1210 (error 1221 (error
1211 (warn "recentf mode: %s" (error-message-string error))))) 1222 (warn "recentf mode: %s" (error-message-string error)))))