]> git.eshelyaron.com Git - emacs.git/commit
Do not trash symlinks to init file
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 May 2016 00:29:58 +0000 (17:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 May 2016 00:30:34 +0000 (17:30 -0700)
commit18a9bc1152452fecfa09e6f2f3a5d6677a564977
treeb711a60aeab9ba2b9719fbb5dfdf9d14abf1d288
parent2671179b11a9423792aaf2439a26a2562679c086
Do not trash symlinks to init file

If the user’s init file is a symbolic link, do not break the link
when initializing the package system.  Problem reported by Jackson
Hamilton (Bug#23050).
* lisp/emacs-lisp/package.el (package--ensure-init-file):
Bind find-file-visit-truename when visiting the init file, and
save and restore the buffer name the way cus-edit does in a
similar situation (Bug#454).
lisp/emacs-lisp/package.el