[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20070: 24.3; have commands such as downcase-region act on a rectangl
From: |
Juri Linkov |
Subject: |
bug#20070: 24.3; have commands such as downcase-region act on a rectangle region |
Date: |
Mon, 16 Mar 2015 22:55:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) |
> What are BEG1, END1, BEG2, END2, etc. values here?
They should have the same type as the return values of
region-beginning/region-end and the interactive space "r"
which are of the marker type. So the patch in bug#19829 should be
improved by another patch (both will be installed after finishing
designing this feature):
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el
index 044939f..a314d33 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -676,9 +676,9 @@ (defun cua--extract-rectangle-positions ()
(lambda (s e l r _v)
(goto-char s)
(move-to-column l)
- (setq s (point))
+ (setq s (point-marker))
(move-to-column r)
- (setq e (point))
+ (setq e (point-marker))
(setq rect (cons (cons s e) rect)))))
(nreverse rect)))
diff --git a/lisp/rect.el b/lisp/rect.el
index 271f720..7a2c5a3 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -265,7 +265,8 @@ (defun extract-rectangle-positions (start end)
(apply-on-rectangle
(lambda (startcol endcol)
(move-to-column startcol)
- (push (cons (prog1 (point) (move-to-column endcol)) (point))
+ (push (cons (prog1 (point-marker) (move-to-column endcol))
+ (point-marker))
positions))
start end)
(nreverse positions)))
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Pål Grønås Drange, 2015/03/09
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Stefan Monnier, 2015/03/11
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Juri Linkov, 2015/03/12
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Stefan Monnier, 2015/03/14
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Juri Linkov, 2015/03/15
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Eli Zaretskii, 2015/03/15
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Nicolas Richard, 2015/03/16
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Stefan Monnier, 2015/03/16
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region,
Juri Linkov <=
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Stefan Monnier, 2015/03/16
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Stefan Monnier, 2015/03/16
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Juri Linkov, 2015/03/16
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Stefan Monnier, 2015/03/16
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Juri Linkov, 2015/03/17
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Stefan Monnier, 2015/03/24
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Juri Linkov, 2015/03/25
- bug#20070: 24.3; have commands such as downcase-region act on a rectangle region, Eli Zaretskii, 2015/03/17