aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2006-09-06 16:32:18 +0000
committerStefan Monnier2006-09-06 16:32:18 +0000
commite959542d9950f0ae7d85df9811758eb7b747746c (patch)
tree003a1be964e7dd34d146540627d33ada1586966d
parentbdd26918c524d5a1a3c3c88c30253a3ef58c77a6 (diff)
downloademacs-e959542d9950f0ae7d85df9811758eb7b747746c.tar.gz
emacs-e959542d9950f0ae7d85df9811758eb7b747746c.zip
(abbreviate-file-name): Don't mistakenly match newlines in file name.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/files.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8fc0401d591..55fa2cf011b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * files.el (abbreviate-file-name): Don't mistakenly match newlines in
4 file name.
5
12006-09-06 Ralf Angeli <angeli@caeruleus.net> 62006-09-06 Ralf Angeli <angeli@caeruleus.net>
2 7
3 * frame.el (display-mm-dimensions-alist): New defcustom. 8 * frame.el (display-mm-dimensions-alist): New defcustom.
diff --git a/lisp/files.el b/lisp/files.el
index 0cd17932fd8..a96ba9776ef 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1310,7 +1310,7 @@ removes automounter prefixes (see the variable `automount-dir-prefix')."
1310 (setq abbreviated-home-dir 1310 (setq abbreviated-home-dir
1311 (let ((abbreviated-home-dir "$foo")) 1311 (let ((abbreviated-home-dir "$foo"))
1312 (concat "^" (abbreviate-file-name (expand-file-name "~")) 1312 (concat "^" (abbreviate-file-name (expand-file-name "~"))
1313 "\\(/\\|$\\)")))) 1313 "\\(/\\|\\'\\)"))))
1314 1314
1315 ;; If FILENAME starts with the abbreviated homedir, 1315 ;; If FILENAME starts with the abbreviated homedir,
1316 ;; make it start with `~' instead. 1316 ;; make it start with `~' instead.