GNU bug report logs - #47198
27.1; Why bind some commands by default if they're not defined?

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 16 Mar 2021 17:58:02 UTC

Severity: minor

Found in version 27.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 47198 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 47198 <at> debbugs.gnu.org
Subject: Re: bug#47198: 27.1;
 Why bind some commands by default if they're not defined?
Date: Tue, 16 Mar 2021 20:40:13 +0200
> From: Drew Adams <drew.adams <at> oracle.com>
> Date: Tue, 16 Mar 2021 17:57:45 +0000
> 
>  M-s h f		hi-lock-find-patterns
> 
> This is apparently because file `bindings.el' adds the key binding:
> 
>   (define-key search-map "hf"   'hi-lock-find-patterns)
> 
> Is it a good idea that we do this even though the command is not yet
> defined?
> 
> Seems like such a binding should be in hi-lock.el, and be created only
> after the command is created, no?

If the command is in hi-lock.el, how do you cause hi-lock to autoload
when first invoked?




This bug report was last modified 4 years and 68 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.