Fix 'shortdoc-copy-function-as-kill'
authorEli Zaretskii <eliz@gnu.org>
Sat, 16 Mar 2024 11:07:52 +0000 (13:07 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 16 Mar 2024 11:07:52 +0000 (13:07 +0200)
* lisp/emacs-lisp/shortdoc.el (shortdoc-copy-function-as-kill):
Fix handling of functions with no arguments.  (Bug#69720)

lisp/emacs-lisp/shortdoc.el

index 75ac7b3d52c947918d6325c5cf3a2d7a9ce07c05..fdba6d324184e6f644fa0dbf46f73ee00e756786 100644 (file)
@@ -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))