# HG changeset patch # User Richard M. Stallman # Date 1115716198 0 # Node ID 6e4e2882c013091b24b552049d296a59d521b140 # Parent b93c8c25bb0e2ba59a5b9484c9f37fb80473e491 (custom-file): Call file-chase-links. diff -r b93c8c25bb0e -r 6e4e2882c013 lisp/cus-edit.el --- a/lisp/cus-edit.el Tue May 10 09:08:28 2005 +0000 +++ b/lisp/cus-edit.el Tue May 10 09:09:58 2005 +0000 @@ -3835,20 +3835,21 @@ (defun custom-file () "Return the file name for saving customizations." - (or custom-file - (let ((user-init-file user-init-file) - (default-init-file - (if (eq system-type 'ms-dos) "~/_emacs" "~/.emacs"))) - (when (null user-init-file) - (if (or (file-exists-p default-init-file) - (and (eq system-type 'windows-nt) - (file-exists-p "~/_emacs"))) - ;; Started with -q, i.e. the file containing - ;; Custom settings hasn't been read. Saving - ;; settings there would overwrite other settings. - (error "Saving settings from \"emacs -q\" would overwrite existing customizations")) - (setq user-init-file default-init-file)) - user-init-file))) + (file-chase-links + (or custom-file + (let ((user-init-file user-init-file) + (default-init-file + (if (eq system-type 'ms-dos) "~/_emacs" "~/.emacs"))) + (when (null user-init-file) + (if (or (file-exists-p default-init-file) + (and (eq system-type 'windows-nt) + (file-exists-p "~/_emacs"))) + ;; Started with -q, i.e. the file containing + ;; Custom settings hasn't been read. Saving + ;; settings there would overwrite other settings. + (error "Saving settings from \"emacs -q\" would overwrite existing customizations")) + (setq user-init-file default-init-file)) + user-init-file)))) (defun custom-save-delete (symbol) "Visit `custom-file' and delete all calls to SYMBOL from it.