]> code.delx.au - gnu-emacs/commitdiff
(auto-mode-alist): Recognize .rpm files.
authorRichard M. Stallman <rms@gnu.org>
Tue, 20 Oct 1998 18:48:06 +0000 (18:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 20 Oct 1998 18:48:06 +0000 (18:48 +0000)
Also .spec and .mspec files.

(revert-buffer-internal-hook): Add defvar.

lisp/files.el

index aa0047bd937de0ba4cb375880bf2570cb1b725d7..33ffc433890ede5e69310c583a40bed01331052f 100644 (file)
@@ -1238,6 +1238,7 @@ run `normal-mode' explicitly."
     ("\\(/\\|\\`\\)\\.\\(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 @@ REGEXP and search the list again for another match.")
     ("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 @@ hook functions.
 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.