Fix 'shortdoc-copy-function-as-kill'
* lisp/emacs-lisp/shortdoc.el (shortdoc-copy-function-as-kill): Fix handling of functions with no arguments. (Bug#69720)
This commit is contained in:
parent
d5901f3f05
commit
8cf05d9be1
1 changed files with 1 additions and 1 deletions
|
@ -1675,7 +1675,7 @@ With prefix numeric argument ARG, do it that many times."
|
|||
(interactive)
|
||||
(save-excursion
|
||||
(goto-char (pos-bol))
|
||||
(when-let* ((re (rx bol "(" (group (+ (not (in " "))))))
|
||||
(when-let* ((re (rx bol "(" (group (+ (not (in " )"))))))
|
||||
(string
|
||||
(and (or (looking-at re)
|
||||
(re-search-backward re nil t))
|
||||
|
|
Loading…
Add table
Reference in a new issue