]> git.eshelyaron.com Git - emacs.git/commit
Avoid duplicate load-path entry when generating package autoloads
authorRobert Pluim <rpluim@gmail.com>
Mon, 22 May 2023 13:44:21 +0000 (15:44 +0200)
committerRobert Pluim <rpluim@gmail.com>
Tue, 23 May 2023 12:12:21 +0000 (14:12 +0200)
commit6f6071c52616cc30bc28083688a3ad8d70ce713e
tree5bd1b64e699ed907e1bfe43257f7cb298c351e66
parent117b29c6f6681e4ae0710a9f90f1b8d274afc7c0
Avoid duplicate load-path entry when generating package autoloads

'file-name-directory' produces a path ending in '/', so that needs to be
run through 'directory-file-name' to avoid duplicate entries in
'load-path'.  (Bug#63625)

* lisp/emacs-lisp/package.el (package-generate-autoloads): Call
'directory-file-name' on the directory of 'load-file-name'.
lisp/emacs-lisp/package.el