diff options
| author | Glenn Morris | 2012-02-09 15:27:54 -0500 |
|---|---|---|
| committer | Glenn Morris | 2012-02-09 15:27:54 -0500 |
| commit | cf3aa21bc8ccc839279c335b8fda3a433b653329 (patch) | |
| tree | 0d9af0ed14c03db863639d1cc78e1173f411ca2a | |
| parent | bbe531d6e2dd81be8b31b73d47b3de3cd0d82e90 (diff) | |
| download | emacs-cf3aa21bc8ccc839279c335b8fda3a433b653329.tar.gz emacs-cf3aa21bc8ccc839279c335b8fda3a433b653329.zip | |
* lisp/files.el (rename-uniquely): Doc fix. (Bug#3806)
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/files.el | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 254e1226a07..7a3f15d42f7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-02-09 Glenn Morris <rgm@gnu.org> | 1 | 2012-02-09 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * files.el (rename-uniquely): Doc fix. (Bug#3806) | ||
| 4 | |||
| 3 | * progmodes/cc-guess.el (c-guess-offset-threshold, c-guess-region-max): | 5 | * progmodes/cc-guess.el (c-guess-offset-threshold, c-guess-region-max): |
| 4 | Add :version tags. | 6 | Add :version tags. |
| 5 | 7 | ||
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." | |||
| 4863 | (defun rename-uniquely () | 4863 | (defun rename-uniquely () |
| 4864 | "Rename current buffer to a similar name not already taken. | 4864 | "Rename current buffer to a similar name not already taken. |
| 4865 | This function is useful for creating multiple shell process buffers | 4865 | This function is useful for creating multiple shell process buffers |
| 4866 | or multiple mail buffers, etc." | 4866 | or multiple mail buffers, etc. |
| 4867 | |||
| 4868 | Note that some commands, in particular those based on `compilation-mode' | ||
| 4869 | \(`compile', `grep', etc.) will reuse the current buffer if it has the | ||
| 4870 | appropriate mode even if it has been renamed. So as well as renaming | ||
| 4871 | the buffer, you also need to switch buffers before running another | ||
| 4872 | instance of such commands." | ||
| 4867 | (interactive) | 4873 | (interactive) |
| 4868 | (save-match-data | 4874 | (save-match-data |
| 4869 | (let ((base-name (buffer-name))) | 4875 | (let ((base-name (buffer-name))) |