emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Proposal to change cursor appearance to indicate region acti


From: Eli Zaretskii
Subject: Re: [PATCH] Proposal to change cursor appearance to indicate region activation
Date: Fri, 23 Jan 2015 13:56:52 +0200

> From: Kelly Dean <address@hidden>
> CC: address@hidden
> Date: Fri, 23 Jan 2015 11:40:55 +0000
> 
> Eli Zaretskii wrote:
> >> +(add-hook 'emacs-startup-hook #'maybe-disable--dynamic-cursor)
> >
> > Isn't there a way to do this that avoids using hooks?  I think using
> > hooks in standard features should be avoided.  Hooks are for
> > customizing Emacs.
> 
> I don't know, but there's already a bunch of stuff in Emacs that uses 
> emacs-startup-hook and after-init-hook, so I assumed that's the way I'm 
> supposed to do it.

emacs-startup-hook is currently used in exactly 2 places, one of which
(edt.el) is an emulator, so I could understand why it needs something
like that.

Anyway, the key word here is "avoid", so if there's no cleaner way to
do what you need, it's not *verboten* to use that hook.



reply via email to

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