From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: How can I avoid mapping of =?utf-8?Q?=C2=A7?= by sgml-mode.el? Date: Tue, 12 Nov 2013 08:57:07 +0800 Message-ID: <87mwlawi70.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1384217772 987 80.91.229.3 (12 Nov 2013 00:56:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Nov 2013 00:56:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 12 01:56:16 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vg2H8-0001ff-T7 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Nov 2013 01:56:15 +0100 Original-Received: from localhost ([::1]:40282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg2H8-000760-FI for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2013 19:56:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg2Gq-00075t-Vz for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 19:56:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vg2Gj-0000EV-M4 for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 19:55:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg2Gj-0000EP-C1 for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 19:55:49 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vg2Gh-0000wD-Mk for help-gnu-emacs@gnu.org; Tue, 12 Nov 2013 01:55:47 +0100 Original-Received: from 114.248.16.82 ([114.248.16.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Nov 2013 01:55:47 +0100 Original-Received: from eric by 114.248.16.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Nov 2013 01:55:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.16.82 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:6r5lfyVbnPrHMwJ5XK2N8TEDjFM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94456 Archived-At: Guido Van Hoecke writes: > Fellow Emacs users, > > I use and abuse a private keymap using the § key as prefix-command. It > is conveniently located under the ESC key on my iMac keyboard, > and not used by me for any other purpose. This works fine in all > modes except in sgml mode. There the key is bound to > sgml-maybe-name-self: > > § runs the command sgml-maybe-name-self, which is an interactive > compiled Lisp function in `sgml-mode.el'. > > I have looked into sgml-mode.el but my lisp does not suffice to > find a way to avoid this mapping. > > Can some more knowledgeable person give me a recipe to avoid this > mapping by sgml-mode? You can shut the whole thing off by calling the function (sgml-name-8bit-mode), or setting the variable of the same name to 'nil. That will prevent automatic conversion of any characters, however, which may not be what you want. You could zap that particular character only with: (aset sgml-char-names 167 nil) Hope that helps, Eric