all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#60960: 30.0.50; Keybinding for Info-search-next in info-mode
@ 2023-01-20 10:25 Marco Wahl
  2023-01-20 17:26 ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Wahl @ 2023-01-20 10:25 UTC (permalink / raw)
  To: 60960

AFAICS there is no keybinding for function Info-search-next in
info-mode.

This is the suggestion to add a respective binding.

BTW I use the binding (define-key Info-mode-map (kbd "a") #'Info-search-next).

Without this setting one could achive the same effect by pressing key "s"
followed by RET which I find tiring compared to pressing just one key.

Also note that the "less" shell command provides a very similar
functionality with the key "n" after a search.


Thanks for reading!

-- 
Marco Wahl





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

* bug#60960: 30.0.50; Keybinding for Info-search-next in info-mode
  2023-01-20 10:25 bug#60960: 30.0.50; Keybinding for Info-search-next in info-mode Marco Wahl
@ 2023-01-20 17:26 ` Drew Adams
  2023-01-22 18:32   ` Marco Wahl
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2023-01-20 17:26 UTC (permalink / raw)
  To: Marco Wahl, 60960@debbugs.gnu.org

> AFAICS there is no keybinding for function Info-search-next in
> info-mode. This is the suggestion to add a respective binding.
> BTW I use the binding (define-key Info-mode-map (kbd "a")
> #'Info-search-next).

FWIW, in `info+.el' I bind `a' to `info-apropos'.

> Without this setting one could achive the same effect by pressing key "s"
> followed by RET which I find tiring compared to pressing just one key.

Any user can of course bind `Info-search-next'
to a key.

But I wonder how many users even use `s' these
days - as opposed to `C-M-s'.  Is there a
particular use case for it?  I may have just
forgotten that.

I can see how it might be convenient to have
different regexps remembered for `s' and `C-M-s',
so I guess that's one use case for having and
using both commands.  (And in that case, sure,
maybe bind `*-next*' - that definitely would
improve the use of `s'.)

That's possible because there are separate
histories, `Info-search-history' and
`regexp-search-ring'.

On the other hand, it might be good to have an
option that lets `Info-search' add its regexp
to `regexp-search-ring'.  Or vice versa: let
`Info-search' retrieve values from
`regexp-search-ring'.  Or both possibilities.

One way or another, there's some "overlap"
between isearching with `C-M-s' and the
nonincremental searching of `Info-search'.
And some room maybe for leveraging that - the
fact that there are two regexp histories and
two ways to search (incremental or not).

(BTW - seems like `Info-search' would be better
named `Info-regexp-search' or, following
`nonincremental-re-search-forward', something
like `Info-nonincremental-regexp-search'.)

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

* bug#60960: 30.0.50; Keybinding for Info-search-next in info-mode
  2023-01-20 17:26 ` Drew Adams
@ 2023-01-22 18:32   ` Marco Wahl
  2023-01-26  7:44     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Wahl @ 2023-01-22 18:32 UTC (permalink / raw)
  To: Drew Adams; +Cc: 60960@debbugs.gnu.org

On 1/20/23, Drew Adams <drew.adams@oracle.com> wrote:
>> AFAICS there is no keybinding for function Info-search-next in
>> info-mode. This is the suggestion to add a respective binding.
>> BTW I use the binding (define-key Info-mode-map (kbd "a")
>> #'Info-search-next).
>
> FWIW, in `info+.el' I bind `a' to `info-apropos'.

Thanks for the pointers!

>> Without this setting one could achive the same effect by pressing key "s"
>> followed by RET which I find tiring compared to pressing just one key.
>
> Any user can of course bind `Info-search-next'
> to a key.
>
> But I wonder how many users even use `s' these
> days - as opposed to `C-M-s'.  Is there a
> particular use case for it?  I may have just
> forgotten that.

I wonder how I could not use C-M-s.  Somehow I was fixated to using
the s when searching within info.

> I can see how it might be convenient to have
> different regexps remembered for `s' and `C-M-s',
> so I guess that's one use case for having and
> using both commands.  (And in that case, sure,
> maybe bind `*-next*' - that definitely would
> improve the use of `s'.)

Two searches in parallel might be cool somehow but I never thought
about this use case.

> That's possible because there are separate
> histories, `Info-search-history' and
> `regexp-search-ring'.

Okay.

> [...]

For me the issue is fixed.  I simply switch to your suggestion C-M-s.

If you can close this bug report, please go ahead.

Thanks for your support!





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

* bug#60960: 30.0.50; Keybinding for Info-search-next in info-mode
  2023-01-22 18:32   ` Marco Wahl
@ 2023-01-26  7:44     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2023-01-26  7:44 UTC (permalink / raw)
  To: Marco Wahl; +Cc: 60960-done, drew.adams

> Cc: "60960@debbugs.gnu.org" <60960@debbugs.gnu.org>
> From: Marco Wahl <marcowahlsoft@gmail.com>
> Date: Sun, 22 Jan 2023 19:32:59 +0100
> 
> For me the issue is fixed.  I simply switch to your suggestion C-M-s.
> 
> If you can close this bug report, please go ahead.

Thanks, done.





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

end of thread, other threads:[~2023-01-26  7:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-20 10:25 bug#60960: 30.0.50; Keybinding for Info-search-next in info-mode Marco Wahl
2023-01-20 17:26 ` Drew Adams
2023-01-22 18:32   ` Marco Wahl
2023-01-26  7:44     ` Eli Zaretskii

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.