diff options
| author | David Ponce | 2005-03-18 08:07:55 +0000 |
|---|---|---|
| committer | David Ponce | 2005-03-18 08:07:55 +0000 |
| commit | 5a146628e5a041b653dd34ff5705d0356381d083 (patch) | |
| tree | f7deedeb826b7b69f07c89adb8502339394cb033 /lisp | |
| parent | 42f73fb49aabda9afb8a36e88521dfb83a41da3f (diff) | |
| download | emacs-5a146628e5a041b653dd34ff5705d0356381d083.tar.gz emacs-5a146628e5a041b653dd34ff5705d0356381d083.zip | |
(hack-local-variables): Do a case-insensitive search
for End.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/files.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el index a4bb4f86d4e..ebd4d469f5c 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2247,10 +2247,11 @@ is specified, returning t if it is specified." | |||
| 2247 | endpos | 2247 | endpos |
| 2248 | (thisbuf (current-buffer))) | 2248 | (thisbuf (current-buffer))) |
| 2249 | (save-excursion | 2249 | (save-excursion |
| 2250 | (if (not (re-search-forward | 2250 | (unless (let ((case-fold-search t)) |
| 2251 | (concat prefix "[ \t]*End:[ \t]*" suffix) | 2251 | (re-search-forward |
| 2252 | nil t)) | 2252 | (concat prefix "[ \t]*End:[ \t]*" suffix) |
| 2253 | (error "Local variables list is not properly terminated")) | 2253 | nil t)) |
| 2254 | (error "Local variables list is not properly terminated")) | ||
| 2254 | (beginning-of-line) | 2255 | (beginning-of-line) |
| 2255 | (setq endpos (point))) | 2256 | (setq endpos (point))) |
| 2256 | 2257 | ||