From: Chong Yidong <cyd@stupidchicken.com>
To: emacs-devel@gnu.org
Cc: 5380@debbugs.gnu.org
Subject: bug#5380: Problem with command sgml-name-8bit-mode in GNU emacs 23.1
Date: Wed, 20 Jan 2010 20:56:23 -0500 [thread overview]
Message-ID: <87tyugfcfs.fsf__32357.8271353201$1264039790$gmane$org@stupidchicken.com> (raw)
In-Reply-To: <4B4F97A9.1080506@freenet.de>
Could someone with a non-English keyboard please try to debug Bug#5380?
> I encountered a problem with the function ``sgml-name-8bit-mode'',
> (menu option (SGML/Toggle 8 bit insertion)... After switching on the
> ``sgml name entity mode'' typing an umlaut character like ä (a umlaut)
> now no more (as in previous emacs versions and as expected) produces
> ``ä'' but ``\344''.
In sgml-mode-map, we do the following:
(let ((c 127)
(map (nth 1 map)))
(while (< (setq c (1+ c)) 256)
(aset map c 'sgml-maybe-name-self)))
where
(defun sgml-maybe-name-self ()
"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))
(self-insert-command 1)))
This must have broken with the switch to unicode, but it's inconvenient
for me to debug without a keyboard that can produce these characters.
next prev parent reply other threads:[~2010-01-21 1:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-14 22:16 bug#5380: Problem with command sgml-name-8bit-mode in GNU emacs 23.1 Volker Kiefel
2010-01-21 1:56 ` Chong Yidong [this message]
2010-01-21 1:56 ` Chong Yidong
2010-01-21 2:47 ` bug#5380: " Kenichi Handa
2010-01-21 14:02 ` Chong Yidong
2010-01-21 14:02 ` Chong Yidong
2010-01-21 2:47 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='87tyugfcfs.fsf__32357.8271353201$1264039790$gmane$org@stupidchicken.com' \
--to=cyd@stupidchicken.com \
--cc=5380@debbugs.gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.