Mercurial > emacs
comparison lisp/autorevert.el @ 61267:06afa2a6987d
(auto-revert-mode): Specify :group.
author | Lute Kamstra <lute@gnu.org> |
---|---|
date | Mon, 04 Apr 2005 08:51:19 +0000 |
parents | c0725fd29477 |
children | e8139030a8a9 02f1dbc4a199 |
comparison
equal
deleted
inserted
replaced
61266:9f9950e815a5 | 61267:06afa2a6987d |
---|---|
1 ;;; autorevert.el --- revert buffers when files on disk change | 1 ;;; autorevert.el --- revert buffers when files on disk change |
2 | 2 |
3 ;; Copyright (C) 1997, 1998, 1999, 2001, 2004 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1997, 1998, 1999, 2001, 2004, 2005 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Anders Lindgren <andersl@andersl.com> | 5 ;; Author: Anders Lindgren <andersl@andersl.com> |
6 ;; Keywords: convenience | 6 ;; Keywords: convenience |
7 ;; Created: 1997-06-01 | 7 ;; Created: 1997-06-01 |
8 ;; Date: 1999-11-30 | 8 ;; Date: 1999-11-30 |
288 With arg, turn Auto Revert mode on if and only if arg is positive. | 288 With arg, turn Auto Revert mode on if and only if arg is positive. |
289 This is a minor mode that affects only the current buffer. | 289 This is a minor mode that affects only the current buffer. |
290 Use `global-auto-revert-mode' to automatically revert all buffers. | 290 Use `global-auto-revert-mode' to automatically revert all buffers. |
291 Use `auto-revert-tail-mode' if you know that the file will only grow | 291 Use `auto-revert-tail-mode' if you know that the file will only grow |
292 without being changed in the part that is already in the buffer." | 292 without being changed in the part that is already in the buffer." |
293 nil auto-revert-mode-text nil | 293 :group 'auto-revert :lighter auto-revert-mode-text |
294 (if auto-revert-mode | 294 (if auto-revert-mode |
295 (if (not (memq (current-buffer) auto-revert-buffer-list)) | 295 (if (not (memq (current-buffer) auto-revert-buffer-list)) |
296 (push (current-buffer) auto-revert-buffer-list)) | 296 (push (current-buffer) auto-revert-buffer-list)) |
297 (setq auto-revert-buffer-list | 297 (setq auto-revert-buffer-list |
298 (delq (current-buffer) auto-revert-buffer-list))) | 298 (delq (current-buffer) auto-revert-buffer-list))) |