GNU bug report logs -
#13670
24.3.50; `autoload-generate-file-autoloads' off-by-one bug
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sun, 10 Feb 2013 00:04:02 UTC
Severity: minor
Found in version 24.3.50
Done: Drew Adams <drew.adams <at> oracle.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Drew Adams <drew.adams <at> oracle.com> writes:
> > If we make this change, then autoloads that want to have a single space
> > at the start of the string (and use this syntax to do that) would then
> > not have that space?
>
> No. See the bug report. Only the first SPC should be used
> as a separator. If you want an initial SPC char included
> then you use SPC SPC.
>
> > Have you examined the sources to see whether that's potentially a
> > problem?
>
> No. Do you see a problem with it? Do you disagree that this
> is a bug, regardless of whether you doubt the proposed solution?
The emacs-25 version of `autoload-generate-file-autoloads' does not
contain a call to `char-after', so I think it has been rewritten in the
meantime.
Moreover, if I let Emacs generate file autoloads for a file with this
content:
#+begin_src emacs-lisp
;;;###autoload (autoload 'icicle-mode "icicles"
;;;###autoload"Icicle mode: Toggle minibuffer input completion and cycling.
;;;###autoloadNon-nil prefix ARG turns mode on if ARG > 0, else off.
;;;###autoloadIt is a global minor mode. It binds minibuffer keys."
;;;###autoloadt nil)
#+end_src
(update-file-autoloads
"/home/micha/today/test.el"
nil
"/home/micha/today/test-auto.el")
the result looks like this:
#+begin_src emacs-lisp
(autoload 'icicle-mode "icicles"
"Icicle mode: Toggle minibuffer input completion and cycling.
Non-nil prefix ARG turns mode on if ARG > 0, else off.
It is a global minor mode. It binds minibuffer keys."
nil)
#+end_src
So this generates a sane docstring.
Is this acceptable?
Michael.
This bug report was last modified 9 years and 83 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.