From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#28607: 27.0.50; help-fns unsolicited elisp loading
Date: Sat, 18 May 2019 19:15:40 +0300
Message-ID: <83woin91sj.fsf@gnu.org>
References: <87efqtoc9u.fsf@udel.edu> <3cvak51n96.fsf@fencepost.gnu.org>
	<20170926155126.kujypxt33oxbzxsq@logos.localdomain>
	<83in5xjzak.fsf@gnu.org>
	<CAKyxw10XCzp1fY96vcm_Ep_hZsF3a-YQeUnSkUc1p5WvPtDYhw@mail.gmail.com>
	<bjk1qdds39.fsf@fencepost.gnu.org>
	<CAKyxw13--qefNuxLQNjvsH7WRQHs0ucGmT9bXeZ3eVvtE-rdXA@mail.gmail.com>
	<874l5vf8q5.fsf@gmail.com> <83sgtecyen.fsf@gnu.org>
	<87tvdrda6j.fsf@gmail.com>
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="189480"; mail-complaints-to="usenet@blaine.gmane.org"
Cc: mvoteiza@udel.edu, 28607@debbugs.gnu.org, monnier@iro.umontreal.ca
To: Noam Postavsky <npostavs@gmail.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 18 18:16:16 2019
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256)
	(Exim 4.89)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hS20O-000nBU-LB
	for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 May 2019 18:16:16 +0200
Original-Received: from localhost ([127.0.0.1]:36052 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hS20N-0000dl-Co
	for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 May 2019 12:16:15 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:40733)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hS20C-0000ZK-GB
	for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 12:16:07 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hS20A-0003ET-Q8
	for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 12:16:04 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:47545)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1hS20A-0003EM-MQ
	for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 12:16:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hS20A-00046h-F2
	for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 12:16:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 18 May 2019 16:16:02 +0000
Resent-Message-ID: <handler.28607.B28607.155819615315762@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 28607
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
Original-Received: via spool by 28607-submit@debbugs.gnu.org id=B28607.155819615315762
	(code B ref 28607); Sat, 18 May 2019 16:16:02 +0000
Original-Received: (at 28607) by debbugs.gnu.org; 18 May 2019 16:15:53 +0000
Original-Received: from localhost ([127.0.0.1]:32856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1hS201-00046A-GF
	for submit@debbugs.gnu.org; Sat, 18 May 2019 12:15:53 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:54559)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <eliz@gnu.org>) id 1hS1zz-00045u-7D
	for 28607@debbugs.gnu.org; Sat, 18 May 2019 12:15:51 -0400
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49601)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@gnu.org>)
	id 1hS1zt-00034l-JJ; Sat, 18 May 2019 12:15:45 -0400
Original-Received: from [176.228.60.248] (port=3457 helo=home-c4e4a596f7)
	by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
	(Exim 4.82) (envelope-from <eliz@gnu.org>)
	id 1hS1zs-0000DL-Gk; Sat, 18 May 2019 12:15:44 -0400
In-reply-to: <87tvdrda6j.fsf@gmail.com> (message from Noam Postavsky on Sat,
	18 May 2019 12:00:52 -0400)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 209.51.188.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs/>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
	<bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:159498
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/159498>

> From: Noam Postavsky <npostavs@gmail.com>
> Cc: mvoteiza@udel.edu,  rgm@gnu.org,  28607@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Sat, 18 May 2019 12:00:52 -0400
> 
> > Thanks, this LGTM.  I wonder whether we should document
> > definition-prefixes (together with the mechinery it is part of) and
> > this new option in the ELisp manual.
> 
> Yeah, I think the machinery deserves a mention in the Elisp manual at
> least.  Though the user option should go in the Emacs manual.

Thanks, this LGTM.  A couple of minor nits:

> +@node Autoload by Prefix
> +@subsection Autoload by Prefix

I think a "@cindex autoload by prefix" would be good here.

> +During completion for the commands @code{describe-variable} and
> +@code{describe-function}, Emacs will try to load files which may
> +contain definitions matching the prefix being completed.  The variable
> +@code{definition-prefixes} holds a hashtable which maps a prefix to
> +the corresponding list of files to load for it.  Entries to this
> +mapping are added by calls to @code{register-definition-prefixes}
> +which are generated by @code{update-file-autoloads}.  Files which
> +don't contain any definitions worth loading (test files, for
> +examples), should set @code{autoload-compute-prefixes} to @code{nil}
> +as a file-local variable.

I would add a cross-reference to where update-file-autoloads is
described after it's mentioned.