From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday S Reddy Newsgroups: gmane.emacs.bugs Subject: bug#8478: 23.3; next-file command not operational Date: Mon, 11 Apr 2011 16:47:52 +0100 Message-ID: <83zknwkcwn.fsf@cs.bham.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1302538565 2767 80.91.229.12 (11 Apr 2011 16:16:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 16:16:05 +0000 (UTC) Cc: U.S.Reddy@cs.bham.ac.uk To: 8478@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 11 18:16:01 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9JhH-0006C7-K1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 18:16:00 +0200 Original-Received: from localhost ([127.0.0.1]:40241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9JhA-0001yA-4a for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 12:10:32 -0400 Original-Received: from [140.186.70.92] (port=33528 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9JeG-00010j-R0 for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 12:07:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9JeE-0001sz-9V for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 12:07:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9JeE-0001sn-6C for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 12:07:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q9JMM-0001vB-Jt; Mon, 11 Apr 2011 11:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Uday S Reddy Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Apr 2011 15:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8478 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13025369087342 (code B ref -1); Mon, 11 Apr 2011 15:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Apr 2011 15:48:28 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9JLo-0001uM-0m for submit@debbugs.gnu.org; Mon, 11 Apr 2011 11:48:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9JLl-0001uB-PF for submit@debbugs.gnu.org; Mon, 11 Apr 2011 11:48:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9JLf-00061H-5A for submit@debbugs.gnu.org; Mon, 11 Apr 2011 11:48:20 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:52030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9JLY-0005yc-V6 for submit@debbugs.gnu.org; Mon, 11 Apr 2011 11:48:19 -0400 Original-Received: from [140.186.70.92] (port=51564 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9JLU-0007Jg-6h for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 11:48:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9JLN-0005uj-AH for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 11:48:03 -0400 Original-Received: from sun60.bham.ac.uk ([147.188.128.137]:52535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9JLN-0005tq-1V for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 11:48:01 -0400 Original-Received: from [147.188.128.127] (helo=bham.ac.uk) by sun60.bham.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1Q9JLI-0005EN-PX for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 16:47:56 +0100 Original-Received: from mx1.cs.bham.ac.uk ([147.188.192.53]) by bham.ac.uk (envelope-from ) with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.72) id 1Q9JLI-000574-FU for bug-gnu-emacs@gnu.org using interface smart1.bham.ac.uk; Mon, 11 Apr 2011 16:47:56 +0100 Original-Received: from gromit.cs.bham.ac.uk ([147.188.193.16] helo=MARUTI.cs.bham.ac.uk) by mx1.cs.bham.ac.uk with esmtp (Exim 4.51) id 1Q9JLI-0000ne-7e; Mon, 11 Apr 2011 16:47:56 +0100 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Apr 2011 11:49:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45763 Archived-At: --=-=-= Emacs 19 manual described a function called `next-file' (under "Editing Programs"). This section was dropped some time, and the `next-file' command hasn't been working either. The attached patch - adds back a paragraph on `next-file' to the manual, and - proposes a fix for the `next-file' function using `switch-to-buffer' instead of `set-buffer'. This may not be the best possible fix, but it at least works. Cheers, Uday In GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/imagesupport/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: LaTeX Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t savehist-mode: t which-function-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t line-number-mode: t transient-mark-mode: t Recent input: d C-a C-x C-s C-c s M-p C-h i C-x C-r m l i s t SPC SPC C-x b C-x q C-g C-x q t a g SPC t a b l e t a g s SPC t a b l e SPC SPC C-a C-x C-s C-c s p w d c d SPC . . c d SPC . . b z r SPC d i f f C-x C-f C-s d i f f C-a C-n e C-x y C-c s C-x . b z r SPC r e v e r t SPC l i s p / f i l e s . e l C-x C-f l i s p C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-c s b z r SPC d i f f d i f f C-g b z r SPC d i f f SPC > SPC n e x t - f i l e . d i f f C-x C-f n e x SPC SPC f i SPC SPC M-x r e p o r t - e m a c s - b u SPC Recent messages: buffer reverted to current contents of the file Quit Mark set Replaced 2 occurrences Saving file d:/gnu/emacs-23-dev/doc/emacs/maintaining.texi... Wrote d:/gnu/emacs-23-dev/doc/emacs/maintaining.texi d:/gnu/emacs-23-dev/doc d:/gnu/emacs-23-dev Mark saved where search started Mark set Quit Load-path shadows: d:/Home/udr/share/emacs/sml-mode hides d:/gnu/emacs-23.3/../site-lisp/sml-mode d:/Home/udr/share/emacs/savehist-20+ hides d:/gnu/emacs-23.3/../site-lisp/savehist-20+ d:/gnu/emacs-23.3/../site-lisp/longlines hides d:/gnu/emacs-23.3/lisp/longlines d:/gnu/vm/trunk/lisp/cus-load hides d:/gnu/emacs-23.3/lisp/cus-load d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org hides d:/gnu/emacs-23.3/lisp/org/org d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-xoxo hides d:/gnu/emacs-23.3/lisp/org/org-xoxo d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-wl hides d:/gnu/emacs-23.3/lisp/org/org-wl d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-w3m hides d:/gnu/emacs-23.3/lisp/org/org-w3m d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-vm hides d:/gnu/emacs-23.3/lisp/org/org-vm d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-timer hides d:/gnu/emacs-23.3/lisp/org/org-timer d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-table hides d:/gnu/emacs-23.3/lisp/org/org-table d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-src hides d:/gnu/emacs-23.3/lisp/org/org-src d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-rmail hides d:/gnu/emacs-23.3/lisp/org/org-rmail d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-remember hides d:/gnu/emacs-23.3/lisp/org/org-remember d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-publish hides d:/gnu/emacs-23.3/lisp/org/org-publish d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-protocol hides d:/gnu/emacs-23.3/lisp/org/org-protocol d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-plot hides d:/gnu/emacs-23.3/lisp/org/org-plot d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-mouse hides d:/gnu/emacs-23.3/lisp/org/org-mouse d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-mobile hides d:/gnu/emacs-23.3/lisp/org/org-mobile d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-mhe hides d:/gnu/emacs-23.3/lisp/org/org-mhe d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-mew hides d:/gnu/emacs-23.3/lisp/org/org-mew d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-macs hides d:/gnu/emacs-23.3/lisp/org/org-macs d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-mac-message hides d:/gnu/emacs-23.3/lisp/org/org-mac-message d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-list hides d:/gnu/emacs-23.3/lisp/org/org-list d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-latex hides d:/gnu/emacs-23.3/lisp/org/org-latex d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-jsinfo hides d:/gnu/emacs-23.3/lisp/org/org-jsinfo d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-irc hides d:/gnu/emacs-23.3/lisp/org/org-irc d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-install hides d:/gnu/emacs-23.3/lisp/org/org-install d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-inlinetask hides d:/gnu/emacs-23.3/lisp/org/org-inlinetask d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-info hides d:/gnu/emacs-23.3/lisp/org/org-info d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-indent hides d:/gnu/emacs-23.3/lisp/org/org-indent d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-id hides d:/gnu/emacs-23.3/lisp/org/org-id d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-icalendar hides d:/gnu/emacs-23.3/lisp/org/org-icalendar d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-html hides d:/gnu/emacs-23.3/lisp/org/org-html d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-habit hides d:/gnu/emacs-23.3/lisp/org/org-habit d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-gnus hides d:/gnu/emacs-23.3/lisp/org/org-gnus d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-freemind hides d:/gnu/emacs-23.3/lisp/org/org-freemind d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-footnote hides d:/gnu/emacs-23.3/lisp/org/org-footnote d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-feed hides d:/gnu/emacs-23.3/lisp/org/org-feed d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-faces hides d:/gnu/emacs-23.3/lisp/org/org-faces d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-exp hides d:/gnu/emacs-23.3/lisp/org/org-exp d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-exp-blocks hides d:/gnu/emacs-23.3/lisp/org/org-exp-blocks d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-docbook hides d:/gnu/emacs-23.3/lisp/org/org-docbook d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-datetree hides d:/gnu/emacs-23.3/lisp/org/org-datetree d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-crypt hides d:/gnu/emacs-23.3/lisp/org/org-crypt d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-compat hides d:/gnu/emacs-23.3/lisp/org/org-compat d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-colview hides d:/gnu/emacs-23.3/lisp/org/org-colview d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-clock hides d:/gnu/emacs-23.3/lisp/org/org-clock d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-bibtex hides d:/gnu/emacs-23.3/lisp/org/org-bibtex d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-bbdb hides d:/gnu/emacs-23.3/lisp/org/org-bbdb d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-attach hides d:/gnu/emacs-23.3/lisp/org/org-attach d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-ascii hides d:/gnu/emacs-23.3/lisp/org/org-ascii d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-archive hides d:/gnu/emacs-23.3/lisp/org/org-archive d:/gnu/emacs-23.3/../packages/org-7.4/lisp/org-agenda hides d:/gnu/emacs-23.3/lisp/org/org-agenda d:/Home/udr/share/emacs/rnews hides d:/gnu/emacs-23.3/lisp/obsolete/rnews Features: (shadow sort message ecomplete mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap nnheader gmm-utils mailheader canlock hashcash warnings emacsbug add-log smerge-mode diff-mode mule-util apropos macros bibcmds bibtex pp texmathp tabify tex-buf noutline outline latex tex latexenc info texinfo smtpmail flyspell ispell mail-utils mailalias vm-delete vm-reply cl-specs edebug vc-annotate ediff-vers vm-edit w3m-form w3m browse-url doc-view dired-x dired-aux mydired dired image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util vm-w3m longlines easy-mmode bbdb-hooks mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mm-util mail-prsvr tapestry vm-crypto vm-imap u-vm-color my-vm etags ps-print ps-def lpr vm-save vm-ps-print vm-rfaddons vm-menu vm-window vm-toolbar vm-mime vm-undo vm-virtual vm-summary-faces vm-mouse vm-page vm-minibuf vm-message vm-macro bbdb-vm vm-autoload bbdb-snarf mail-extr rfc822 bbdb-com advice help-fns advice-preload mailabbrev cl cl-19 vm vm-sort vm-summary vm-motion vm-folder vm-misc vm-thread debug ansi-color shell newcomment ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff vc vc-dispatcher vc-bzr sha1 hex-util help-mode easymenu view multi-isearch server w3m-load bbdb-autoloads bbdb timezone vm-autoloads vm-version vm-vars org-install savehist tex-site tex-mik telnet movement natural-space NatSpeak sendmail auth-source gnus-util netrc time-date epa-file epa epg epg-config ange-ftp regexp-opt comint ring echistory chistory ehelp electric derived which-func imenu edmacro kmacro jka-compr tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) -- --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=next-file.diff Content-Description: Fix for the `next-file' command === modified file 'doc/emacs/maintaining.texi' --- doc/emacs/maintaining.texi 2011-02-05 06:13:36 +0000 +++ doc/emacs/maintaining.texi 2011-04-11 15:36:35 +0000 @@ -1619,7 +1619,7 @@ * Select Tags Table:: How to visit a tags table. * Find Tag:: Commands to find the definition of a specific tag. * Tags Search:: Using a tags table for searching and replacing. -* List Tags:: Listing and finding tags defined in a file. +* List Tags:: Finding tags and files listed in a tags table. @end menu @node Tag Syntax @@ -2307,6 +2307,19 @@ You can also use the collection of tag names to complete a symbol name in the buffer. @xref{Symbol Completion}. +If you wish to process all the files in the selected tags table, but +not in the specific ways that @kbd{M-x tags-search} and @kbd{M-x +tags-query-replace} do, you can use @kbd{M-x next-file} to visit the files +one by one. + +@table @kbd +@item C-u M-x next-file +Visit the first file in the tags table, and prepare to advance +sequentially by files. +@item M-x next-file +Visit the next file in the selected tags table. +@end table + @node EDE @section Emacs Development Environment @cindex EDE (Emacs Development Environment) === modified file 'lisp/progmodes/etags.el' --- lisp/progmodes/etags.el 2011-01-02 23:50:46 +0000 +++ lisp/progmodes/etags.el 2011-04-11 15:27:25 +0000 @@ -1733,9 +1733,9 @@ (with-current-buffer buffer (revert-buffer t t))) (if (not (and new novisit)) - (set-buffer (find-file-noselect next novisit)) + (switch-to-buffer (find-file-noselect next novisit)) ;; Like find-file, but avoids random warning messages. - (set-buffer (get-buffer-create " *next-file*")) + (seitch-to-buffer (get-buffer-create " *next-file*")) (kill-all-local-variables) (erase-buffer) (setq new next) --=-=-=--