[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 27b93ec 05/14: Fix point positioning after transp
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-25 27b93ec 05/14: Fix point positioning after transposing with negative arg |
Date: |
Fri, 13 Nov 2015 20:03:33 +0000 |
branch: emacs-25
commit 27b93ec0a5fd2268d2ebfa338df6e1434cb7d451
Author: Eli Barzilay <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix point positioning after transposing with negative arg
* lisp/simple.el (transpose-subr): When invoked with a negative
argument, move point to after the transposed text, like we do
when invoked with a positive argument. (Bug#21885)
Backport.
---
lisp/simple.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/simple.el b/lisp/simple.el
index 2781ad0..b115a2a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -6634,7 +6634,8 @@ current object."
(setq pos1 (funcall aux -1))
(goto-char (car pos1))
(setq pos2 (funcall aux arg))
- (transpose-subr-1 pos1 pos2)))))
+ (transpose-subr-1 pos1 pos2)
+ (goto-char (+ (car pos2) (- (cdr pos1) (car pos1))))))))
(defun transpose-subr-1 (pos1 pos2)
(when (> (car pos1) (cdr pos1)) (setq pos1 (cons (cdr pos1) (car pos1))))
- [Emacs-diffs] emacs-25 updated (26e7624 -> 84c7b38), Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 82f3dc0 02/14: Another fix for MinGW64 and Cygwin builds due to notifications, Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 e0d2dc5 04/14: Fix last change in shr.el, Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 071b2e1 01/14: Remove intern calls and XXX comments from Fx_export_frames, Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 a95781e 07/14: Add a few more variables to redisplay--variables, Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 e53f226 09/14: * lisp/progmodes/elisp-mode.el: Declare function `project-roots', Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 d6b046c 08/14: * src/undo.c: Small fixes for previous change, Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 93e7db1 10/14: * test/automated/simple-test.el: Add test for bug#20698 (bug#21885), Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 f8d8e0b 03/14: Fix last change, Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 27b93ec 05/14: Fix point positioning after transposing with negative arg,
Eli Zaretskii <=
- [Emacs-diffs] emacs-25 afd3e98 06/14: * lisp/loadup.el: Enlarge the size of the hash table to 80000., Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 9722634 12/14: * src/undo.c (run_undoable_change): Now static., Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 84c7b38 14/14: Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25, Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 3453057 11/14: Remove support for ':timeout' from w32 tray notifications, Eli Zaretskii, 2015/11/13
- [Emacs-diffs] emacs-25 da05685 13/14: Port recent XCB changes to 64-bit ‘long int’, Eli Zaretskii, 2015/11/13