Package: emacs21-el
Version: 21.4a-1
Severity: normal

If you select "Save for Future Settings" in the customize mode
(e.g. M-x describe-variable; indent-tabs-mode; /cust/; RET)
and the Emacs custom-file is a symbolic link, the symbolic link is
overwritten with a new file.

Reportedly there is an upstream fix for this, but this is worthwhile
fixing on Debian until Emacs 22 comes out.

The definition of custom-file() in /usr/share/emacs/21.4/lisp/cus-edit.el
should be changed to pass the result via file-chase-links() so it reads:
(defun custom-file ()
  "Return the file name for saving customizations."
    (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))))

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7eagle-20040916
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)

Versions of packages emacs21-el depends on:
ii  emacs21-common                21.4a-1    The GNU Emacs editor's shared, arc

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to