GNU bug report logs - #17877
24.3.92; Errors from cua-rectangle-mark-mode

Previous Next

Package: emacs;

Reported by: penthief <penthief <at> SDF.ORG>

Date: Sun, 29 Jun 2014 17:48:05 UTC

Severity: normal

Merged with 18047

Found in versions 24.3.92, 24.4.50

Fixed in version 24.3.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 17877 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: penthief <penthief <at> SDF.ORG>
Cc: 17877 <at> debbugs.gnu.org
Subject: Re: bug#17877: 24.3.92; Errors from cua-rectangle-mark-mode
Date: Sun, 29 Jun 2014 19:38:29 -0400
penthief wrote:

> cua--activate-rectangle: Wrong type argument: arrayp, nil

With almost no testing, this seems to fix it:

*** lisp/emulation/cua-rect.el	2014-01-01 07:43:34 +0000
--- lisp/emulation/cua-rect.el	2014-06-29 23:36:26 +0000
***************
*** 726,735 ****
    ;; Set cua--rectangle to indicate we're marking a rectangle.
    ;; Be careful if we are already marking a rectangle.
    (setq cua--rectangle
!         (if (and cua--last-rectangle
                   (eq (car cua--last-rectangle) (current-buffer))
!                  (eq (car (cdr cua--last-rectangle)) (point)))
!             (cdr (cdr cua--last-rectangle))
            (cua--rectangle-get-corners))
          cua--status-string (if (cua--rectangle-virtual-edges) " [R]" "")
          cua--last-rectangle nil)
--- 726,735 ----
    ;; Set cua--rectangle to indicate we're marking a rectangle.
    ;; Be careful if we are already marking a rectangle.
    (setq cua--rectangle
!         (or (and cua--last-rectangle
                   (eq (car cua--last-rectangle) (current-buffer))
!                  (eq (car (cdr cua--last-rectangle)) (point))
!                  (cdr (cdr cua--last-rectangle)))
              (cua--rectangle-get-corners))
          cua--status-string (if (cua--rectangle-virtual-edges) " [R]" "")
          cua--last-rectangle nil)




This bug report was last modified 3 years and 263 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.