all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Weiner <rswgnu@gmail.com>
To: Tom Tromey <tromey@redhat.com>, Daniel Hackney <dan@haxney.org>
Cc: bug-gnu-emacs@gnu.org, emacs-devel <emacs-devel@gnu.org>
Subject: Please apply this patched function to package.el in Emacs 25.
Date: Mon, 23 May 2016 19:11:07 -0400	[thread overview]
Message-ID: <CA+OMD9iFdwR33q01ri-x2FybSw4PTtjhsSAv3-CyZQOZkhs=mA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]

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))

[-- Attachment #2: Type: text/html, Size: 1710 bytes --]

             reply	other threads:[~2016-05-23 23:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-23 23:11 Robert Weiner [this message]
2016-07-21  2:05 ` bug#23607: Please apply this patched function to package.el in Emacs 25 Stefan Monnier
2016-07-21  3:50   ` Clément Pit--Claudel
2016-07-21  4:40     ` Stefan Monnier
2016-07-21  5:02       ` Clément Pit--Claudel
2016-07-24 15:58         ` Phillip Lord
2020-09-15 15:56       ` Lars Ingebrigtsen
2016-07-21 15:47   ` Robert Weiner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+OMD9iFdwR33q01ri-x2FybSw4PTtjhsSAv3-CyZQOZkhs=mA@mail.gmail.com' \
    --to=rswgnu@gmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=dan@haxney.org \
    --cc=emacs-devel@gnu.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.