help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's a better regexp for 'sentence-end' variable??


From: David Kastrup
Subject: Re: What's a better regexp for 'sentence-end' variable??
Date: 19 Feb 2003 16:44:42 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:

> David Kastrup <dak@gnu.org> writes:
> 
> > You can also use (add-hook sgml-mode-hook ...), but frankly, that
> > makes it quite more complicated to ensure that sgml-mode-map is
> > changed just once.
> 
> Why is it desirable to ensure that?  I know it's cleaner in a way, but
> on the other hand it makes the code very obfuscated, so why bother...

define-key is a built-in function.
(define-key KEYMAP KEY DEF)
[...]

If KEYMAP is a sparse keymap, the pair binding KEY to DEF is added at
the front of KEYMAP.


In short: your keymaps grow ever longer.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]