[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65580: [PATCH] ; * lisp/help-fns.el (help-do-arg-highlight): Fix reg
From: |
Stefan Kangas |
Subject: |
bug#65580: [PATCH] ; * lisp/help-fns.el (help-do-arg-highlight): Fix regexp. |
Date: |
Fri, 1 Sep 2023 20:32:33 +0200 |
Version: 30.1
> This patch addresses the following existing issue:
>
> In the output of `C-h f with-delayed-message RET`, the word `message` in
> the function name is incorrectly highlighted with `help-argument-name`.
>
> This can be seen also with a definition such as:
>
> --8<---------------cut here---------------start------------->8---
> (defun foo-bar (baz)
> "Frobnicate BAZ.
>
> \(fn (foo bar))"
> nil)
> --8<---------------cut here---------------end--------------->8---
>
> Now `C-h f foo-bar RET` shows both `foo` and `bar` in the function name
> with `help-argument-name` (as well as the `foo` and `bar` arguments).
>
> The attached patch tweaks the regular expression that
> `help-do-arg-highlight` uses to find argument occurrences such that it
> skips the function name.
Thanks, pushed to master.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#65580: [PATCH] ; * lisp/help-fns.el (help-do-arg-highlight): Fix regexp.,
Stefan Kangas <=