diff options
| author | Kenichi Handa | 1997-09-01 07:17:07 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-09-01 07:17:07 +0000 |
| commit | 3fa0a9aafd089877a62d3a2565222bf89c1cb23e (patch) | |
| tree | 12bd6b6deeb8d83dcea48b435a9c62098932bbde | |
| parent | ef128a918e2950a20dda33825fb1136e5a55a738 (diff) | |
| download | emacs-3fa0a9aafd089877a62d3a2565222bf89c1cb23e.tar.gz emacs-3fa0a9aafd089877a62d3a2565222bf89c1cb23e.zip | |
(hack-local-variables-prop-line): Ignore coding: tag.
(hack-one-local-variable): Likewise.
| -rw-r--r-- | lisp/files.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index 139ff160e18..896640171c1 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1369,8 +1369,9 @@ and we don't even do that unless it would come from the file name." | |||
| 1369 | 1369 | ||
| 1370 | (defun hack-local-variables-prop-line () | 1370 | (defun hack-local-variables-prop-line () |
| 1371 | ;; Set local variables specified in the -*- line. | 1371 | ;; Set local variables specified in the -*- line. |
| 1372 | ;; Ignore any specification for `mode:'; | 1372 | ;; Ignore any specification for `mode:' and `coding:'; |
| 1373 | ;; set-auto-mode should already have handled that. | 1373 | ;; set-auto-mode should already have handled `mode:', |
| 1374 | ;; set-auto-coding should already have handled `coding:'. | ||
| 1374 | (save-excursion | 1375 | (save-excursion |
| 1375 | (goto-char (point-min)) | 1376 | (goto-char (point-min)) |
| 1376 | (let ((result nil) | 1377 | (let ((result nil) |
| @@ -1406,7 +1407,9 @@ and we don't even do that unless it would come from the file name." | |||
| 1406 | ;; case when checking for `mode' in set-auto-mode, | 1407 | ;; case when checking for `mode' in set-auto-mode, |
| 1407 | ;; so we must do that here as well. | 1408 | ;; so we must do that here as well. |
| 1408 | ;; That is inconsistent, but we're stuck with it. | 1409 | ;; That is inconsistent, but we're stuck with it. |
| 1410 | ;; The same can be said for `coding' in set-auto-coding. | ||
| 1409 | (or (equal (downcase (symbol-name key)) "mode") | 1411 | (or (equal (downcase (symbol-name key)) "mode") |
| 1412 | (equal (downcase (symbol-name key)) "coding") | ||
| 1410 | (setq result (cons (cons key val) result))) | 1413 | (setq result (cons (cons key val) result))) |
| 1411 | (skip-chars-forward " \t;"))) | 1414 | (skip-chars-forward " \t;"))) |
| 1412 | (setq result (nreverse result)))) | 1415 | (setq result (nreverse result)))) |
| @@ -1558,6 +1561,9 @@ is specified, returning t if it is specified." | |||
| 1558 | (cond ((eq var 'mode) | 1561 | (cond ((eq var 'mode) |
| 1559 | (funcall (intern (concat (downcase (symbol-name val)) | 1562 | (funcall (intern (concat (downcase (symbol-name val)) |
| 1560 | "-mode")))) | 1563 | "-mode")))) |
| 1564 | ((eq var 'coding) | ||
| 1565 | ;; We have already handled coding: tag in set-auto-coding. | ||
| 1566 | nil) | ||
| 1561 | ((memq var ignored-local-variables) | 1567 | ((memq var ignored-local-variables) |
| 1562 | nil) | 1568 | nil) |
| 1563 | ;; "Setting" eval means either eval it or do nothing. | 1569 | ;; "Setting" eval means either eval it or do nothing. |