GNU bug report logs - #76179
31.0.50; Error on 'C-h f bindat-type RET'

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Mon, 10 Feb 2025 14:39:02 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 76179 <at> debbugs.gnu.org
Subject: bug#76179: 31.0.50; Error on 'C-h f bindat-type RET'
Date: Mon, 10 Feb 2025 15:37:15 -0500
Stefan Kangas [2025-02-10 06:38:11] wrote:
> I get an error on 'C-h f bindat-type RET'.

I don't.

> Simple reproducer:
>
>     emacs -Q -batch -eval "(progn (require 'bindat) \
>         (describe-function 'bindat--type))"

This one (with the double dash) does signal an out of bounds error,
indeed.  I just pushed a trivial fix for it to `emacs-30`.


        Stefan


diff --git a/lisp/help.el b/lisp/help.el
index 5d4c3e61599..1d87c2209c8 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -2381,7 +2381,7 @@ help-function-arglist
             (dolist (arg arglist)
               (unless (and (symbolp arg)
                            (let ((name (symbol-name arg)))
-                             (if (eq (aref name 0) ?&)
+                             (if (and (> (length name) 0) (eq (aref name 0) ?&))
                                  (memq arg '(&rest &optional))
                                (not (string-search "." name)))))
                 (setq valid nil)))





This bug report was last modified 98 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.