aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2009-10-26 14:59:12 +0000
committerJuanma Barranquero2009-10-26 14:59:12 +0000
commit41849bf9cd66bacb9e4d81b3ad01bfbcf6e34392 (patch)
tree6ed413682bd78d76de8df37f743019f3deb1c4bc
parent242bc74cea4c4052844bd3e283e0d68802f75bcd (diff)
downloademacs-41849bf9cd66bacb9e4d81b3ad01bfbcf6e34392.tar.gz
emacs-41849bf9cd66bacb9e4d81b3ad01bfbcf6e34392.zip
* simple.el (transpose-subr): Give clearer error when the mark is not set.
(Bug#4807)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/simple.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1442396b746..1ba5a0275ee 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-10-26 Juanma Barranquero <lekktu@gmail.com>
2
3 * simple.el (transpose-subr): Give clearer error when the mark
4 is not set. (Bug#4807)
5
12009-10-26 Michael Albinus <michael.albinus@gmx.de> 62009-10-26 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * net/tramp.el (tramp-perl-file-truename): New defconst. Perl 8 * net/tramp.el (tramp-perl-file-truename): New defconst. Perl
diff --git a/lisp/simple.el b/lisp/simple.el
index 14dc128a790..117a93bcc0f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4852,7 +4852,7 @@ With argument 0, interchanges line point is in with line mark is in."
4852 ((= arg 0) 4852 ((= arg 0)
4853 (save-excursion 4853 (save-excursion
4854 (setq pos1 (funcall aux 1)) 4854 (setq pos1 (funcall aux 1))
4855 (goto-char (mark)) 4855 (goto-char (or (mark) (error "No mark set in this buffer")))
4856 (setq pos2 (funcall aux 1)) 4856 (setq pos2 (funcall aux 1))
4857 (transpose-subr-1 pos1 pos2)) 4857 (transpose-subr-1 pos1 pos2))
4858 (exchange-point-and-mark)) 4858 (exchange-point-and-mark))