emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/autorevert.el [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/autorevert.el [emacs-unicode-2]
Date: Mon, 28 Jun 2004 04:57:12 -0400

Index: emacs/lisp/autorevert.el
diff -c emacs/lisp/autorevert.el:1.15.8.1 emacs/lisp/autorevert.el:1.15.8.2
*** emacs/lisp/autorevert.el:1.15.8.1   Fri Apr 16 12:49:48 2004
--- emacs/lisp/autorevert.el    Mon Jun 28 07:28:26 2004
***************
*** 36,43 ****
  ;; Auto-Revert Mode.  Both modes automatically revert buffers
  ;; whenever the corresponding files have been changed on disk.
  ;;
! ;; Auto-Revert Mode can be activated for individual buffers.
! ;; Global Auto-Revert Mode applies to all file buffers.
  ;;
  ;; Both modes operate by checking the time stamp of all files at
  ;; intervals of `auto-revert-interval'.  The default is every five
--- 36,47 ----
  ;; Auto-Revert Mode.  Both modes automatically revert buffers
  ;; whenever the corresponding files have been changed on disk.
  ;;
! ;; Auto-Revert Mode can be activated for individual buffers.  Global
! ;; Auto-Revert Mode applies to all file buffers. (If the user option
! ;; `global-auto-revert-non-file-buffers' is non-nil, it also applies
! ;; to some non-file buffers.  This option is disabled by default.)
! ;; Since checking a remote file is too slow, these modes do not check
! ;; or revert remote files.
  ;;
  ;; Both modes operate by checking the time stamp of all files at
  ;; intervals of `auto-revert-interval'.  The default is every five
***************
*** 170,189 ****
    :type 'hook)
  
  (defcustom global-auto-revert-non-file-buffers nil
!   "When nil only file buffers are reverted by Global Auto-Revert Mode.
  
  When non-nil, both file buffers and buffers with a custom
  `revert-buffer-function' and a `buffer-stale-function' are
! reverted by Global Auto-Revert Mode.
  
! Use this option with care since it could lead to excessive reverts.
! Note also that for some non-file buffers the check whether the
! buffer needs updating may be imperfect, due to efficiency
! considerations, and may not take all information listed in the
! buffer into account.  Hence, a non-nil value for this option does
! not necessarily make manual updates useless for non-file buffers."
    :group 'auto-revert
!   :type 'boolean)
  
  (defcustom global-auto-revert-ignore-modes '()
    "List of major modes Global Auto-Revert Mode should not check."
--- 174,194 ----
    :type 'hook)
  
  (defcustom global-auto-revert-non-file-buffers nil
!   "When nil, Global Auto-Revert mode operates only on file-visiting buffers.
  
  When non-nil, both file buffers and buffers with a custom
  `revert-buffer-function' and a `buffer-stale-function' are
! reverted by Global Auto-Revert mode.  These include the Buffer
! List buffer, and Dired buffers showing complete local
! directories.  Dired buffers do not auto-revert as a result of
! changes in subdirectories or in the contents, size, modes, etc.,
! of files.  You may still sometimes want to revert them manually.
  
! Use this option with care since it could lead to excessive auto-reverts.
! For more information, see Info node `(emacs-xtra)Autorevert'."
    :group 'auto-revert
!   :type 'boolean
!   :link '(info-link "(emacs-xtra)Autorevert"))
  
  (defcustom global-auto-revert-ignore-modes '()
    "List of major modes Global Auto-Revert Mode should not check."
***************
*** 311,316 ****
--- 316,322 ----
    (unless (buffer-modified-p)
      (let ((buffer (current-buffer)) revert eob eoblist)
        (or (and buffer-file-name
+              (not (file-remote-p buffer-file-name))
               (file-readable-p buffer-file-name)
               (not (verify-visited-file-modtime buffer))
               (setq revert t))




reply via email to

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