summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-02-28 19:46:59 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-02-28 19:46:59 +0000
commit42b4ee207b146590df193db03be6487a26098797 (patch)
tree31cf5bce5413c29ad1c38e8f04062029c54a6f58
parent13dbab28a0b0b010272b8597150701a3db454ff9 (diff)
downloademacs-42b4ee207b146590df193db03be6487a26098797.tar.gz
(uniquify-buffer-base-name): Undo last change.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/uniquify.el8
2 files changed, 7 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bbeb08782ba..f39d6a0d807 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-28 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * uniquify.el (uniquify-buffer-base-name): Undo last change.
+
2008-02-28 Daiki Ueno <ueno@unixuser.org>
* international/utf-7.el (utf-7-encode): Never skip the trailing - for
diff --git a/lisp/uniquify.el b/lisp/uniquify.el
index 4d4f755aa6a..07772bd6cda 100644
--- a/lisp/uniquify.el
+++ b/lisp/uniquify.el
@@ -72,7 +72,7 @@
;; Add uniquify-list-buffers-directory-modes
;; Stefan Monnier <monnier@cs.yale.edu> 17 Nov 2000
;; Algorithm and data structure changed to reduce consing with lots of buffers
-;; Francesco Potortì <pot@gnu.org> (ideas by rms and monnier) 2001-07-18
+;; Francesco Potortì <pot@gnu.org> (ideas by rms and monnier) 2001-07-18
;; Valuable feedback was provided by
;; Paul Smith <psmith@baynetworks.com>,
@@ -192,11 +192,9 @@ It actually holds the list of `uniquify-item's corresponding to the conflict.")
;; Used in desktop.el to save the non-uniquified buffer name
(defun uniquify-buffer-base-name ()
"Return the base name of the current buffer.
-Return nil if the buffer is not managed by uniquify,
-or if the base name is empty."
+Return nil if the buffer is not managed by uniquify."
(and uniquify-managed
- (let ((base (uniquify-item-base (car uniquify-managed))))
- (if (string= base "") nil base))))
+ (uniquify-item-base (car uniquify-managed))))
;;; Main entry point.