GNU bug report logs -
#23607
Please apply this patched function to package.el in Emacs 25.
Previous Next
Reported by: Robert Weiner <rswgnu <at> gmail.com>
Date: Mon, 23 May 2016 23:12:02 UTC
Severity: wishlist
Merged with 18976,
23636
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Replacing this function in package.el allows for correct generation of the
<package>-autoloads.el file for packages that have .el files in multiple
subdirectories. The only thing changed is the line with 'apply' in it. It
ignores symlinks to directories in case there are any. It is a simple
change. I hope you like it.
This is important for larger packages such as my forthcoming Hyperbole
package which includes a 2nd directory of code.
(defun package-generate-autoloads (name pkg-dir)
(let* ((auto-name (format "%s-autoloads.el" name))
;;(ignore-name (concat name "-pkg.el"))
(generated-autoload-file (expand-file-name auto-name pkg-dir))
;; Silence `autoload-generate-file-autoloads'.
(noninteractive inhibit-message)
(backup-inhibited t)
(version-control 'never))
(package-autoload-ensure-default-file generated-autoload-file)
(apply #'update-directory-autoloads pkg-dir
(delq nil (mapcar (lambda (f) (and (file-directory-p f)
(not (file-symlink-p f)) f))
(directory-files pkg-dir t "[a-zA-Z].*" nil))))
(let ((buf (find-buffer-visiting generated-autoload-file)))
(when buf (kill-buffer buf)))
auto-name))
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 306 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.