unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10945: Can't search through help menu.
@ 2012-03-05 10:07 Alan Mackenzie
  2017-05-04 15:43 ` Bartosz Duszel
  2019-11-01 22:24 ` Stefan Kangas
  0 siblings, 2 replies; 17+ messages in thread
From: Alan Mackenzie @ 2012-03-05 10:07 UTC (permalink / raw)
  To: 10945

Hello, Emacs.

With a recent bzr head:

emacs -Q
C-h ?       ; brings up the help menu

I now want to search through this menu for "ChangeLog":

C-x         ; intending C-x o

The menu disappears.  This isn't friendly.

-- 
Alan Mackenzie (Nuremberg, Germany).





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

* bug#10945: Can't search through help menu.
  2012-03-05 10:07 bug#10945: Can't search through help menu Alan Mackenzie
@ 2017-05-04 15:43 ` Bartosz Duszel
  2017-05-04 15:52   ` Drew Adams
  2019-11-01 22:24 ` Stefan Kangas
  1 sibling, 1 reply; 17+ messages in thread
From: Bartosz Duszel @ 2017-05-04 15:43 UTC (permalink / raw)
  To: 10945

This one is pretty old but I wonder - is it a bug or not? Should we allow to enter window with help?

Best regards,
Bartosz Duszel




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

* bug#10945: Can't search through help menu.
  2017-05-04 15:43 ` Bartosz Duszel
@ 2017-05-04 15:52   ` Drew Adams
  2017-05-04 15:54     ` Bartosz Duszel
  0 siblings, 1 reply; 17+ messages in thread
From: Drew Adams @ 2017-05-04 15:52 UTC (permalink / raw)
  To: Bartosz Duszel, 10945

> This one is pretty old but I wonder - is it a bug or not? Should we allow to
> enter window with help?

No idea what this means.  Maybe it's clear to someone else; dunno.

Could you give a recipe to describe what you cannot do that you
would like to do?  Start with what it is that you mean by "help
menu" - do you mean the menu-bar menu `Help'?  If so, what do you
mean by "search through" such a menu?





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

* bug#10945: Can't search through help menu.
  2017-05-04 15:52   ` Drew Adams
@ 2017-05-04 15:54     ` Bartosz Duszel
  2017-05-04 15:57       ` Drew Adams
  2017-05-04 16:05       ` Drew Adams
  0 siblings, 2 replies; 17+ messages in thread
From: Bartosz Duszel @ 2017-05-04 15:54 UTC (permalink / raw)
  To: Drew Adams; +Cc: 10945

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]


> On 4 May 2017, at 17:52, Drew Adams <drew.adams@oracle.com> wrote:
> 
>> This one is pretty old but I wonder - is it a bug or not? Should we allow to
>> enter window with help?
> 
> No idea what this means.  Maybe it's clear to someone else; dunno.
> 
> Could you give a recipe to describe what you cannot do that you
> would like to do?  Start with what it is that you mean by "help
> menu" - do you mean the menu-bar menu `Help'?  If so, what do you
> mean by "search through" such a menu?

Hmmm… I thought that if reply to this bug number it will somehow present the thread history.

Anyway - here is the bug report:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=10945 <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=10945>

[-- Attachment #2: Type: text/html, Size: 1471 bytes --]

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

* bug#10945: Can't search through help menu.
  2017-05-04 15:54     ` Bartosz Duszel
@ 2017-05-04 15:57       ` Drew Adams
  2017-05-04 16:05       ` Drew Adams
  1 sibling, 0 replies; 17+ messages in thread
From: Drew Adams @ 2017-05-04 15:57 UTC (permalink / raw)
  To: Bartosz Duszel; +Cc: 10945

> Hmmm… I thought that if reply to this bug number it will somehow present
> the thread history.
> 
> Anyway - here is the bug report:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=10945

Very sorry; my bad.  I thought this was a new bug report, and that
your message was the whole bug report.  Perhaps I thought that
because the Subject line didn't say "RE:", for some reason.

Sorry.





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

* bug#10945: Can't search through help menu.
  2017-05-04 15:54     ` Bartosz Duszel
  2017-05-04 15:57       ` Drew Adams
@ 2017-05-04 16:05       ` Drew Adams
  2017-05-04 16:59         ` Bartosz Duszel
  1 sibling, 1 reply; 17+ messages in thread
From: Drew Adams @ 2017-05-04 16:05 UTC (permalink / raw)
  To: Bartosz Duszel; +Cc: 10945

Wrt the original bug report:

1. You can click mouse-1 in buffer `*Metahelp*' (the buffer you want
to search).

2. I guess we could define a key in the local map (the value of
`helped-map' from `make-help-screen') that would switch to that
buffer.





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

* bug#10945: Can't search through help menu.
  2017-05-04 16:05       ` Drew Adams
@ 2017-05-04 16:59         ` Bartosz Duszel
  2017-05-04 18:10           ` Bartosz Duszel
  0 siblings, 1 reply; 17+ messages in thread
From: Bartosz Duszel @ 2017-05-04 16:59 UTC (permalink / raw)
  To: Drew Adams; +Cc: 10945


> On 4 May 2017, at 18:05, Drew Adams <drew.adams@oracle.com> wrote:
> 
> Wrt the original bug report:
> 
> 1. You can click mouse-1 in buffer `*Metahelp*' (the buffer you want
> to search).
> 
> 2. I guess we could define a key in the local map (the value of
> `helped-map' from `make-help-screen') that would switch to that
> buffer.

No problem, I will try to do that. It shouldn’t be too complicated and I am pretty
new here. :)

Best regards,
Bartosz Duszel




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

* bug#10945: Can't search through help menu.
  2017-05-04 16:59         ` Bartosz Duszel
@ 2017-05-04 18:10           ` Bartosz Duszel
  2017-05-05  2:48             ` npostavs
  0 siblings, 1 reply; 17+ messages in thread
From: Bartosz Duszel @ 2017-05-04 18:10 UTC (permalink / raw)
  To: Drew Adams; +Cc: 10945


> On 4 May 2017, at 18:59, Bartosz Duszel <dptdescribe@gmail.com> wrote:
> 
> 
>> On 4 May 2017, at 18:05, Drew Adams <drew.adams@oracle.com> wrote:
>> 
>> Wrt the original bug report:
>> 
>> 1. You can click mouse-1 in buffer `*Metahelp*' (the buffer you want
>> to search).
>> 
>> 2. I guess we could define a key in the local map (the value of
>> `helped-map' from `make-help-screen') that would switch to that
>> buffer.
> 
> No problem, I will try to do that. It shouldn’t be too complicated and I am pretty
> new here. :)
> 
> Best regards,
> Bartosz Duszel

After some more thinking I am not sure if this is the best approach.

1. After clicking mouse-1 in buffer `*Metahelp*’ you can easily search in this buffer but
all the mapped keys doesn’t work at this point. You need to look for what you need in the buffer
and run C-h ? once again.

2. Author of the bug highlighted that the current behaviour is not friendly. I am also not sure
if adding another key just for changing the window is a good solution.

At this point I do not know how we should handle this case.




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

* bug#10945: Can't search through help menu.
  2017-05-04 18:10           ` Bartosz Duszel
@ 2017-05-05  2:48             ` npostavs
  2017-05-05  3:40               ` Drew Adams
  0 siblings, 1 reply; 17+ messages in thread
From: npostavs @ 2017-05-05  2:48 UTC (permalink / raw)
  To: Bartosz Duszel; +Cc: 10945

severity 10945 wishlist
quit

Bartosz Duszel <dptdescribe@gmail.com> writes:

>>> 1. You can click mouse-1 in buffer `*Metahelp*' (the buffer you want
>>> to search).
>>> 
>>> 2. I guess we could define a key in the local map (the value of
>>> `helped-map' from `make-help-screen') that would switch to that
>>> buffer.
>
> After some more thinking I am not sure if this is the best approach.
>
> 1. After clicking mouse-1 in buffer `*Metahelp*’ you can easily search in this buffer but
> all the mapped keys doesn’t work at this point. You need to look for what you need in the buffer
> and run C-h ? once again.
>
> 2. Author of the bug highlighted that the current behaviour is not friendly. I am also not sure
> if adding another key just for changing the window is a good solution.
>
> At this point I do not know how we should handle this case.

IMO any key that isn't bound should fallback to its standard binding,
and the keys should only apply when the focus is in the minibuffer, like
other prompts (e.g., find-file).

In terms of implementation, I think this would mean binding the map only
in the minibuffer instead of using read-key-sequence.





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

* bug#10945: Can't search through help menu.
  2017-05-05  2:48             ` npostavs
@ 2017-05-05  3:40               ` Drew Adams
  2017-05-05 12:12                 ` npostavs
  0 siblings, 1 reply; 17+ messages in thread
From: Drew Adams @ 2017-05-05  3:40 UTC (permalink / raw)
  To: npostavs, Bartosz Duszel; +Cc: 10945

> IMO any key that isn't bound should fallback to its standard binding,
> and the keys should only apply when the focus is in the minibuffer, like
> other prompts (e.g., find-file).
> 
> In terms of implementation, I think this would mean binding the map
> only in the minibuffer instead of using read-key-sequence.

I don't have time to check now, but I think that the minibuffer
is not involved here at all.  Instead, an event is read directly.
IOW, this is more akin to `y-or-n-p': there is a prompt, but is
not for reading input from the minibuffer.

And the keymap used is a local one created by
`help-for-help-internal', which is a function defined
using `make-help-screen'.





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

* bug#10945: Can't search through help menu.
  2017-05-05  3:40               ` Drew Adams
@ 2017-05-05 12:12                 ` npostavs
  0 siblings, 0 replies; 17+ messages in thread
From: npostavs @ 2017-05-05 12:12 UTC (permalink / raw)
  To: Drew Adams; +Cc: Bartosz Duszel, 10945

Drew Adams <drew.adams@oracle.com> writes:

>> IMO any key that isn't bound should fallback to its standard binding,
>> and the keys should only apply when the focus is in the minibuffer, like
>> other prompts (e.g., find-file).
>> 
>> In terms of implementation, I think this would mean binding the map
>> only in the minibuffer instead of using read-key-sequence.
>
> I don't have time to check now, but I think that the minibuffer
> is not involved here at all.  Instead, an event is read directly.

Yes, I'm suggesting to change that.

> IOW, this is more akin to `y-or-n-p': there is a prompt, but is
> not for reading input from the minibuffer.

> And the keymap used is a local one created by
> `help-for-help-internal', which is a function defined
> using `make-help-screen'.





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

* bug#10945: Can't search through help menu.
  2012-03-05 10:07 bug#10945: Can't search through help menu Alan Mackenzie
  2017-05-04 15:43 ` Bartosz Duszel
@ 2019-11-01 22:24 ` Stefan Kangas
  2019-11-13 20:56   ` Juri Linkov
  1 sibling, 1 reply; 17+ messages in thread
From: Stefan Kangas @ 2019-11-01 22:24 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: 10945

Alan Mackenzie <acm@muc.de> writes:

> Hello, Emacs.
>
> With a recent bzr head:
>
> emacs -Q
> C-h ?       ; brings up the help menu
>
> I now want to search through this menu for "ChangeLog":
>
> C-x         ; intending C-x o
>
> The menu disappears.  This isn't friendly.

We can now search that window using `C-h ? C-s', and it switches to
the *Metahelp* window.  This functionality was added in this comit:

956c39d11d 2018-04-02 Make help-for-help window searchable (Bug#19655)

`C-h C-x o' still doesn't work, though.

Is that good enough here?

Best regards,
Stefan Kangas





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

* bug#10945: Can't search through help menu.
  2019-11-01 22:24 ` Stefan Kangas
@ 2019-11-13 20:56   ` Juri Linkov
  2019-11-14 18:24     ` Alan Mackenzie
  0 siblings, 1 reply; 17+ messages in thread
From: Juri Linkov @ 2019-11-13 20:56 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Alan Mackenzie, 10945

>> emacs -Q
>> C-h ?       ; brings up the help menu
>>
>> I now want to search through this menu for "ChangeLog":
>>
>> C-x         ; intending C-x o
>>
>> The menu disappears.  This isn't friendly.
>
> We can now search that window using `C-h ? C-s', and it switches to
> the *Metahelp* window.  This functionality was added in this comit:
>
> 956c39d11d 2018-04-02 Make help-for-help window searchable (Bug#19655)
>
> `C-h C-x o' still doesn't work, though.
>
> Is that good enough here?

Maybe help-for-help should use the minibuffer for reading commands
instead of using explicit read-key-sequence?  This would allow
switching to the *Metahelp* window with 'C-x o'.





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

* bug#10945: Can't search through help menu.
  2019-11-13 20:56   ` Juri Linkov
@ 2019-11-14 18:24     ` Alan Mackenzie
  2019-11-18 21:18       ` Juri Linkov
  0 siblings, 1 reply; 17+ messages in thread
From: Alan Mackenzie @ 2019-11-14 18:24 UTC (permalink / raw)
  To: Juri Linkov; +Cc: Stefan Kangas, 10945

Hello, Juri.

On Wed, Nov 13, 2019 at 22:56:30 +0200, Juri Linkov wrote:
> >> emacs -Q
> >> C-h ?       ; brings up the help menu

> >> I now want to search through this menu for "ChangeLog":

> >> C-x         ; intending C-x o

> >> The menu disappears.  This isn't friendly.

> > We can now search that window using `C-h ? C-s', and it switches to
> > the *Metahelp* window.  This functionality was added in this comit:

> > 956c39d11d 2018-04-02 Make help-for-help window searchable (Bug#19655)

> > `C-h C-x o' still doesn't work, though.

> > Is that good enough here?

> Maybe help-for-help should use the minibuffer for reading commands
> instead of using explicit read-key-sequence?  This would allow
> switching to the *Metahelp* window with 'C-x o'.

This sounds like an excellent idea.

-- 
Alan Mackenzie (Nuremberg, Germany).





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

* bug#10945: Can't search through help menu.
  2019-11-14 18:24     ` Alan Mackenzie
@ 2019-11-18 21:18       ` Juri Linkov
  2021-10-23  3:49         ` Stefan Kangas
  0 siblings, 1 reply; 17+ messages in thread
From: Juri Linkov @ 2019-11-18 21:18 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: Stefan Kangas, 10945

>> >> emacs -Q
>> >> C-h ?       ; brings up the help menu
>
>> >> I now want to search through this menu for "ChangeLog":
>
>> >> C-x         ; intending C-x o
>
>> >> The menu disappears.  This isn't friendly.
>
>> > We can now search that window using `C-h ? C-s', and it switches to
>> > the *Metahelp* window.  This functionality was added in this comit:
>
>> > 956c39d11d 2018-04-02 Make help-for-help window searchable (Bug#19655)
>
>> > `C-h C-x o' still doesn't work, though.
>
>> > Is that good enough here?
>
>> Maybe help-for-help should use the minibuffer for reading commands
>> instead of using explicit read-key-sequence?  This would allow
>> switching to the *Metahelp* window with 'C-x o'.
>
> This sounds like an excellent idea.

I tried, but the major problem is how to create a wrapper around
commands in 'help-map' to exit the minibuffer before running them.
For example, evaluating:

(read-from-minibuffer "C-h (Type ? for further options)- " nil help-map)

then typing one of the help character, doesn't exit the minibuffer.
Some additional layer of indirection could exit the minibuffer
before running the command, but currently I have no idea how to do this.

PS: Also isearch-help-for-help can't use the minibuffer to read help keys
while isearch-mode is enabled, but this is a minor obstacle.





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

* bug#10945: Can't search through help menu.
  2019-11-18 21:18       ` Juri Linkov
@ 2021-10-23  3:49         ` Stefan Kangas
  2021-10-23 18:23           ` Juri Linkov
  0 siblings, 1 reply; 17+ messages in thread
From: Stefan Kangas @ 2021-10-23  3:49 UTC (permalink / raw)
  To: Juri Linkov; +Cc: Alan Mackenzie, 10945-done

Juri Linkov <juri@linkov.net> writes:

>>> >> emacs -Q
>>> >> C-h ?       ; brings up the help menu
>>
>>> >> I now want to search through this menu for "ChangeLog":
>>
>>> >> C-x         ; intending C-x o
>>
>>> >> The menu disappears.  This isn't friendly.
>>
>>> > We can now search that window using `C-h ? C-s', and it switches to
>>> > the *Metahelp* window.  This functionality was added in this comit:
>>
>>> > 956c39d11d 2018-04-02 Make help-for-help window searchable (Bug#19655)
>>
>>> > `C-h C-x o' still doesn't work, though.
>>
>>> > Is that good enough here?
>>
>>> Maybe help-for-help should use the minibuffer for reading commands
>>> instead of using explicit read-key-sequence?  This would allow
>>> switching to the *Metahelp* window with 'C-x o'.
>>
>> This sounds like an excellent idea.
>
> I tried, but the major problem is how to create a wrapper around
> commands in 'help-map' to exit the minibuffer before running them.
> For example, evaluating:
>
> (read-from-minibuffer "C-h (Type ? for further options)- " nil help-map)
>
> then typing one of the help character, doesn't exit the minibuffer.
> Some additional layer of indirection could exit the minibuffer
> before running the command, but currently I have no idea how to do this.
>
> PS: Also isearch-help-for-help can't use the minibuffer to read help keys
> while isearch-mode is enabled, but this is a minor obstacle.

Thanks for looking into that.  The issue seems orthogonal to this bug
report though, so I will close this for now.  Feel free to open a new
bug report if you think we should continue looking into that part.

One observation is that you can now land in the " *Metahelp*" buffer by
saying "C-h C-h C-s emacs RET", which lands point in it.





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

* bug#10945: Can't search through help menu.
  2021-10-23  3:49         ` Stefan Kangas
@ 2021-10-23 18:23           ` Juri Linkov
  0 siblings, 0 replies; 17+ messages in thread
From: Juri Linkov @ 2021-10-23 18:23 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Alan Mackenzie, 10945-done

> One observation is that you can now land in the " *Metahelp*" buffer by
> saying "C-h C-h C-s emacs RET", which lands point in it.

When I need to get point into the *Metahelp* buffer,
I just click the mouse anywhere in this buffer.





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

end of thread, other threads:[~2021-10-23 18:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-05 10:07 bug#10945: Can't search through help menu Alan Mackenzie
2017-05-04 15:43 ` Bartosz Duszel
2017-05-04 15:52   ` Drew Adams
2017-05-04 15:54     ` Bartosz Duszel
2017-05-04 15:57       ` Drew Adams
2017-05-04 16:05       ` Drew Adams
2017-05-04 16:59         ` Bartosz Duszel
2017-05-04 18:10           ` Bartosz Duszel
2017-05-05  2:48             ` npostavs
2017-05-05  3:40               ` Drew Adams
2017-05-05 12:12                 ` npostavs
2019-11-01 22:24 ` Stefan Kangas
2019-11-13 20:56   ` Juri Linkov
2019-11-14 18:24     ` Alan Mackenzie
2019-11-18 21:18       ` Juri Linkov
2021-10-23  3:49         ` Stefan Kangas
2021-10-23 18:23           ` Juri Linkov

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).