aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/sgml-mode.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 8e83a8fe90f..a4b5787981d 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -40,7 +40,7 @@
40 (require 'cl)) 40 (require 'cl))
41 41
42(defgroup sgml nil 42(defgroup sgml nil
43 "SGML editing mode" 43 "SGML editing mode."
44 :group 'languages) 44 :group 'languages)
45 45
46(defcustom sgml-basic-offset 2 46(defcustom sgml-basic-offset 2
@@ -670,12 +670,12 @@ If QUIET, do not print a message when there are no attributes for TAG."
670 (message "No attributes configured.")) 670 (message "No attributes configured."))
671 (if (stringp (car alist)) 671 (if (stringp (car alist))
672 (progn 672 (progn
673 (insert (if (eq (preceding-char) ? ) "" ? ) 673 (insert (if (eq (preceding-char) ?\s) "" ?\s)
674 (funcall skeleton-transformation (car alist))) 674 (funcall skeleton-transformation (car alist)))
675 (sgml-value alist)) 675 (sgml-value alist))
676 (setq i (length alist)) 676 (setq i (length alist))
677 (while (> i 0) 677 (while (> i 0)
678 (insert ? ) 678 (insert ?\s)
679 (insert (funcall skeleton-transformation 679 (insert (funcall skeleton-transformation
680 (setq attribute 680 (setq attribute
681 (skeleton-read '(completing-read 681 (skeleton-read '(completing-read
@@ -685,7 +685,7 @@ If QUIET, do not print a message when there are no attributes for TAG."
685 (setq i 0) 685 (setq i 0)
686 (sgml-value (assoc (downcase attribute) alist)) 686 (sgml-value (assoc (downcase attribute) alist))
687 (setq i (1- i)))) 687 (setq i (1- i))))
688 (if (eq (preceding-char) ? ) 688 (if (eq (preceding-char) ?\s)
689 (delete-backward-char 1))) 689 (delete-backward-char 1)))
690 car))) 690 car)))
691 691
@@ -701,7 +701,7 @@ With prefix argument, only self insert."
701 (eq (aref tag 0) ?/)) 701 (eq (aref tag 0) ?/))
702 (self-insert-command (prefix-numeric-value arg)) 702 (self-insert-command (prefix-numeric-value arg))
703 (sgml-attributes tag) 703 (sgml-attributes tag)
704 (setq last-command-char ? ) 704 (setq last-command-char ?\s)
705 (or (> (point) point) 705 (or (> (point) point)
706 (self-insert-command 1))))) 706 (self-insert-command 1)))))
707 707
@@ -1875,7 +1875,7 @@ The third `match-string' will be the used in the menu.")
1875 (setq toc-index 1875 (setq toc-index
1876 (cons (cons (concat (make-string 1876 (cons (cons (concat (make-string
1877 (* 2 (1- (string-to-number (match-string 1)))) 1877 (* 2 (1- (string-to-number (match-string 1))))
1878 ?\ ) 1878 ?\s)
1879 (match-string 3)) 1879 (match-string 3))
1880 (line-beginning-position)) 1880 (line-beginning-position))
1881 toc-index)))) 1881 toc-index))))