emacs-devel
[Top][All Lists]
Advanced

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

Re: CUA mode cursor color


From: Stefan Monnier
Subject: Re: CUA mode cursor color
Date: Mon, 13 May 2002 14:15:39 -0400

> > I dislike the turn-on-X-mode things because they're just redundant.
> IIUC, they are needed for hooks: if you put turn-on-X-mode into a hook,
> you know you will get the X-mode, but if you put X-mode (which just
> toggles) there, you might or might not get it, depending on whether
> X was turned on in the mode definition or in another function added to
> the hook.

(add-hook 'foo-hook (lambda () (mode-X 1)))

only takes 7 more chars than your alternative.
Furthermore, although I know that some people are staunchly opposed
to it, I think that calling (X-mode) with no argument non-interactively
should behave exactly like turn-on-X-mode so that people can just
say (add-hook 'foo-hook 'mode-X) and so that people who already
(incorrectly) do that don't get into trouble.


        Stefan




reply via email to

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