summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-02-09 15:27:54 -0500
committerGlenn Morris <rgm@gnu.org>2012-02-09 15:27:54 -0500
commitcf3aa21bc8ccc839279c335b8fda3a433b653329 (patch)
tree0d9af0ed14c03db863639d1cc78e1173f411ca2a /lisp/files.el
parentbbe531d6e2dd81be8b31b73d47b3de3cd0d82e90 (diff)
downloademacs-cf3aa21bc8ccc839279c335b8fda3a433b653329.tar.gz
* lisp/files.el (rename-uniquely): Doc fix. (Bug#3806)
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 8a65bc5f81f..7bb44098223 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4863,7 +4863,13 @@ like `write-region' does."
(defun rename-uniquely ()
"Rename current buffer to a similar name not already taken.
This function is useful for creating multiple shell process buffers
-or multiple mail buffers, etc."
+or multiple mail buffers, etc.
+
+Note that some commands, in particular those based on `compilation-mode'
+\(`compile', `grep', etc.) will reuse the current buffer if it has the
+appropriate mode even if it has been renamed. So as well as renaming
+the buffer, you also need to switch buffers before running another
+instance of such commands."
(interactive)
(save-match-data
(let ((base-name (buffer-name)))