From unknown Fri Jun 20 07:09:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5380 <5380@debbugs.gnu.org> To: bug#5380 <5380@debbugs.gnu.org> Subject: Status: Problem with command sgml-name-8bit-mode in GNU emacs 23.1 Reply-To: bug#5380 <5380@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:09 +0000 retitle 5380 Problem with command sgml-name-8bit-mode in GNU emacs 23.1 reassign 5380 emacs submitter 5380 Volker Kiefel severity 5380 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 14 17:38:26 2010 Received: (at submit) by debbugs.gnu.org; 14 Jan 2010 22:38:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVYKf-000804-O0 for submit@debbugs.gnu.org; Thu, 14 Jan 2010 17:38:26 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVY0G-0007k7-3o for submit@debbugs.gnu.org; Thu, 14 Jan 2010 17:17:22 -0500 Received: from mail.gnu.org ([199.232.76.166]:58373 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVY0C-0002kx-0N for submit@debbugs.gnu.org; Thu, 14 Jan 2010 17:17:16 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NVY0A-0000AX-R6 for submit@debbugs.gnu.org; Thu, 14 Jan 2010 17:17:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, RATWARE_GECKO_BUILD, UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:50310) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVY0A-0000A5-F9 for submit@debbugs.gnu.org; Thu, 14 Jan 2010 17:17:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVY09-0000N4-WB for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2010 17:17:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVY05-0000IK-BE for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2010 17:17:13 -0500 Received: from [199.232.76.173] (port=41051 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVY05-0000I0-46 for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2010 17:17:09 -0500 Received: from mout5.freenet.de ([195.4.92.95]:33706) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVY04-00006U-G2 for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2010 17:17:08 -0500 Received: from [195.4.92.18] (helo=8.mx.freenet.de) by mout5.freenet.de with esmtpa (ID volker.kiefel@freenet.de) (port 25) (Exim 4.70 #1) id 1NVY00-0001mI-Ez for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2010 23:17:04 +0100 Received: from nas041.rz.uni-rostock.de ([139.30.22.41]:47352) by 8.mx.freenet.de with esmtpa (ID volker.kiefel@freenet.de) (port 25) (Exim 4.69 #94) id 1NVXzz-0001gZ-NM for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2010 23:17:04 +0100 Message-ID: <4B4F97A9.1080506@freenet.de> Date: Thu, 14 Jan 2010 23:16:09 +0100 From: Volker Kiefel User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Problem with command sgml-name-8bit-mode in GNU emacs 23.1 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 14 Jan 2010 17:38:25 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Hello, dear maintainers of emacs and sgml-mode.el, as a regular user of the html-mode of emacs I encountered a problem with the function ``sgml-name-8bit-mode'', (menu option (SGML/Toggle 8 bit insertion), as I changed to v23.1 of GNU emacs. The problem encountered on the precompiled win32 version and on the version in Linux compiled by myself. 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''. I hope that the problem can be fixed. With kind regards Volker Kiefel Germany --- In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.10.11) of 2010-01-09 on ubuntu Windowing system distributor `The X.Org Foundation', version 11.0.70200000 configured using `configure '--prefix=/home/kiefel/emacs-23.1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 20:56:32 2010 Received: (at 5380) by debbugs.gnu.org; 21 Jan 2010 01:56:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXmHg-0002x5-0g for submit@debbugs.gnu.org; Wed, 20 Jan 2010 20:56:32 -0500 Received: from pantheon-po39.its.yale.edu ([130.132.50.100]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXmHc-0002wv-9K for 5380@debbugs.gnu.org; Wed, 20 Jan 2010 20:56:30 -0500 Received: from furry (adsl-99-58-201-143.dsl.wlfrct.sbcglobal.net [99.58.201.143]) (authenticated bits=0) by pantheon-po39.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0L1uOBd019335 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 20 Jan 2010 20:56:24 -0500 Received: by furry (Postfix, from userid 1000) id 13C34C05D; Wed, 20 Jan 2010 18:56:24 -0700 (MST) From: Chong Yidong To: emacs-devel@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 Message-ID: <87tyugfcfs.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: 5380 Cc: 5380@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) 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 =C3=A4 (a umlau= t) > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 21:47:56 2010 Received: (at 5380) by debbugs.gnu.org; 21 Jan 2010 02:47:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXn5O-0003KE-Bf for submit@debbugs.gnu.org; Wed, 20 Jan 2010 21:47:56 -0500 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXn5M-0003K9-Gu for 5380@debbugs.gnu.org; Wed, 20 Jan 2010 21:47:53 -0500 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o0L2lkPr006936; Thu, 21 Jan 2010 11:47:46 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o0L2lksq001565; Thu, 21 Jan 2010 11:47:46 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id o0L2lkuP008162; Thu, 21 Jan 2010 11:47:46 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1NXn5G-0007Nl-7o; Thu, 21 Jan 2010 11:47:46 +0900 From: Kenichi Handa To: Chong Yidong Subject: Re: bug#5380: Problem with command sgml-name-8bit-mode in GNU emacs 23.1 In-Reply-To: <87tyugfcfs.fsf@stupidchicken.com> (message from Chong Yidong on Wed, 20 Jan 2010 20:56:23 -0500) References: <4B4F97A9.1080506@freenet.de> <87tyugfcfs.fsf@stupidchicken.com> Date: Thu, 21 Jan 2010 11:47:46 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=euc-jp Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5380 Cc: 5380@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article <87tyugfcfs.fsf@stupidchicken.com>, Chong Yidong writes: > 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 =8F=AB=A3 (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,=20 As Emacs receives already decoded character event now, defining sgml-maybe-name-self simply as below will work. (defun sgml-maybe-name-self () "Insert a symbolic character name according to `sgml-char-names'." (interactive "*") (if sgml-name-8bit-mode (sgml-name-char last-command-event) (self-insert-command 1))) > but it's inconvenient for me to debug without a keyboard > that can produce these characters. You can test it as below: (let ((sgml-name-8bit-mode t) (last-command-event #xC0)) (call-interactively 'sgml-maybe-name-self)) --- Kenichi Handa handa@m17n.org From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 21 09:02:38 2010 Received: (at 5380) by debbugs.gnu.org; 21 Jan 2010 14:02:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXxcL-0001iQ-UI for submit@debbugs.gnu.org; Thu, 21 Jan 2010 09:02:38 -0500 Received: from pantheon-po29.its.yale.edu ([130.132.50.124]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXxcK-0001iL-Cy for 5380@debbugs.gnu.org; Thu, 21 Jan 2010 09:02:36 -0500 Received: from furry (adsl-99-58-201-143.dsl.wlfrct.sbcglobal.net [99.58.201.143]) (authenticated bits=0) by pantheon-po29.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0LE2TFZ015417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 21 Jan 2010 09:02:30 -0500 Received: by furry (Postfix, from userid 1000) id 9AAF3C05D; Thu, 21 Jan 2010 07:02:29 -0700 (MST) From: Chong Yidong To: Kenichi Handa Subject: Re: bug#5380: Problem with command sgml-name-8bit-mode in GNU emacs 23.1 References: <4B4F97A9.1080506@freenet.de> <87tyugfcfs.fsf@stupidchicken.com> Date: Thu, 21 Jan 2010 09:02:29 -0500 In-Reply-To: (Kenichi Handa's message of "Thu, 21 Jan 2010 11:47:46 +0900") Message-ID: <87pr53bloq.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: 5380 Cc: 5380@debbugs.gnu.org, emacs-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) Kenichi Handa writes: > As Emacs receives already decoded character event now, > defining sgml-maybe-name-self simply as below will work. Ah, that seems to work. Thanks very much. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 21 09:03:32 2010 Received: (at control) by debbugs.gnu.org; 21 Jan 2010 14:03:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXxdE-0001j5-3V for submit@debbugs.gnu.org; Thu, 21 Jan 2010 09:03:32 -0500 Received: from pantheon-po29.its.yale.edu ([130.132.50.124]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXxdC-0001j0-V1 for control@debbugs.gnu.org; Thu, 21 Jan 2010 09:03:31 -0500 Received: from furry (adsl-99-58-201-143.dsl.wlfrct.sbcglobal.net [99.58.201.143]) (authenticated bits=0) by pantheon-po29.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0LE3PuM015752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 21 Jan 2010 09:03:26 -0500 Received: by furry (Postfix, from userid 1000) id 279CCC05D; Thu, 21 Jan 2010 07:03:25 -0700 (MST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 5380 Date: Thu, 21 Jan 2010 09:03:25 -0500 Message-ID: <87ljfrbln6.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) close 5380 thanks From unknown Fri Jun 20 07:09:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 19 Feb 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator