]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/align.el (align): Simplify a lambda
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 3 Jan 2016 16:58:35 +0000 (16:58 +0000)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 3 Jan 2016 16:58:35 +0000 (16:58 +0000)
lisp/align.el

index da8e51cf120dff872b5b98dd797f7a0569f42ea7..7e439f3e073a3440dd1ab30230deceef2f87cac4 100644 (file)
@@ -893,11 +893,10 @@ on the format of these lists."
                       (or exclude-rules
                          align-mode-exclude-rules-list
                          align-exclude-rules-list)
-                     (function
-                      (lambda (b e mode)
-                        (when (and mode (listp mode))
-                          (setq sec-first (min sec-first b)
-                                sec-last  (max sec-last e))))))
+                      (lambda (b e mode)
+                        (when (consp mode)
+                          (setq sec-first (min sec-first b)
+                                sec-last  (max sec-last e)))))
        (if (< sec-first sec-last)
            (align-region sec-first sec-last 'entire
                          (or rules align-mode-rules-list align-rules-list)