aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUday S Reddy2011-04-24 14:47:17 -0400
committerChong Yidong2011-04-24 14:47:17 -0400
commit7031be6d49cb78d4cc4a2604b899144824abfeca (patch)
treedef471b8dab1ce5dcaa1e86eacb3000fe20810bf
parent6f68a3a29e621368e6b726dcd11532140695dbad (diff)
downloademacs-7031be6d49cb78d4cc4a2604b899144824abfeca.tar.gz
emacs-7031be6d49cb78d4cc4a2604b899144824abfeca.zip
Fix next-file command in etags.el.
* lisp/progmodes/etags.el (next-file): Don't use set-buffer to change buffers (Bug#8478). * doc/lisp/maintaining.texi (List Tags): Document next-file.
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/maintaining.texi6
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/etags.el4
4 files changed, 18 insertions, 2 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 37825382788..92cd765b492 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12011-04-24 Chong Yidong <cyd@stupidchicken.com>
2
3 * maintaining.texi (List Tags): Document next-file. Suggested by
4 Uday S Reddy.
5
12011-04-23 Juanma Barranquero <lekktu@gmail.com> 62011-04-23 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * mini.texi (Minibuffer Edit): 8 * mini.texi (Minibuffer Edit):
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index 8f395ba9563..dafc9327c74 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -2326,6 +2326,12 @@ details.
2326 You can also use the collection of tag names to complete a symbol 2326 You can also use the collection of tag names to complete a symbol
2327name in the buffer. @xref{Symbol Completion}. 2327name in the buffer. @xref{Symbol Completion}.
2328 2328
2329 You can use @kbd{M-x next-file} to visit the files in the selected
2330tags table. The first time this command is called, it visits the
2331first file in the tags table. Each subsequent call visits the next
2332file in the table, unless a prefix argument is supplied, in which case
2333it returns to the first file.
2334
2329@node EDE 2335@node EDE
2330@section Emacs Development Environment 2336@section Emacs Development Environment
2331@cindex EDE (Emacs Development Environment) 2337@cindex EDE (Emacs Development Environment)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c83f8d5102f..efbd08ae6e9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-04-24 Uday S Reddy <u.s.reddy@cs.bham.ac.uk> (tiny change)
2
3 * progmodes/etags.el (next-file): Don't use set-buffer to change
4 buffers (Bug#8478).
5
12011-04-24 Chong Yidong <cyd@stupidchicken.com> 62011-04-24 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * files.el (auto-mode-alist): Use js-mode for .json (Bug#8529). 8 * files.el (auto-mode-alist): Use js-mode for .json (Bug#8529).
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 49a2971a92a..6bd2de992cb 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1756,9 +1756,9 @@ if the file was newly read in, the value is the filename."
1756 (with-current-buffer buffer 1756 (with-current-buffer buffer
1757 (revert-buffer t t))) 1757 (revert-buffer t t)))
1758 (if (not (and new novisit)) 1758 (if (not (and new novisit))
1759 (set-buffer (find-file-noselect next novisit)) 1759 (find-file next novisit)
1760 ;; Like find-file, but avoids random warning messages. 1760 ;; Like find-file, but avoids random warning messages.
1761 (set-buffer (get-buffer-create " *next-file*")) 1761 (switch-to-buffer (get-buffer-create " *next-file*"))
1762 (kill-all-local-variables) 1762 (kill-all-local-variables)
1763 (erase-buffer) 1763 (erase-buffer)
1764 (setq new next) 1764 (setq new next)