summaryrefslogtreecommitdiff
path: root/lisp/align.el
diff options
context:
space:
mode:
authorNicolas Richard <theonewiththeevillook@yahoo.fr>2014-03-24 17:54:24 +0100
committerJuanma Barranquero <lekktu@gmail.com>2014-03-24 17:54:24 +0100
commit74be16492f8ef62f57c1ede79a08ddebc6847091 (patch)
tree9a417b37498cfd5a8dc3cb1252cfcca99978d101 /lisp/align.el
parentc2d6c639cf2bfdb7564bcb8706ac45b0d18dc895 (diff)
downloademacs-74be16492f8ef62f57c1ede79a08ddebc6847091.tar.gz
lisp/align.el (align-region): Do not fail when end-mark is nil (bug#17088).
Diffstat (limited to 'lisp/align.el')
-rw-r--r--lisp/align.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/align.el b/lisp/align.el
index 9038adf624c..3b54aba264f 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -1603,7 +1603,7 @@ aligner would have dealt with are."
rule-index (1+ rule-index)))
;; This function can use a lot of temporary markers, so instead of
;; waiting for the next GC we delete them immediately (Bug#10047).
- (set-marker end-mark nil)
+ (when end-mark (set-marker end-mark nil))
(dolist (m markers)
(set-marker m nil))