]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix some display-warning usage.
authorGlenn Morris <rgm@gnu.org>
Tue, 8 Dec 2015 07:28:18 +0000 (23:28 -0800)
committerGlenn Morris <rgm@gnu.org>
Tue, 8 Dec 2015 07:28:18 +0000 (23:28 -0800)
* lisp/files.el (hack-local-variables, hack-dir-local-variables):
* lisp/calendar/diary-lib.el (diary-include-files, diary-sexp-entry):
* lisp/calendar/holidays.el (calendar-holiday-list):
* lisp/mail/rmailout.el (rmail-output-read-file-name):
Fix display-warning usage.

lisp/calendar/diary-lib.el
lisp/calendar/holidays.el
lisp/files.el
lisp/mail/rmailout.el

index 93891bf2f1698d0b20453dffd38d921dcc0e8ca9..0720d8266a0ca9aa8e7c3df25356a35a293dba5e 100644 (file)
@@ -909,13 +909,15 @@ This is recursive; that is, included files may include other files."
                         (append diary-entries-list
                                 (diary-list-entries original-date number t)))))
             (display-warning
-             :error
+             'diary
              (format-message "Can't read included diary file %s\n"
-                            diary-file)))
+                            diary-file)
+             :error))
         (display-warning
-         :error
+         'diary
          (format-message "Can't find included diary file %s\n"
-                        diary-file)))))
+                        diary-file)
+         :error))))
   (goto-char (point-min)))
 
 (defun diary-include-other-diary-files ()
@@ -1410,11 +1412,12 @@ marks.  This is intended to deal with deleted diary entries."
                         (eval (car (read-from-string sexp)))
                       (error
                        (display-warning
-                        :error
+                        'diary
                         (format "Bad diary sexp at line %d in %s:\n%s\n\
 Error: %s\n"
                                 (count-lines (point-min) (point))
-                                diary-file sexp err))
+                                diary-file sexp err)
+                        :error)
                        nil))))))
     (cond ((stringp result) result)
           ((and (consp result)
index 307ab4deb8277cadcd15f4d252275f66f024ce33..3e7289bb0306e81baabdcd14e3e114ea7f709d60 100644 (file)
@@ -346,9 +346,10 @@ The holidays are those in the list `calendar-holidays'."
                          (eval p)
                        (error
                         (display-warning
-                         :error
+                         'holidays
                          (format "Bad holiday list item: %s\nError: %s\n"
-                                 p err))
+                                 p err)
+                         :error)
                         nil))))
            (setq res (append h res))))
      'calendar-date-compare)))
index d20bb1401fab4e801f1938f0750947a458684269..10c0cea506453680bb5ee063d49d426bd9ee52e8 100644 (file)
@@ -3419,7 +3419,7 @@ local variables, but directory-local variables may still be applied."
                               (unless hack-local-variables--warned-lexical
                                 (setq hack-local-variables--warned-lexical t)
                                 (display-warning
-                                  :warning
+                                  'files
                                   (format-message
                                    "%s: `lexical-binding' at end of file unreliable"
                                    (file-name-nondirectory
@@ -3883,7 +3883,7 @@ This does nothing if either `enable-local-variables' or
              (if (eq (car elt) 'coding)
                   (unless hack-dir-local-variables--warned-coding
                     (setq hack-dir-local-variables--warned-coding t)
-                    (display-warning :warning
+                    (display-warning 'files
                                      "Coding cannot be specified by dir-locals"))
                (unless (memq (car elt) '(eval mode))
                  (setq dir-local-variables-alist
index 1e770e6fea61ff1aabe89785814c264fdc26fd89..587d75f09b93f040b32f9520f4a72bf3548b46c3 100644 (file)
@@ -84,13 +84,14 @@ This uses `rmail-output-file-alist'."
                                        (eval (cdar tail))
                                      (error
                                       (display-warning
-                                       :error
+                                       'rmail-output
                                        (format-message "\
 Error evaluating `rmail-output-file-alist' element:
 regexp: %s
 action: %s
 error: %S\n"
-                                               (caar tail) (cdar tail) err))
+                                               (caar tail) (cdar tail) err)
+                                        :error)
                                       nil))))
                          (setq tail (cdr tail)))
                        answer))))))