Mercurial > emacs
diff lisp/textmodes/sgml-mode.el @ 106947:938f7da4579e
Fix sgml-maybe-name-self (Bug#5380).
* textmodes/sgml-mode.el (sgml-maybe-name-self): No need to
process last-command-event, as it is now decoded first (Bug#5380).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 21 Jan 2010 09:03:10 -0500 |
parents | 1d1d5d9bd884 |
children | ce09b34d4a43 376148b31b5e |
line wrap: on
line diff
--- a/lisp/textmodes/sgml-mode.el Thu Jan 21 09:07:49 2010 +0000 +++ b/lisp/textmodes/sgml-mode.el Thu Jan 21 09:03:10 2010 -0500 @@ -608,11 +608,7 @@ "Insert a symbolic character name according to `sgml-char-names'." (interactive "*") (if sgml-name-8bit-mode - (let ((mc last-command-event)) - (if (< mc 256) - (setq mc (unibyte-char-to-multibyte mc))) - (or mc (setq mc last-command-event)) - (sgml-name-char mc)) + (sgml-name-char last-command-event) (self-insert-command 1))) (defun sgml-name-8bit-mode ()