From: Chong Yidong <cyd@stupidchicken.com>
To: emacs-devel@gnu.org
Cc: 5380@debbugs.gnu.org
Subject: Re: 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@stupidchicken.com> (raw)
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 reply other threads:[~2010-01-21 1:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4B4F97A9.1080506@freenet.de>
2010-01-21 1:56 ` Chong Yidong [this message]
2010-01-21 2:47 ` bug#5380: Problem with command sgml-name-8bit-mode in GNU emacs 23.1 Kenichi Handa
2010-01-21 14:02 ` Chong Yidong
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tyugfcfs.fsf@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).