diff options
| author | Philip Kaludercic | 2022-11-02 10:15:28 +0100 |
|---|---|---|
| committer | Philip Kaludercic | 2022-11-02 10:15:28 +0100 |
| commit | b21f80bbb971d5e5193c04823536265ecd2ca8e8 (patch) | |
| tree | 3887391c185a3333e08dc33cc4fe9cb978210d1e | |
| parent | bbe5a1ca8374a078fe8a77dec0692b75e1b9efbc (diff) | |
| download | emacs-b21f80bbb971d5e5193c04823536265ecd2ca8e8.tar.gz emacs-b21f80bbb971d5e5193c04823536265ecd2ca8e8.zip | |
; Replace 'let*' with 'let' where possible
* lisp/emacs-lisp/package-vc.el (package-vc--select-packages): Do it.
(package-vc--read-archive-data): Do it.
| -rw-r--r-- | lisp/emacs-lisp/package-vc.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index 6134e6ed3da..74f1c35ea6b 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el | |||
| @@ -116,7 +116,7 @@ symbol is used. The value must be a member of | |||
| 116 | It will ensure that all the packages are installed as source | 116 | It will ensure that all the packages are installed as source |
| 117 | packages. Finally SYM is set to VAL." | 117 | packages. Finally SYM is set to VAL." |
| 118 | (pcase-dolist (`(,(and (pred symbolp) name) . ,spec) val) | 118 | (pcase-dolist (`(,(and (pred symbolp) name) . ,spec) val) |
| 119 | (let* ((pkg-desc (cadr (assoc name package-alist #'string=)))) | 119 | (let ((pkg-desc (cadr (assoc name package-alist #'string=)))) |
| 120 | (unless (and name (package-installed-p name) (package-vc-p pkg-desc)) | 120 | (unless (and name (package-installed-p name) (package-vc-p pkg-desc)) |
| 121 | (cond | 121 | (cond |
| 122 | ((null spec) | 122 | ((null spec) |
| @@ -232,9 +232,9 @@ return nil." | |||
| 232 | "Update `package-vc-archive-spec-alist' with the contents of ARCHIVE. | 232 | "Update `package-vc-archive-spec-alist' with the contents of ARCHIVE. |
| 233 | This function is meant to be used as a hook for | 233 | This function is meant to be used as a hook for |
| 234 | `package--read-archive-hook'." | 234 | `package--read-archive-hook'." |
| 235 | (let* ((contents-file (expand-file-name | 235 | (let ((contents-file (expand-file-name |
| 236 | (format "archives/%s/elpa-packages.eld" archive) | 236 | (format "archives/%s/elpa-packages.eld" archive) |
| 237 | package-user-dir))) | 237 | package-user-dir))) |
| 238 | (when (file-exists-p contents-file) | 238 | (when (file-exists-p contents-file) |
| 239 | (with-temp-buffer | 239 | (with-temp-buffer |
| 240 | (let ((coding-system-for-read 'utf-8)) | 240 | (let ((coding-system-for-read 'utf-8)) |