aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-02-27 16:24:08 +0000
committerJuanma Barranquero2008-02-27 16:24:08 +0000
commit4fbbba1d35117dd65ea614dbb2799bd2f26ee5ed (patch)
tree634fe9d008c0eaec1d9e81592494ab4214695691
parent9c9086d306adbfa0d53a4fa79e46d8ace8082478 (diff)
downloademacs-4fbbba1d35117dd65ea614dbb2799bd2f26ee5ed.tar.gz
emacs-4fbbba1d35117dd65ea614dbb2799bd2f26ee5ed.zip
(uniquify-buffer-base-name): If the base name is an empty string,
return nil to allow the caller to default to the buffer name.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/uniquify.el3
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 531ca2e08bf..5bc2fe80fbc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,13 @@
12008-02-27 Juanma Barranquero <lekktu@gmail.com>
2
3 * uniquify.el (uniquify-buffer-base-name): If the base name is an
4 empty string, return nil to allow the caller to default to the
5 buffer name.
6
12008-02-26 Jason Rumney <jasonr@gnu.org> 72008-02-26 Jason Rumney <jasonr@gnu.org>
2 8
3 * files.el (make-auto-save-file-name): Encode more characters in 9 * files.el (make-auto-save-file-name): Encode more characters in
4 non-file buffer names. Use url-encoding. 10 non-file buffer names. Use url-encoding.
5 11
62008-02-26 Juanma Barranquero <lekktu@gmail.com> 122008-02-26 Juanma Barranquero <lekktu@gmail.com>
7 13
diff --git a/lisp/uniquify.el b/lisp/uniquify.el
index b2167f48656..c07dd57af4e 100644
--- a/lisp/uniquify.el
+++ b/lisp/uniquify.el
@@ -194,7 +194,8 @@ It actually holds the list of `uniquify-item's corresponding to the conflict.")
194 "Return the base name of the current buffer. 194 "Return the base name of the current buffer.
195Return nil if the buffer is not managed by uniquify." 195Return nil if the buffer is not managed by uniquify."
196 (and uniquify-managed 196 (and uniquify-managed
197 (uniquify-item-base (car uniquify-managed)))) 197 (let ((base (uniquify-item-base (car uniquify-managed))))
198 (if (string= base "") nil base))))
198 199
199;;; Main entry point. 200;;; Main entry point.
200 201