aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Richard2014-03-24 17:54:24 +0100
committerJuanma Barranquero2014-03-24 17:54:24 +0100
commit74be16492f8ef62f57c1ede79a08ddebc6847091 (patch)
tree9a417b37498cfd5a8dc3cb1252cfcca99978d101
parentc2d6c639cf2bfdb7564bcb8706ac45b0d18dc895 (diff)
downloademacs-74be16492f8ef62f57c1ede79a08ddebc6847091.tar.gz
emacs-74be16492f8ef62f57c1ede79a08ddebc6847091.zip
lisp/align.el (align-region): Do not fail when end-mark is nil (bug#17088).
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/align.el2
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 029cbaa8d95..3f72f421773 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12014-03-24 Nicolas Richard <theonewiththeevillook@yahoo.fr>
2
3 * align.el (align-region): Do not fail when end-mark is nil (bug#17088).
4
12014-03-24 Dmitry Gutov <dgutov@yandex.ru> 52014-03-24 Dmitry Gutov <dgutov@yandex.ru>
2 6
3 * progmodes/ruby-mode.el (ruby-expression-expansion-re): 7 * progmodes/ruby-mode.el (ruby-expression-expansion-re):
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."
1603 rule-index (1+ rule-index))) 1603 rule-index (1+ rule-index)))
1604 ;; This function can use a lot of temporary markers, so instead of 1604 ;; This function can use a lot of temporary markers, so instead of
1605 ;; waiting for the next GC we delete them immediately (Bug#10047). 1605 ;; waiting for the next GC we delete them immediately (Bug#10047).
1606 (set-marker end-mark nil) 1606 (when end-mark (set-marker end-mark nil))
1607 (dolist (m markers) 1607 (dolist (m markers)
1608 (set-marker m nil)) 1608 (set-marker m nil))
1609 1609