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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23607 in the body.
You can then email your comments to 23607 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23607
; Package
emacs
.
(Mon, 23 May 2016 23:12:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Robert Weiner <rswgnu <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 23 May 2016 23:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[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)]
Forcibly Merged 23607 23636.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 31 May 2016 16:51:02 GMT)
Full text and
rfc822 format available.
Merged 18976 23607 23636.
Request was from
Noam Postavsky <npostavs <at> users.sourceforge.net>
to
control <at> debbugs.gnu.org
.
(Wed, 15 Jun 2016 03:42:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23607
; Package
emacs
.
(Thu, 21 Jul 2016 02:06:01 GMT)
Full text and
rfc822 format available.
Message #12 received at 23607 <at> debbugs.gnu.org (full text, mbox):
> 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.
FWIW, I think this will break the dash package which includes
a dev/ert.el file with autoload cookies in it and those shouldn't be
placed into the dash-autoloads.el file.
Stefan
PS: Please send it as a patch so we can see what changed without having
to try and guess.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23607
; Package
emacs
.
(Thu, 21 Jul 2016 03:51:02 GMT)
Full text and
rfc822 format available.
Message #15 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2016-07-20 22:05, Stefan Monnier wrote:
> FWIW, I think this will break the dash package which includes
> a dev/ert.el file with autoload cookies in it and those shouldn't be
> placed into the dash-autoloads.el file.
What kind of breakage do you have in mind?
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23607
; Package
emacs
.
(Thu, 21 Jul 2016 04:39:01 GMT)
Full text and
rfc822 format available.
Message #18 received at submit <at> debbugs.gnu.org (full text, mbox):
>> FWIW, I think this will break the dash package which includes
>> a dev/ert.el file with autoload cookies in it and those shouldn't be
>> placed into the dash-autoloads.el file.
> What kind of breakage do you have in mind?
The autoloads for the real ert.el will be overridden by those from
dash-autoloads.el which will say that for example that ert-deftest
should be autoloaded from "dev/ert.el".
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23607
; Package
emacs
.
(Thu, 21 Jul 2016 05:04:01 GMT)
Full text and
rfc822 format available.
Message #21 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2016-07-21 00:40, Stefan Monnier wrote:
>>> FWIW, I think this will break the dash package which includes
>>> a dev/ert.el file with autoload cookies in it and those shouldn't be
>>> placed into the dash-autoloads.el file.
>> What kind of breakage do you have in mind?
>
> The autoloads for the real ert.el will be overridden by those from
> dash-autoloads.el which will say that for example that ert-deftest
> should be autoloaded from "dev/ert.el".
I see; I didn't realize dash had their own copy of ert... I wonder why they do.
But you're right, this is definitely an issue.
Clément.
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23607
; Package
emacs
.
(Thu, 21 Jul 2016 15:49:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 23607 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Wed, Jul 20, 2016 at 10:05 PM, Stefan Monnier <monnier <at> iro.umontreal.ca>
wrote:
>> 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.
>
> FWIW, I think this will break the dash package which includes
> a dev/ert.el file with autoload cookies in it and those shouldn't be
> placed into the dash-autoloads.el file.
>
>
> Stefan
>
>
> PS: Please send it as a patch so we can see what changed without having
> to try and guess.
Here is the patch. -- Bob
*** package-orig.el 2016-05-17 12:16:33.000000000 -0400
--- package.el 2016-06-15 14:43:46.000000000 -0400
***************
*** 916,928 ****
(backup-inhibited t)
(version-control 'never))
(package-autoload-ensure-default-file generated-autoload-file)
! (update-directory-autoloads pkg-dir)
(let ((buf (find-buffer-visiting generated-autoload-file)))
(when buf (kill-buffer buf)))
auto-name))
(defun package--make-autoloads-and-stuff (pkg-desc pkg-dir)
"Generate autoloads, description file, etc.. for PKG-DESC installed at
PKG-DIR."
(package-generate-autoloads (package-desc-name pkg-desc) pkg-dir)
(let ((desc-file (expand-file-name (package--description-file pkg-dir)
pkg-dir)))
--- 913,929 ----
(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))
(defun package--make-autoloads-and-stuff (pkg-desc pkg-dir)
"Generate autoloads, description file, etc.. for PKG-DESC installed at
PKG-DIR."
(package-generate-autoloads (package-desc-name pkg-desc) pkg-dir)
(let ((desc-file (expand-file-name (package--description-file pkg-dir)
pkg-dir)))
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23607
; Package
emacs
.
(Sun, 24 Jul 2016 16:00:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 23607 <at> debbugs.gnu.org (full text, mbox):
Clément Pit--Claudel <clement.pit <at> gmail.com> writes:
> On 2016-07-21 00:40, Stefan Monnier wrote:
>>>> FWIW, I think this will break the dash package which includes
>>>> a dev/ert.el file with autoload cookies in it and those shouldn't be
>>>> placed into the dash-autoloads.el file.
>>> What kind of breakage do you have in mind?
>>
>> The autoloads for the real ert.el will be overridden by those from
>> dash-autoloads.el which will say that for example that ert-deftest
>> should be autoloaded from "dev/ert.el".
>
> I see; I didn't realize dash had their own copy of ert... I wonder why they do.
> But you're right, this is definitely an issue.
Dash isn't the only package to do this. I've also seen package.el
packaged in other places. Mostly, I think, to support backward
compatability, I think.
Why are dev files being packaged, though? At the moment, I don't think
that they should be.
Phil
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23607
; Package
emacs
.
(Tue, 15 Sep 2020 15:57:02 GMT)
Full text and
rfc822 format available.
Message #30 received at 23607 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>>> FWIW, I think this will break the dash package which includes
>>> a dev/ert.el file with autoload cookies in it and those shouldn't be
>>> placed into the dash-autoloads.el file.
>> What kind of breakage do you have in mind?
>
> The autoloads for the real ert.el will be overridden by those from
> dash-autoloads.el which will say that for example that ert-deftest
> should be autoloaded from "dev/ert.el".
It seems like the proposed patch would introduce breaking changes, and
the bug report stalled at that point. So it seem unlikely that there'll
be further progress in this bug report, and I'm closing it.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
23607 <at> debbugs.gnu.org and Robert Weiner <rswgnu <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 15 Sep 2020 15:57:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 14 Oct 2020 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 251 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.