lisp/align.el (align-region): Do not fail when end-mark is nil (bug#17088).
authorNicolas Richard <theonewiththeevillook@yahoo.fr>
Mon, 24 Mar 2014 16:54:24 +0000 (17:54 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 24 Mar 2014 16:54:24 +0000 (17:54 +0100)
lisp/ChangeLog
lisp/align.el

index 029cbaa..3f72f42 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-24  Nicolas Richard  <theonewiththeevillook@yahoo.fr>
+
+       * align.el (align-region): Do not fail when end-mark is nil (bug#17088).
+
 2014-03-24  Dmitry Gutov  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-expression-expansion-re):
index 9038adf..3b54aba 100644 (file)
@@ -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))