[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70882: 30.0.50; [PATCH] Print the real direction in the prompt for '
From: |
Eli Zaretskii |
Subject: |
bug#70882: 30.0.50; [PATCH] Print the real direction in the prompt for '(previous|next)-matching-history-element' |
Date: |
Sat, 18 May 2024 12:18:55 +0300 |
> Date: Sat, 11 May 2024 11:53:18 -0700
> From: Jim Porter <jporterbugs@gmail.com>
>
> To see the problem, start from "emacs -Q":
>
> M-x
> M-r ;; Emacs prompts "Previous element matching regexp:"
> C-g
>
> M-- M-r ;; Emacs prompts "Previous element matching regexp:" (?!)
>
> In the last line, the prefix argument is negative, so the search will
> actually be for the *next* matching element. The attached patch fixes
> this so that the prompt message accounts for the prefix arg.
>
> While I was here, I also made 'next-matching-history-element' use
> 'format-prompt' like its 'previous-...' sibling.
Thanks, LGTM.