comparison lisp/files.el @ 12068:5d44c48f3b7b

(hack-local-variables-prop-line): Don't downcase var name.
author Karl Heuer <kwzh@gnu.org>
date Mon, 05 Jun 1995 12:30:11 +0000
parents b740095d6a47
children ecc3d54df49e
comparison
equal deleted inserted replaced
12067:73dc8205d259 12068:5d44c48f3b7b
1075 (error "-*- not terminated before end of line"))) 1075 (error "-*- not terminated before end of line")))
1076 (while (< (point) end) 1076 (while (< (point) end)
1077 (or (looking-at "[ \t]*\\([^ \t\n:]+\\)[ \t]*:[ \t]*") 1077 (or (looking-at "[ \t]*\\([^ \t\n:]+\\)[ \t]*:[ \t]*")
1078 (error "malformed -*- line")) 1078 (error "malformed -*- line"))
1079 (goto-char (match-end 0)) 1079 (goto-char (match-end 0))
1080 (let ((key (intern (downcase (buffer-substring 1080 ;; There used to be a downcase here,
1081 (match-beginning 1) 1081 ;; but the manual didn't say so,
1082 (match-end 1))))) 1082 ;; and people want to set var names that aren't all lc.
1083 (let ((key (intern (buffer-substring
1084 (match-beginning 1)
1085 (match-end 1))))
1083 (val (save-restriction 1086 (val (save-restriction
1084 (narrow-to-region (point) end) 1087 (narrow-to-region (point) end)
1085 (read (current-buffer))))) 1088 (read (current-buffer)))))
1086 (or (eq key 'mode) 1089 (or (eq key 'mode)
1087 (setq result (cons (cons key val) result))) 1090 (setq result (cons (cons key val) result)))