# HG changeset patch # User Richard M. Stallman # Date 908909286 0 # Node ID 8f220d8d170d2711642e6430a114e01a7e3081c8 # Parent 57e5c9aadd19ec017f8ddf57863948bdb048f702 (auto-mode-alist): Recognize .rpm files. Also .spec and .mspec files. (revert-buffer-internal-hook): Add defvar. diff -r 57e5c9aadd19 -r 8f220d8d170d lisp/files.el --- a/lisp/files.el Tue Oct 20 16:34:29 1998 +0000 +++ b/lisp/files.el Tue Oct 20 18:48:06 1998 +0000 @@ -1238,6 +1238,7 @@ ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" . sh-mode) ("\\(/\\|\\`\\)\\.\\(bash_logout\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode) ("\\(/\\|\\`\\)\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode) + ("\\.m?spec$" . sh-mode) ("\\.mm\\'" . nroff-mode) ("\\.me\\'" . nroff-mode) ("\\.ms\\'" . nroff-mode) @@ -1339,6 +1340,7 @@ ("oash" . sh-mode) ("pdksh" . sh-mode) ("rc" . sh-mode) + ("rpm" . sh-mode) ("sh" . sh-mode) ("sh5" . sh-mode) ("tcsh" . sh-mode) @@ -2611,6 +2613,8 @@ If `revert-buffer-function' is used to override the normal revert mechanism, this hook is not used.") +(defvar revert-buffer-internal-hook) + (defun revert-buffer (&optional ignore-auto noconfirm preserve-modes) "Replace current buffer text with the text of the visited file on disk. This undoes all changes since the file was visited or saved.