* info-lookup-alist mangled, breaks C-h S
@ 2022-01-02 16:52 T.V Raman
2022-01-03 10:35 ` Daniel Martín
0 siblings, 1 reply; 14+ messages in thread
From: T.V Raman @ 2022-01-02 16:52 UTC (permalink / raw)
To: emacs-devel
This appears to happen when packages from elpa get loaded best I can
tell, but it's proven difficult/impossible to track down.
Running C-h S info-lookup-symbol
throws an error about an invalid symbol that appears to come from an
entry of the form
(emacs-lisp-mode . "woman") that appears inside info-lookup-alist --
but it's impossible to track down who/what is putting that entry in
there.
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-02 16:52 info-lookup-alist mangled, breaks C-h S T.V Raman
@ 2022-01-03 10:35 ` Daniel Martín
2022-01-03 14:45 ` T.V Raman
0 siblings, 1 reply; 14+ messages in thread
From: Daniel Martín @ 2022-01-03 10:35 UTC (permalink / raw)
To: T.V Raman; +Cc: emacs-devel
"T.V Raman" <raman@google.com> writes:
> This appears to happen when packages from elpa get loaded best I can
> tell, but it's proven difficult/impossible to track down.
>
> Running C-h S info-lookup-symbol
> throws an error about an invalid symbol that appears to come from an
> entry of the form
> (emacs-lisp-mode . "woman") that appears inside info-lookup-alist --
> but it's impossible to track down who/what is putting that entry in
> there.
You could try M-x debug-on-variable-change RET info-lookup-alist RET,
and then load your ELPA packages to debug which one is changing that
variable in an incorrect way.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-03 10:35 ` Daniel Martín
@ 2022-01-03 14:45 ` T.V Raman
2022-01-03 20:02 ` Tassilo Horn
0 siblings, 1 reply; 14+ messages in thread
From: T.V Raman @ 2022-01-03 14:45 UTC (permalink / raw)
To: Daniel Martín; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1111 bytes --]
Daniel Mart¨ªn <mardani29@yahoo.es> writes:
tried that already -- leads down various twisty ratholes since too many
things in emacs core itself touch that variable, and some of that code
was beyond my abilities, eg see the code in tramp-integration.el
-- that one appears to be an earlier offendor with respect to adding an
invalid entry.
> "T.V Raman" <raman@google.com> writes:
>
>> This appears to happen when packages from elpa get loaded best I can
>> tell, but it's proven difficult/impossible to track down.
>>
>> Running C-h S info-lookup-symbol
>> throws an error about an invalid symbol that appears to come from an
>> entry of the form
>> (emacs-lisp-mode . "woman") that appears inside info-lookup-alist --
>> but it's impossible to track down who/what is putting that entry in
>> there.
>
> You could try M-x debug-on-variable-change RET info-lookup-alist RET,
> and then load your ELPA packages to debug which one is changing that
> variable in an incorrect way.
>
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1 0Ü8
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-03 14:45 ` T.V Raman
@ 2022-01-03 20:02 ` Tassilo Horn
2022-01-04 14:54 ` Eli Zaretskii
2022-01-04 15:45 ` T.V Raman
0 siblings, 2 replies; 14+ messages in thread
From: Tassilo Horn @ 2022-01-03 20:02 UTC (permalink / raw)
To: T.V Raman; +Cc: emacs-devel, Daniel Martín
"T.V Raman" <raman@google.com> writes:
> tried that already -- leads down various twisty ratholes since too many
> things in emacs core itself touch that variable, and some of that code
> was beyond my abilities, eg see the code in tramp-integration.el
>
> -- that one appears to be an earlier offendor with respect to adding an
> invalid entry.
FWIW, the problematic entry doesn't seem to come from some external
package, at least I can reproduce the error using
1. emacs -Q
2. M-x fundamental-mode RET in *stratch*
3. C-h S
with GNU Emacs 29.0.50 of 2022-01-03. The step 2 above is needed
because `C-h S' in an emacs-lisp-mode or lisp-interaction-mode buffer
works just fine whereas I get the error in fundamental-mode or
Info-mode. I can't reproduce with emacs 27 or 28.
I'd suggest you do M-x report-emacs-bug.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-03 20:02 ` Tassilo Horn
@ 2022-01-04 14:54 ` Eli Zaretskii
2022-01-04 15:03 ` Eli Zaretskii
2022-01-04 16:19 ` Tassilo Horn
2022-01-04 15:45 ` T.V Raman
1 sibling, 2 replies; 14+ messages in thread
From: Eli Zaretskii @ 2022-01-04 14:54 UTC (permalink / raw)
To: Tassilo Horn; +Cc: emacs-devel, mardani29, raman
> From: Tassilo Horn <tsdh@gnu.org>
> Date: Mon, 03 Jan 2022 21:02:05 +0100
> Cc: emacs-devel@gnu.org, Daniel Martín <mardani29@yahoo.es>
>
> "T.V Raman" <raman@google.com> writes:
>
> > tried that already -- leads down various twisty ratholes since too many
> > things in emacs core itself touch that variable, and some of that code
> > was beyond my abilities, eg see the code in tramp-integration.el
> >
> > -- that one appears to be an earlier offendor with respect to adding an
> > invalid entry.
>
> FWIW, the problematic entry doesn't seem to come from some external
> package, at least I can reproduce the error using
>
> 1. emacs -Q
> 2. M-x fundamental-mode RET in *stratch*
> 3. C-h S
>
> with GNU Emacs 29.0.50 of 2022-01-03. The step 2 above is needed
> because `C-h S' in an emacs-lisp-mode or lisp-interaction-mode buffer
> works just fine whereas I get the error in fundamental-mode or
> Info-mode. I can't reproduce with emacs 27 or 28.
Does the patch below give good results?
diff --git a/lisp/info-look.el b/lisp/info-look.el
index e6f267d..9224aa3 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -347,7 +347,10 @@ info-lookup-select-mode
(defun info-lookup-change-mode (topic)
(let* ((completions (mapcar (lambda (arg)
- (cons (symbol-name (car arg)) (car arg)))
+ (let ((mode-spec (car arg)))
+ (and (consp mode-spec)
+ (setq mode-spec (car mode-spec)))
+ (cons (symbol-name mode-spec) mode-spec)))
(info-lookup->topic-value topic)))
(mode (completing-read
(format "Use %s help mode: " topic)
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-04 14:54 ` Eli Zaretskii
@ 2022-01-04 15:03 ` Eli Zaretskii
2022-01-05 15:33 ` Lars Ingebrigtsen
2022-01-04 16:19 ` Tassilo Horn
1 sibling, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2022-01-04 15:03 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel
Lars, your commit f839c7f, viz.:
Author: Lars Ingebrigtsen <larsi@gnus.org>
AuthorDate: Sat Oct 9 14:44:21 2021 +0200
Commit: Lars Ingebrigtsen <larsi@gnus.org>
CommitDate: Sat Oct 9 14:44:21 2021 +0200
Make `C-h S' work on symbols from most of the manuals in Emacs
* lisp/info-look.el (lambda): Add `C-h S' lookup for all the
"misc" manuals in Emacs (bug#42753).
introduced a new form for HELP-MODE in info-look up-alist:
+(mapc
+ (lambda (elem)
+ (let* ((prefix (car elem)))
+ (info-lookup-add-help
+ :mode (cons 'emacs-lisp-mode prefix) <<<<<<<<<<<<<<<<<
Now HELP-MODE could be a cons cell, not just a symbol. But the doc
string of info-lookup-alist was not updated, and therefore the
semantics of this form is not documented. What does that cons cell
value mean?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-03 20:02 ` Tassilo Horn
2022-01-04 14:54 ` Eli Zaretskii
@ 2022-01-04 15:45 ` T.V Raman
1 sibling, 0 replies; 14+ messages in thread
From: T.V Raman @ 2022-01-04 15:45 UTC (permalink / raw)
To: tsdh; +Cc: raman, mardani29, emacs-devel
Will file the bug report from a bare-boned emacs later today.
I suspect info-look could do with a major overhaul; some of the list
surgery that modules like tramp-integration.el do to that list look
scarily unmaintainable
Tassilo Horn writes:
> "T.V Raman" <raman@google.com> writes:
>
> > tried that already -- leads down various twisty ratholes since too many
> > things in emacs core itself touch that variable, and some of that code
> > was beyond my abilities, eg see the code in tramp-integration.el
> >
> > -- that one appears to be an earlier offendor with respect to adding an
> > invalid entry.
>
> FWIW, the problematic entry doesn't seem to come from some external
> package, at least I can reproduce the error using
>
> 1. emacs -Q
> 2. M-x fundamental-mode RET in *stratch*
> 3. C-h S
>
> with GNU Emacs 29.0.50 of 2022-01-03. The step 2 above is needed
> because `C-h S' in an emacs-lisp-mode or lisp-interaction-mode buffer
> works just fine whereas I get the error in fundamental-mode or
> Info-mode. I can't reproduce with emacs 27 or 28.
>
> I'd suggest you do M-x report-emacs-bug.
>
> Bye,
> Tassilo
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-04 14:54 ` Eli Zaretskii
2022-01-04 15:03 ` Eli Zaretskii
@ 2022-01-04 16:19 ` Tassilo Horn
2022-01-04 16:27 ` T.V Raman
2022-01-04 16:46 ` Eli Zaretskii
1 sibling, 2 replies; 14+ messages in thread
From: Tassilo Horn @ 2022-01-04 16:19 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel, mardani29, raman
Eli Zaretskii <eliz@gnu.org> writes:
Hi Eli,
>> FWIW, the problematic entry doesn't seem to come from some external
>> package, at least I can reproduce the error using
>>
>> 1. emacs -Q
>> 2. M-x fundamental-mode RET in *stratch*
>> 3. C-h S
>>
>> with GNU Emacs 29.0.50 of 2022-01-03. The step 2 above is needed
>> because `C-h S' in an emacs-lisp-mode or lisp-interaction-mode buffer
>> works just fine whereas I get the error in fundamental-mode or
>> Info-mode. I can't reproduce with emacs 27 or 28.
>
> Does the patch below give good results?
Yes, it does, thanks!
Bye,
Tassilo
> diff --git a/lisp/info-look.el b/lisp/info-look.el
> index e6f267d..9224aa3 100644
> --- a/lisp/info-look.el
> +++ b/lisp/info-look.el
> @@ -347,7 +347,10 @@ info-lookup-select-mode
>
> (defun info-lookup-change-mode (topic)
> (let* ((completions (mapcar (lambda (arg)
> - (cons (symbol-name (car arg)) (car arg)))
> + (let ((mode-spec (car arg)))
> + (and (consp mode-spec)
> + (setq mode-spec (car mode-spec)))
> + (cons (symbol-name mode-spec) mode-spec)))
> (info-lookup->topic-value topic)))
> (mode (completing-read
> (format "Use %s help mode: " topic)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-04 16:19 ` Tassilo Horn
@ 2022-01-04 16:27 ` T.V Raman
2022-01-04 16:46 ` Eli Zaretskii
1 sibling, 0 replies; 14+ messages in thread
From: T.V Raman @ 2022-01-04 16:27 UTC (permalink / raw)
To: tsdh; +Cc: eliz, raman, emacs-devel, mardani29
OK, that's great, I'll wait for that patch to land and wont load the
system with a bug report:-)
Happy New Year all!
Tassilo Horn writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
> Hi Eli,
>
> >> FWIW, the problematic entry doesn't seem to come from some external
> >> package, at least I can reproduce the error using
> >>
> >> 1. emacs -Q
> >> 2. M-x fundamental-mode RET in *stratch*
> >> 3. C-h S
> >>
> >> with GNU Emacs 29.0.50 of 2022-01-03. The step 2 above is needed
> >> because `C-h S' in an emacs-lisp-mode or lisp-interaction-mode buffer
> >> works just fine whereas I get the error in fundamental-mode or
> >> Info-mode. I can't reproduce with emacs 27 or 28.
> >
> > Does the patch below give good results?
>
> Yes, it does, thanks!
>
> Bye,
> Tassilo
>
> > diff --git a/lisp/info-look.el b/lisp/info-look.el
> > index e6f267d..9224aa3 100644
> > --- a/lisp/info-look.el
> > +++ b/lisp/info-look.el
> > @@ -347,7 +347,10 @@ info-lookup-select-mode
> >
> > (defun info-lookup-change-mode (topic)
> > (let* ((completions (mapcar (lambda (arg)
> > - (cons (symbol-name (car arg)) (car arg)))
> > + (let ((mode-spec (car arg)))
> > + (and (consp mode-spec)
> > + (setq mode-spec (car mode-spec)))
> > + (cons (symbol-name mode-spec) mode-spec)))
> > (info-lookup->topic-value topic)))
> > (mode (completing-read
> > (format "Use %s help mode: " topic)
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-04 16:19 ` Tassilo Horn
2022-01-04 16:27 ` T.V Raman
@ 2022-01-04 16:46 ` Eli Zaretskii
2022-01-05 13:18 ` Eli Zaretskii
1 sibling, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2022-01-04 16:46 UTC (permalink / raw)
To: Tassilo Horn; +Cc: emacs-devel, mardani29, raman
> From: Tassilo Horn <tsdh@gnu.org>
> Cc: raman@google.com, emacs-devel@gnu.org, mardani29@yahoo.es
> Date: Tue, 04 Jan 2022 17:19:33 +0100
>
> >> 1. emacs -Q
> >> 2. M-x fundamental-mode RET in *stratch*
> >> 3. C-h S
> >>
> >> with GNU Emacs 29.0.50 of 2022-01-03. The step 2 above is needed
> >> because `C-h S' in an emacs-lisp-mode or lisp-interaction-mode buffer
> >> works just fine whereas I get the error in fundamental-mode or
> >> Info-mode. I can't reproduce with emacs 27 or 28.
> >
> > Does the patch below give good results?
>
> Yes, it does, thanks!
Thanks for testing. Will install, once Lars helps me figure out how
to fix the doc string of info-lookup-alist.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-04 16:46 ` Eli Zaretskii
@ 2022-01-05 13:18 ` Eli Zaretskii
0 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2022-01-05 13:18 UTC (permalink / raw)
To: tsdh; +Cc: mardani29, raman, emacs-devel
> Date: Tue, 04 Jan 2022 18:46:59 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org, mardani29@yahoo.es, raman@google.com
>
> > >> 1. emacs -Q
> > >> 2. M-x fundamental-mode RET in *stratch*
> > >> 3. C-h S
> > >>
> > >> with GNU Emacs 29.0.50 of 2022-01-03. The step 2 above is needed
> > >> because `C-h S' in an emacs-lisp-mode or lisp-interaction-mode buffer
> > >> works just fine whereas I get the error in fundamental-mode or
> > >> Info-mode. I can't reproduce with emacs 27 or 28.
> > >
> > > Does the patch below give good results?
> >
> > Yes, it does, thanks!
>
> Thanks for testing. Will install, once Lars helps me figure out how
> to fix the doc string of info-lookup-alist.
I went ahead and installed it.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-04 15:03 ` Eli Zaretskii
@ 2022-01-05 15:33 ` Lars Ingebrigtsen
2022-01-05 16:46 ` Eli Zaretskii
2022-01-05 17:33 ` T.V Raman
0 siblings, 2 replies; 14+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-05 15:33 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> +(mapc
> + (lambda (elem)
> + (let* ((prefix (car elem)))
> + (info-lookup-add-help
> + :mode (cons 'emacs-lisp-mode prefix) <<<<<<<<<<<<<<<<<
>
> Now HELP-MODE could be a cons cell, not just a symbol. But the doc
> string of info-lookup-alist was not updated, and therefore the
> semantics of this form is not documented. What does that cons cell
> value mean?
The doc string change you've done looks correct to me.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-05 15:33 ` Lars Ingebrigtsen
@ 2022-01-05 16:46 ` Eli Zaretskii
2022-01-05 17:33 ` T.V Raman
1 sibling, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2022-01-05 16:46 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org
> Date: Wed, 05 Jan 2022 16:33:48 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > +(mapc
> > + (lambda (elem)
> > + (let* ((prefix (car elem)))
> > + (info-lookup-add-help
> > + :mode (cons 'emacs-lisp-mode prefix) <<<<<<<<<<<<<<<<<
> >
> > Now HELP-MODE could be a cons cell, not just a symbol. But the doc
> > string of info-lookup-alist was not updated, and therefore the
> > semantics of this form is not documented. What does that cons cell
> > value mean?
>
> The doc string change you've done looks correct to me.
Great, thanks.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: info-lookup-alist mangled, breaks C-h S
2022-01-05 15:33 ` Lars Ingebrigtsen
2022-01-05 16:46 ` Eli Zaretskii
@ 2022-01-05 17:33 ` T.V Raman
1 sibling, 0 replies; 14+ messages in thread
From: T.V Raman @ 2022-01-05 17:33 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Eli Zaretskii, emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 884 bytes --]
Lars Ingebrigtsen <larsi@gnus.org> writes:
I still wonder whether the complex list surgery performed by modules
like tramp-integration is truly needed in current Emacs, or if it's a
throw-back from the distant past that has been amplified by
copy/paste/edit cycles.
> Eli Zaretskii <eliz@gnu.org> writes:
>
>> +(mapc
>> + (lambda (elem)
>> + (let* ((prefix (car elem)))
>> + (info-lookup-add-help
>> + :mode (cons 'emacs-lisp-mode prefix) <<<<<<<<<<<<<<<<<
>>
>> Now HELP-MODE could be a cons cell, not just a symbol. But the doc
>> string of info-lookup-alist was not updated, and therefore the
>> semantics of this form is not documented. What does that cons cell
>> value mean?
>
> The doc string change you've done looks correct to me.
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1 0Ü8
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-01-05 17:33 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-02 16:52 info-lookup-alist mangled, breaks C-h S T.V Raman
2022-01-03 10:35 ` Daniel Martín
2022-01-03 14:45 ` T.V Raman
2022-01-03 20:02 ` Tassilo Horn
2022-01-04 14:54 ` Eli Zaretskii
2022-01-04 15:03 ` Eli Zaretskii
2022-01-05 15:33 ` Lars Ingebrigtsen
2022-01-05 16:46 ` Eli Zaretskii
2022-01-05 17:33 ` T.V Raman
2022-01-04 16:19 ` Tassilo Horn
2022-01-04 16:27 ` T.V Raman
2022-01-04 16:46 ` Eli Zaretskii
2022-01-05 13:18 ` Eli Zaretskii
2022-01-04 15:45 ` T.V Raman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.