+2005-08-12 Eli Zaretskii <eliz@gnu.org>
+
+ * cus-edit.el (custom-save-all, custom-save-delete): Bind
+ recentf-exclude to exclude custom-file.
+
2005-08-12 Ehud Karni <ehud@unix.mvs.co.il>
* mail/rmailsum.el (rmail-summary-end-of-message): New command
(require 'cus-face)
(require 'wid-edit)
(eval-when-compile
- (defvar custom-versions-load-alist)) ; from cus-load
+ (defvar custom-versions-load-alist) ; from cus-load
+ (defvar recentf-exclude)) ; from recentf.el
(condition-case nil
(require 'cus-load)
"Visit `custom-file' and delete all calls to SYMBOL from it.
Leave point at the old location of the first such call,
or (if there were none) at the end of the buffer."
- (let ((default-major-mode 'emacs-lisp-mode))
+ (let ((default-major-mode 'emacs-lisp-mode)
+ (recentf-exclude (if recentf-mode
+ (cons (concat "\\`"
+ (regexp-quote (custom-file))
+ "\\'")
+ recentf-exclude))))
(set-buffer (find-file-noselect (custom-file))))
(goto-char (point-min))
;; Skip all whitespace and comments.
(custom-save-variables)
(custom-save-faces)
(save-excursion
- (let ((default-major-mode nil))
+ (let ((default-major-mode nil)
+ (recentf-exclude (if recentf-mode
+ (cons (concat "\\`"
+ (regexp-quote (custom-file))
+ "\\'")
+ recentf-exclude))))
(set-buffer (find-file-noselect (custom-file))))
(let ((file-precious-flag t))
(save-buffer)))))