aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Oteiza2017-01-25 21:34:46 -0500
committerMark Oteiza2017-01-25 21:34:46 -0500
commit44765de2005fb56c5930383d6bd1e959a0102a45 (patch)
treeffeb1ebf8938696ea5939c0f51f63afa43a388f0
parentd32dfc2c7ab03df68d4fb8c77ece6a39d87cd06c (diff)
downloademacs-44765de2005fb56c5930383d6bd1e959a0102a45.tar.gz
emacs-44765de2005fb56c5930383d6bd1e959a0102a45.zip
Make use of cl-loop destructuring
* lisp/progmodes/js.el (js--get-tabs): Replace extraneous bits with destructuring. (with-js): Add declare forms.
-rw-r--r--lisp/progmodes/js.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 2e5c6ae119b..4a5bde764bb 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3214,7 +3214,7 @@ with `js--js-encode-value'."
3214Inside the lexical scope of `with-js', `js?', `js!', 3214Inside the lexical scope of `with-js', `js?', `js!',
3215`js-new', `js-eval', `js-list', `js<', `js>', `js-get-service', 3215`js-new', `js-eval', `js-list', `js<', `js>', `js-get-service',
3216`js-create-instance', and `js-qi' are defined." 3216`js-create-instance', and `js-qi' are defined."
3217 3217 (declare (indent 0) (debug t))
3218 `(progn 3218 `(progn
3219 (js--js-enter-repl) 3219 (js--js-enter-repl)
3220 (unwind-protect 3220 (unwind-protect
@@ -3431,11 +3431,8 @@ left-to-right."
3431 (eq (cl-fifth window-info) 2)) 3431 (eq (cl-fifth window-info) 2))
3432 do (push window-info windows)) 3432 do (push window-info windows))
3433 3433
3434 (cl-loop for window-info in windows 3434 (cl-loop for (window title location) in windows
3435 for window = (cl-first window-info) 3435 collect (list title location window)
3436 collect (list (cl-second window-info)
3437 (cl-third window-info)
3438 window)
3439 3436
3440 for gbrowser = (js< window "gBrowser") 3437 for gbrowser = (js< window "gBrowser")
3441 if (js-handle? gbrowser) 3438 if (js-handle? gbrowser)