Merge from origin/emacs-27
154cd116be
(origin/emacs-27) * admin/release-process: Adapt bug numbe...fd19282134
Fix shell-tests failures891f7de8ed
* test/lisp/simple-tests.el: Full path to Emacs binary (bu...92f30d62c0
* lisp/tab-line.el (tab-line-auto-hscroll): Fix for long t...dde313151d
* lisp/menu-bar.el (menu-bar-options-menu): Add desktop-sa...3543b9fad9
; Fix a test (Bug#39067)83f9fe44fa
; * etc/NEWS: Fix typo.2eb0b7835d
Fix shell-command-dont-erase-buffer featurec134978a76
Remove reference to Emacs 19 from FAQfabf0065c5
Doc fixes in package.el # Conflicts: # etc/NEWS
This commit is contained in:
commit
215ceadcc8
10 changed files with 169 additions and 44 deletions
|
@ -606,8 +606,10 @@ EXP should be a form read from a foo-pkg.el file.
|
|||
Convert EXP into a `package-desc' object using the
|
||||
`package-desc-from-define' constructor before pushing it to
|
||||
`package-alist'.
|
||||
If there already exists a package by that name in
|
||||
`package-alist', replace that definition with the new one."
|
||||
|
||||
If there already exists a package by the same name in
|
||||
`package-alist', insert this object there such that the packages
|
||||
are sorted with the highest version first."
|
||||
(when (eq (car-safe exp) 'define-package)
|
||||
(let* ((new-pkg-desc (apply #'package-desc-from-define (cdr exp)))
|
||||
(name (package-desc-name new-pkg-desc))
|
||||
|
@ -952,7 +954,7 @@ untar into a directory named DIR; otherwise, signal an error."
|
|||
pkg-dir))
|
||||
|
||||
(defun package-generate-description-file (pkg-desc pkg-file)
|
||||
"Create the foo-pkg.el file for single-file packages."
|
||||
"Create the foo-pkg.el file PKG-FILE for single-file package PKG-DESC."
|
||||
(let* ((name (package-desc-name pkg-desc)))
|
||||
(let ((print-level nil)
|
||||
(print-quoted t)
|
||||
|
@ -996,6 +998,7 @@ untar into a directory named DIR; otherwise, signal an error."
|
|||
(defvar version-control)
|
||||
|
||||
(defun package-generate-autoloads (name pkg-dir)
|
||||
"Generate autoloads in PKG-DIR for package named NAME."
|
||||
(let* ((auto-name (format "%s-autoloads.el" name))
|
||||
;;(ignore-name (concat name "-pkg.el"))
|
||||
(generated-autoload-file (expand-file-name auto-name pkg-dir))
|
||||
|
@ -1176,12 +1179,14 @@ The return result is a `package-desc'."
|
|||
;; signature checking.
|
||||
|
||||
(defun package--write-file-no-coding (file-name)
|
||||
"Write file FILE-NAME without encoding using coding system."
|
||||
(let ((buffer-file-coding-system 'no-conversion))
|
||||
(write-region (point-min) (point-max) file-name nil 'silent)))
|
||||
|
||||
(declare-function url-http-file-exists-p "url-http" (url))
|
||||
|
||||
(defun package--archive-file-exists-p (location file)
|
||||
"Return t if FILE exists in remote LOCATION."
|
||||
(let ((http (string-match "\\`https?:" location)))
|
||||
(if http
|
||||
(progn
|
||||
|
@ -2819,6 +2824,7 @@ of these dependencies, similar to the list returned by
|
|||
(push dep out)))))))))))
|
||||
|
||||
(defun package-desc-status (pkg-desc)
|
||||
"Return the status of `package-desc' object PKG-DESC."
|
||||
(let* ((name (package-desc-name pkg-desc))
|
||||
(dir (package-desc-dir pkg-desc))
|
||||
(lle (assq name package-load-list))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue