aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1998-02-17 20:08:22 +0000
committerDave Love1998-02-17 20:08:22 +0000
commitaa7a8f0ee89966ccdb3bb72b1002b28c5d73781d (patch)
tree8ac6fecb0e8895a5de9d75c6aa1010e227f0f750
parentc923ccc981a34b862ab92e7dfea7eea81282b524 (diff)
downloademacs-aa7a8f0ee89966ccdb3bb72b1002b28c5d73781d.tar.gz
emacs-aa7a8f0ee89966ccdb3bb72b1002b28c5d73781d.zip
(sgml-mode-common): Downcase key for
assoc so upper-case markup works. (sgml-attributes, sgml-tag-help): Likewise.
-rw-r--r--lisp/textmodes/sgml-mode.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index bc2902e0d9f..eff08965f21 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -1,6 +1,6 @@
1;;; sgml-mode.el --- SGML- and HTML-editing modes 1;;; sgml-mode.el --- SGML- and HTML-editing modes
2 2
3;; Copyright (C) 1992, 1995, 1996 Free Software Foundation, Inc. 3;; Copyright (C) 1992, 1995, 1996, 1998 Free Software Foundation, Inc.
4 4
5;; Author: James Clark <jjc@jclark.com> 5;; Author: James Clark <jjc@jclark.com>
6;; Adapted-By: ESR; Daniel.Pfeiffer@Informatik.START.dbp.de 6;; Adapted-By: ESR; Daniel.Pfeiffer@Informatik.START.dbp.de
@@ -303,7 +303,8 @@ varables of same name)."
303 `((1 (,(concat "<\\(" 303 `((1 (,(concat "<\\("
304 (mapconcat 'car sgml-tag-face-alist "\\|") 304 (mapconcat 'car sgml-tag-face-alist "\\|")
305 "\\)\\([ \t].+\\)?>\\(.+\\)</\\1>") 305 "\\)\\([ \t].+\\)?>\\(.+\\)</\\1>")
306 3 (cdr (assoc (match-string 1) ',sgml-tag-face-alist))))))) 306 3 (cdr (assoc (downcase (match-string 1))
307 ',sgml-tag-face-alist)))))))
307 (setq indent-line-function 'indent-relative-maybe 308 (setq indent-line-function 'indent-relative-maybe
308 ;; A start or end tag by itself on a line separates a paragraph. 309 ;; A start or end tag by itself on a line separates a paragraph.
309 ;; This is desirable because SGML discards a newline that appears 310 ;; This is desirable because SGML discards a newline that appears
@@ -539,7 +540,7 @@ If QUIET, do not print a message when there are no attributes for TAG."
539 alist))))) 540 alist)))))
540 (if (string= "" attribute) 541 (if (string= "" attribute)
541 (setq i 0) 542 (setq i 0)
542 (sgml-value (assoc attribute alist)) 543 (sgml-value (assoc (downcase attribute) alist))
543 (setq i (1- i)))) 544 (setq i (1- i))))
544 (if (eq (preceding-char) ? ) 545 (if (eq (preceding-char) ? )
545 (delete-backward-char 1))) 546 (delete-backward-char 1)))
@@ -574,9 +575,9 @@ With prefix argument, only self insert."
574 (error "No tag selected")) 575 (error "No tag selected"))
575 (setq tag (downcase tag)) 576 (setq tag (downcase tag))
576 (message "%s" 577 (message "%s"
577 (or (cdr (assoc tag sgml-tag-help)) 578 (or (cdr (assoc (downcase tag) sgml-tag-help))
578 (and (eq (aref tag 0) ?/) 579 (and (eq (aref tag 0) ?/)
579 (cdr (assoc (substring tag 1) sgml-tag-help))) 580 (cdr (assoc (downcase (substring tag 1)) sgml-tag-help)))
580 "No description available"))) 581 "No description available")))
581 582
582 583