]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-auto-coding): Don't search for
authorEli Zaretskii <eliz@gnu.org>
Thu, 13 Dec 2001 14:42:27 +0000 (14:42 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 13 Dec 2001 14:42:27 +0000 (14:42 +0000)
"unibyte:" or "coding:" if set-auto-mode-1 returns nil.

lisp/ChangeLog
lisp/international/mule.el

index 70e5fa83c4deade6cb4a988ed4766c055f8ce5b5..2e29f8405d1da746792105e0d86a7d83d6b35c91 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * international/mule.el (set-auto-coding): Don't search for
+       "unibyte:" or "coding:" if set-auto-mode-1 returns nil.
+
 2001-12-13  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
        * mail/mailabbrev.el (mail-abbrevs-setup): Do not use make-local-hook.
index f8468f999c85b814131282a8f769de3164c4e786..124761c0d2a8807a6f9515dec11efa210997ab0d 100644 (file)
@@ -1388,7 +1388,7 @@ function by default."
          (goto-char head-start)
          (setq head-end (set-auto-mode-1))
          (setq head-start (point))
-         (when (< head-found head-end)
+         (when (and head-end (< head-found head-end))
            (goto-char head-start)
            (when (and set-auto-coding-for-load
                       (re-search-forward