aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/align.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/align.el')
-rw-r--r--lisp/align.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/align.el b/lisp/align.el
index 9eb04ef594f..7e439f3e073 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -1,6 +1,6 @@
1;;; align.el --- align text to a specific column, by regexp -*- lexical-binding:t -*- 1;;; align.el --- align text to a specific column, by regexp -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 1999-2015 Free Software Foundation, Inc. 3;; Copyright (C) 1999-2016 Free Software Foundation, Inc.
4 4
5;; Author: John Wiegley <johnw@gnu.org> 5;; Author: John Wiegley <johnw@gnu.org>
6;; Maintainer: emacs-devel@gnu.org 6;; Maintainer: emacs-devel@gnu.org
@@ -888,15 +888,15 @@ on the format of these lists."
888 (let ((sec-first end) 888 (let ((sec-first end)
889 (sec-last beg)) 889 (sec-last beg))
890 (align-region beg end 890 (align-region beg end
891 (or exclude-rules
892 align-mode-exclude-rules-list
893 align-exclude-rules-list) nil
894 separator 891 separator
895 (function 892 nil ; rules
896 (lambda (b e mode) 893 (or exclude-rules
897 (when (and mode (listp mode)) 894 align-mode-exclude-rules-list
898 (setq sec-first (min sec-first b) 895 align-exclude-rules-list)
899 sec-last (max sec-last e)))))) 896 (lambda (b e mode)
897 (when (consp mode)
898 (setq sec-first (min sec-first b)
899 sec-last (max sec-last e)))))
900 (if (< sec-first sec-last) 900 (if (< sec-first sec-last)
901 (align-region sec-first sec-last 'entire 901 (align-region sec-first sec-last 'entire
902 (or rules align-mode-rules-list align-rules-list) 902 (or rules align-mode-rules-list align-rules-list)