unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: joaotavora@gmail.com (João Távora)
Cc: 18309@debbugs.gnu.org
Subject: bug#18309: 24.3.93; cua-rectangle-mark-mode error
Date: Thu, 21 Aug 2014 16:47:53 -0400	[thread overview]
Message-ID: <16iollvabq.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jjbvbpm41dw.fsf@gmail.com> ("João Távora"'s message of "Thu, 21 Aug 2014 10:50:51 +0100")

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






  reply	other threads:[~2014-08-21 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16iollvabq.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=18309@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).