Subject: bug#47198: closed (Re: [External] : Re: bug#47198: 27.1; Why bind some commands by default if they're not defined?)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 16 Mar 2021 19:47:02 +0000

Your bug report

#47198: 27.1; Why bind some commands by default if they're not defined?

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
47198: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47198
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [External] : Re: bug#47198: 27.1; Why bind some commands by default if they're not defined?
From: Eli Zaretskii <[email-masked]>
To: Drew Adams <[email-masked]>
Cc: [email-masked]
Date: Tue, 16 Mar 2021 21:46:27 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Drew Adams <[email-masked]>
> CC: "[email-masked]" <[email-masked]>
> Date: Tue, 16 Mar 2021 19:35:39 +0000
> 
> > >  M-s h f		hi-lock-find-patterns
> > >
> > > This is apparently because file `bindings.el' adds the key binding:

Btw, this command does have a link in the pretest of Emacs 27.2.

So I'm closing this bug report.

Subject: 27.1; Why bind some commands by default if they're not defined?
From: Drew Adams <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Tue, 16 Mar 2021 17:57:45 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

emacs -Q
C-h b

There is this entry, with no link on the command name:

 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?

(This bug is a bit similar to #47197, I guess.  But `vc-ignore' doesn't
seem to be bound anywhere.)

In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)
 of 2020-08-12 built on CIRROCUMULUS
Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.19041
System Description: Microsoft Windows 10 Pro (v10.0.2004.19041.804)