diff options
| author | Glenn Morris | 2014-07-06 16:58:52 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-07-06 16:58:52 -0700 |
| commit | 50802fa8e234ba241036c7fded8a57c6088722ea (patch) | |
| tree | 57f8b11c2fcffc35a72e2aae0ff7d4cb0804d1be | |
| parent | 41cd2704e2972a1aac00aa5d538d2f66c5f6f664 (diff) | |
| download | emacs-50802fa8e234ba241036c7fded8a57c6088722ea.tar.gz emacs-50802fa8e234ba241036c7fded8a57c6088722ea.zip | |
* cua-rect.el (cua--activate-rectangle): Avoid setting cua--rectangle to nil.
Fixes: debbugs:17877
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emulation/cua-rect.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d97faa780c2..bfa5c5cd24b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-07-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emulation/cua-rect.el (cua--activate-rectangle): | ||
| 4 | Avoid setting cua--rectangle to nil. (Bug#17877) | ||
| 5 | |||
| 1 | 2014-07-06 Stephen Berman <stephen.berman@gmx.net> | 6 | 2014-07-06 Stephen Berman <stephen.berman@gmx.net> |
| 2 | 7 | ||
| 3 | * calendar/todo-mode.el: Fix wrong-type-argument error when | 8 | * calendar/todo-mode.el: Fix wrong-type-argument error when |
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el index d516bd4c7cc..31dd137a6b9 100644 --- a/lisp/emulation/cua-rect.el +++ b/lisp/emulation/cua-rect.el | |||
| @@ -726,11 +726,11 @@ If command is repeated at same position, delete the rectangle." | |||
| 726 | ;; Set cua--rectangle to indicate we're marking a rectangle. | 726 | ;; Set cua--rectangle to indicate we're marking a rectangle. |
| 727 | ;; Be careful if we are already marking a rectangle. | 727 | ;; Be careful if we are already marking a rectangle. |
| 728 | (setq cua--rectangle | 728 | (setq cua--rectangle |
| 729 | (if (and cua--last-rectangle | 729 | (or (and cua--last-rectangle |
| 730 | (eq (car cua--last-rectangle) (current-buffer)) | 730 | (eq (car cua--last-rectangle) (current-buffer)) |
| 731 | (eq (car (cdr cua--last-rectangle)) (point))) | 731 | (eq (car (cdr cua--last-rectangle)) (point)) |
| 732 | (cdr (cdr cua--last-rectangle)) | 732 | (cdr (cdr cua--last-rectangle))) |
| 733 | (cua--rectangle-get-corners)) | 733 | (cua--rectangle-get-corners)) |
| 734 | cua--status-string (if (cua--rectangle-virtual-edges) " [R]" "") | 734 | cua--status-string (if (cua--rectangle-virtual-edges) " [R]" "") |
| 735 | cua--last-rectangle nil) | 735 | cua--last-rectangle nil) |
| 736 | (activate-mark)) | 736 | (activate-mark)) |