emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/etags.el, v [EMACS_22_BASE


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/etags.el, v [EMACS_22_BASE]
Date: Fri, 01 Feb 2008 23:35:31 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Chong Yidong <cyd>      08/02/01 23:35:30

Index: etags.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/etags.el,v
retrieving revision 1.194.2.8
retrieving revision 1.194.2.9
diff -u -b -r1.194.2.8 -r1.194.2.9
--- etags.el    1 Feb 2008 23:21:56 -0000       1.194.2.8
+++ etags.el    1 Feb 2008 23:35:30 -0000       1.194.2.9
@@ -1629,14 +1629,12 @@
       (and (search-forward "\177" (save-excursion (end-of-line) (point)) t)
           (re-search-backward re bol t)))))
 
-(defcustom tags-loop-revert-buffers 'ask
-  "Whether the tags-scanning loop should reread changed files.
-This loop normally reads each file into Emacs, but when a file is
-already visited, it uses the existing buffer.
-If this variable is nil, the loop uses the existing buffer even
-if the file has changed since you visited it.
-If the value is `ask', the loop offers to revert the buffer.
-Any other non-nil value means to revert the buffer automatically."
+(defcustom tags-loop-revert-buffers nil
+  "*Non-nil means tags-scanning loops should offer to reread changed files.
+These loops normally read each file into Emacs, but when a file
+is already visited, they use the existing buffer.
+When this flag is non-nil, they offer to revert the existing buffer
+in the case where the file has changed since you visited it."
   :type 'boolean
   :group 'etags)
 
@@ -1698,16 +1696,14 @@
     ;; if the files have changed on disk.
     (and buffer tags-loop-revert-buffers
         (not (verify-visited-file-modtime buffer))
-        (or (not (eq tags-loop-revert-buffers 'ask))
-            noninteractive
             (y-or-n-p
              (format
               (if (buffer-modified-p buffer)
                   "File %s changed on disk.  Discard your edits? "
                 "File %s changed on disk.  Reread from disk? ")
-              next)))
+          next))
         (with-current-buffer buffer
-          (revert-buffer t)))
+          (revert-buffer t t)))
     (if (not (and new novisit))
        (set-buffer (find-file-noselect next novisit))
       ;; Like find-file, but avoids random warning messages.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]