mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-17 17:58:46 +00:00
(abbreviate-file-name): Don't mistakenly match newlines in file name.
This commit is contained in:
parent
bdd26918c5
commit
e959542d99
@ -1,3 +1,8 @@
|
||||
2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* files.el (abbreviate-file-name): Don't mistakenly match newlines in
|
||||
file name.
|
||||
|
||||
2006-09-06 Ralf Angeli <angeli@caeruleus.net>
|
||||
|
||||
* frame.el (display-mm-dimensions-alist): New defcustom.
|
||||
|
@ -1310,7 +1310,7 @@ removes automounter prefixes (see the variable `automount-dir-prefix')."
|
||||
(setq abbreviated-home-dir
|
||||
(let ((abbreviated-home-dir "$foo"))
|
||||
(concat "^" (abbreviate-file-name (expand-file-name "~"))
|
||||
"\\(/\\|$\\)"))))
|
||||
"\\(/\\|\\'\\)"))))
|
||||
|
||||
;; If FILENAME starts with the abbreviated homedir,
|
||||
;; make it start with `~' instead.
|
||||
|
Loading…
Reference in New Issue
Block a user