all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#18309: 24.3.93; cua-rectangle-mark-mode error
@ 2014-08-21  9:50 João Távora
  2014-08-21 20:47 ` Glenn Morris
       [not found] ` <handler.18309.D18309.14089848868718.notifdone@debbugs.gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: João Távora @ 2014-08-21  9:50 UTC (permalink / raw)
  To: 18309

Hi, maintainers,

emacs -Q

In the *scratch* buffer

   M-x beginning-of-buffer
   M-x newline
   M-x forward-word
   M-x cua-rectangle-mark-mode
   M-x cua-resize-rectangle-left
   M-x cua-resize-rectangle-up

An error is signalled

   Error in post-command-hook (cua--rectangle-post-command):
   (args-out-of-range 0 0)

The rectangle is left in an unconsistent state: typing still enters text
inside the rectangle but the red highlighting is never
revived.

Furthermore cursor can be moved to other places and text still goes
inside the rectangle and creating a rectangle somewhere in the same
buffer else somehow revives the old rectangle.

There used to be another bug that I can't reproduce anymore so perhaps
the bug above was introduced by a a fix between 24.3.91 and 24.3.93: An
error used to be signalled sometimes after existing
cua-rectangle-mark-mode and trying to reenter it again in another
location.

Thanks,
João

In GNU Emacs 24.3.93.1 (i686-pc-mingw32)
 of 2014-08-15 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'

Important settings:
  value of $LC_CTYPE: UTF-8
  value of $LANG: C.UTF-8
  locale-coding-system: cp1252

Major mode: Lisp Interaction






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#18309: 24.3.93; cua-rectangle-mark-mode error
  2014-08-21  9:50 bug#18309: 24.3.93; cua-rectangle-mark-mode error João Távora
@ 2014-08-21 20:47 ` Glenn Morris
  2014-08-25 16:41   ` Glenn Morris
       [not found] ` <handler.18309.D18309.14089848868718.notifdone@debbugs.gnu.org>
  1 sibling, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2014-08-21 20:47 UTC (permalink / raw)
  To: João Távora; +Cc: 18309

João Távora wrote:

> In the *scratch* buffer
>
>    M-x beginning-of-buffer
>    M-x newline
>    M-x forward-word
>    M-x cua-rectangle-mark-mode
>    M-x cua-resize-rectangle-left
>    M-x cua-resize-rectangle-up
>
> An error is signalled
>
>    Error in post-command-hook (cua--rectangle-post-command):
>    (args-out-of-range 0 0)

This seems to avoid the error, but I never use this stuff...

*** lisp/emulation/cua-rect.el	2014-07-06 23:58:52 +0000
--- lisp/emulation/cua-rect.el	2014-08-21 20:44:23 +0000
***************
*** 794,800 ****
  			       (make-string
  				(- l cl0 (if (and (= le pl) (/= le lb)) 1 0))
  				(if cua--virtual-edges-debug ?. ?\s))
! 			       'face (or (get-text-property (1- s) 'face) 'default)))
  		     (if (/= pl le)
  			 (setq s (1- s))))
  		   (cond
--- 794,800 ----
  			       (make-string
  				(- l cl0 (if (and (= le pl) (/= le lb)) 1 0))
  				(if cua--virtual-edges-debug ?. ?\s))
! 			       'face (or (get-text-property (max (1- s) (point-min)) 'face) 'default)))
  		     (if (/= pl le)
  			 (setq s (1- s))))
  		   (cond






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#18309: 24.3.93; cua-rectangle-mark-mode error
  2014-08-21 20:47 ` Glenn Morris
@ 2014-08-25 16:41   ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2014-08-25 16:41 UTC (permalink / raw)
  To: 18309-done

Version: 24.3.94

Installed in the absence of any comments.

Glenn Morris wrote:

> *** lisp/emulation/cua-rect.el	2014-07-06 23:58:52 +0000
> --- lisp/emulation/cua-rect.el	2014-08-21 20:44:23 +0000
> ***************
> *** 794,800 ****
>   			       (make-string
>   				(- l cl0 (if (and (= le pl) (/= le lb)) 1 0))
>   				(if cua--virtual-edges-debug ?. ?\s))
> ! 			       'face (or (get-text-property (1- s) 'face) 'default)))
>   		     (if (/= pl le)
>   			 (setq s (1- s))))
>   		   (cond
> --- 794,800 ----
>   			       (make-string
>   				(- l cl0 (if (and (= le pl) (/= le lb)) 1 0))
>   				(if cua--virtual-edges-debug ?. ?\s))
> ! 			       'face (or (get-text-property (max (1- s) (point-min)) 'face) 'default)))
>   		     (if (/= pl le)
>   			 (setq s (1- s))))
>   		   (cond





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#18309: closed (Re: bug#18309: 24.3.93; cua-rectangle-mark-mode error)
       [not found] ` <handler.18309.D18309.14089848868718.notifdone@debbugs.gnu.org>
@ 2014-08-25 16:52   ` João Távora
  0 siblings, 0 replies; 4+ messages in thread
From: João Távora @ 2014-08-25 16:52 UTC (permalink / raw)
  To: 18309

> From: Glenn Morris <rgm@gnu.org>
>
> Installed in the absence of any comments.

I meant to report that it works nicely now, but I forgot

Thanks,
João





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-25 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-21  9:50 bug#18309: 24.3.93; cua-rectangle-mark-mode error João Távora
2014-08-21 20:47 ` Glenn Morris
2014-08-25 16:41   ` Glenn Morris
     [not found] ` <handler.18309.D18309.14089848868718.notifdone@debbugs.gnu.org>
2014-08-25 16:52   ` bug#18309: closed (Re: bug#18309: 24.3.93; cua-rectangle-mark-mode error) João Távora

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.