changeset 42011:235915876f5b

(set-auto-coding): Don't search for "unibyte:" or "coding:" if set-auto-mode-1 returns nil.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 13 Dec 2001 14:41:19 +0000
parents eb720810e87f
children 99f6a890f116
files lisp/international/mule.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule.el	Thu Dec 13 10:04:34 2001 +0000
+++ b/lisp/international/mule.el	Thu Dec 13 14:41:19 2001 +0000
@@ -1388,7 +1388,7 @@
 	  (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