diff options
| author | Juanma Barranquero | 2019-12-24 04:09:46 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2019-12-24 04:09:46 +0100 |
| commit | 60fba710c5eef278b80623956ead0803f8607155 (patch) | |
| tree | a57362075e7151c86bc80d50a7a5e045e472f123 | |
| parent | 5617c82b37b9fb37f9279347b05782718dc331b6 (diff) | |
| download | emacs-60fba710c5eef278b80623956ead0803f8607155.tar.gz emacs-60fba710c5eef278b80623956ead0803f8607155.zip | |
Don't use `let*' with just one binding
* lisp/registry.el (registry-reindex):
* lisp/emacs-lisp/generator.el (cps--add-state):
Use `let', not `let*'.
| -rw-r--r-- | lisp/emacs-lisp/generator.el | 2 | ||||
| -rw-r--r-- | lisp/registry.el | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/generator.el b/lisp/emacs-lisp/generator.el index 9dba87eaeb4..9ea76433f3a 100644 --- a/lisp/emacs-lisp/generator.el +++ b/lisp/emacs-lisp/generator.el | |||
| @@ -155,7 +155,7 @@ DYNAMIC-VAR bound to STATIC-VAR." | |||
| 155 | (defun cps--add-state (kind body) | 155 | (defun cps--add-state (kind body) |
| 156 | "Create a new CPS state with body BODY and return the state's name." | 156 | "Create a new CPS state with body BODY and return the state's name." |
| 157 | (declare (indent 1)) | 157 | (declare (indent 1)) |
| 158 | (let* ((state (cps--gensym "cps-state-%s-" kind))) | 158 | (let ((state (cps--gensym "cps-state-%s-" kind))) |
| 159 | (push (list state body cps--cleanup-function) cps--states) | 159 | (push (list state body cps--cleanup-function) cps--states) |
| 160 | (push state cps--bindings) | 160 | (push state cps--bindings) |
| 161 | state)) | 161 | state)) |
diff --git a/lisp/registry.el b/lisp/registry.el index f65e60caa35..c0170cb50ec 100644 --- a/lisp/registry.el +++ b/lisp/registry.el | |||
| @@ -317,7 +317,7 @@ Errors out if the key exists already." | |||
| 317 | (message "reindexing: %d of %d (%.2f%%)" | 317 | (message "reindexing: %d of %d (%.2f%%)" |
| 318 | count expected (/ (* 100.0 count) expected))) | 318 | count expected (/ (* 100.0 count) expected))) |
| 319 | (dolist (val (cdr-safe (assq tr v))) | 319 | (dolist (val (cdr-safe (assq tr v))) |
| 320 | (let* ((value-keys (registry-lookup-secondary-value db tr val))) | 320 | (let ((value-keys (registry-lookup-secondary-value db tr val))) |
| 321 | (push key value-keys) | 321 | (push key value-keys) |
| 322 | (registry-lookup-secondary-value db tr val value-keys)))) | 322 | (registry-lookup-secondary-value db tr val value-keys)))) |
| 323 | (oref db data)))))) | 323 | (oref db data)))))) |