all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I avoid mapping of § by sgml-mode.el?
Date: Tue, 12 Nov 2013 08:57:07 +0800	[thread overview]
Message-ID: <87mwlawi70.fsf@ericabrahamsen.net> (raw)
In-Reply-To: m24n7jhteg.fsf@gmail.com

Guido Van Hoecke <guivho@gmail.com> 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




  reply	other threads:[~2013-11-12  0:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-11 15:04 How can I avoid mapping of § by sgml-mode.el? Guido Van Hoecke
2013-11-12  0:57 ` Eric Abrahamsen [this message]
2013-11-12  5:32 ` Kevin Rodgers
2013-11-12  7:46   ` Guido Van Hoecke

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=87mwlawi70.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@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.