unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60085: 30.0.50; `help-enable-autoload' is not fully obeyed
@ 2022-12-15  8:58 Ihor Radchenko
  2022-12-15 15:04 ` Max Nikulin
  0 siblings, 1 reply; 2+ messages in thread
From: Ihor Radchenko @ 2022-12-15  8:58 UTC (permalink / raw)
  To: 60085; +Cc: Stefan Monnier

Hi,

This bug report is a follow-up from
https://orgmode.org/list/jwvfsdi6or0.fsf-monnier+emacs@gnu.org where
Stefan stated the following:

> >     Like I said in another message that I sent just before receiving yours
> >     my conclusion came from the fact that hitting 'C-h v' with the cursor
> >     on 'org-goto-interface' provided nothing.  It was the first time this
> >     ever happened to me.  I did try to explicitly enter the variable's
> >     name by entering 'org-goto<TAB>', which (like 'org-go<TAB>') is not
> >     enough: it is completed to 'org--goto'.
> 
> AFAICT this is a missing feature: we obey `help-enable-autoload` in
> `describe-function` but we fail to do the same autoloading dance in
> `describe-variable`.

Recipe 1:

1. emacs -Q
2. Type "debug-on-error"
3. C-h v
4. Observe "Describe variable (default debug-on-error): "
5. C-g
6. <RET> org-mouse-map
  (note that org-mouse.el is not auto-loaded)
7. C-h v
8. Observe "Describe variable: "
   Expected: "Describe variable (default org-mouse-map): "

Recipe 2:

1. emacs -Q
2. Type C-h v org-go <TAB>
3. Observe "Describe variable: org--goto"
4. C-g
5. M-: (require 'org-goto)
6. C-h v org-go <TAB>
7. Observe "Describe variable: org-goto-"

7 is expected at 3.

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.35, cairo version 1.17.6) of 2022-12-07 built on localhost
Repository revision: f0e118d3f676afe39df29663399d4bbe8f53f208
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Gentoo Linux


-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#60085: 30.0.50; `help-enable-autoload' is not fully obeyed
  2022-12-15  8:58 bug#60085: 30.0.50; `help-enable-autoload' is not fully obeyed Ihor Radchenko
@ 2022-12-15 15:04 ` Max Nikulin
  0 siblings, 0 replies; 2+ messages in thread
From: Max Nikulin @ 2022-12-15 15:04 UTC (permalink / raw)
  To: yantar92, 60085

On 15/12/2022 15:58, Ihor Radchenko wrote:
> 2. Type C-h v org-go <TAB>
> 3. Observe "Describe variable: org--goto"

Notice that

     C-h v org-goto- TAB TAB

offers completion to org-goto-interface since such string causes 
org-goto autoload.

Please, consider registered autoload prefixes as candidates for 
completion org-go -> org-goto-.

It would be great to share similar completion-related code in 
`describe-variable' and in `customize-variable'.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-15 15:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-15  8:58 bug#60085: 30.0.50; `help-enable-autoload' is not fully obeyed Ihor Radchenko
2022-12-15 15:04 ` Max Nikulin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).