diff options
| author | Eli Zaretskii | 2024-10-19 09:40:53 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-19 09:40:53 +0300 |
| commit | b730c4acfcff20047a5c574fbf36c5ef1271b902 (patch) | |
| tree | 1295fd2963405c15e2e1ec58be6c6b57c17778ec | |
| parent | 1854f2751e3f73e1e5f12f6de993b6357de1766b (diff) | |
| download | emacs-b730c4acfcff20047a5c574fbf36c5ef1271b902.tar.gz emacs-b730c4acfcff20047a5c574fbf36c5ef1271b902.zip | |
Fix skeleton-related errors in sgml-mode.el
* lisp/textmodes/sgml-mode.el (sgml-mode-facemenu-add-face-function)
(sgml-attributes): Require 'skeleton before using its symbols.
(Bug#53710)
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index f126df8955a..ee585896946 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -533,6 +533,7 @@ an optional alist of possible values." | |||
| 533 | "Add \"face\" tags with `facemenu-keymap' commands." | 533 | "Add \"face\" tags with `facemenu-keymap' commands." |
| 534 | (let ((tag-face (ensure-list (cdr (assq face sgml-face-tag-alist))))) | 534 | (let ((tag-face (ensure-list (cdr (assq face sgml-face-tag-alist))))) |
| 535 | (cond (tag-face | 535 | (cond (tag-face |
| 536 | (require 'skeleton) | ||
| 536 | (setq tag-face (funcall skeleton-transformation-function tag-face)) | 537 | (setq tag-face (funcall skeleton-transformation-function tag-face)) |
| 537 | (setq facemenu-end-add-face | 538 | (setq facemenu-end-add-face |
| 538 | (mapconcat (lambda (f) (concat "</" f ">")) (reverse tag-face))) | 539 | (mapconcat (lambda (f) (concat "</" f ">")) (reverse tag-face))) |
| @@ -851,6 +852,7 @@ If QUIET, do not print a message when there are no attributes for TAG." | |||
| 851 | (setq alist (cons '("class") alist))) | 852 | (setq alist (cons '("class") alist))) |
| 852 | (unless (assoc-string "id" alist) | 853 | (unless (assoc-string "id" alist) |
| 853 | (setq alist (cons '("id") alist)))) | 854 | (setq alist (cons '("id") alist)))) |
| 855 | (require 'skeleton) | ||
| 854 | (if (stringp (car alist)) | 856 | (if (stringp (car alist)) |
| 855 | (progn | 857 | (progn |
| 856 | (insert (if (eq (preceding-char) ?\s) "" ?\s) | 858 | (insert (if (eq (preceding-char) ?\s) "" ?\s) |