GNU bug report logs - #19773
23.2; kill-rectangle documentation

Previous Next

Package: emacs;

Reported by: vincent douzal <vincent.douzal <at> teledetection.fr>

Date: Wed, 4 Feb 2015 17:40:04 UTC

Severity: minor

Tags: fixed, patch

Found in version 23.2

Fixed in version 25.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19773 in the body.
You can then email your comments to 19773 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19773; Package emacs. (Wed, 04 Feb 2015 17:40:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to vincent douzal <vincent.douzal <at> teledetection.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 04 Feb 2015 17:40:05 GMT) Full text and rfc822 format available.

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

From: vincent douzal <vincent.douzal <at> teledetection.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.2; kill-rectangle documentation
Date: Wed, 4 Feb 2015 15:09:29 +0000
Hello,

The documentation string for kill-rectangle erroneously speaks about the
kill ring.  Rectangles of text are not copied to the kill ring, but in
the variable kill-rectangle, which besides is not a ring.

This can be puzzle new users.

Regards

Vincent Douzal


In GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-01-09 on murphy, modified by Debian

Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19773; Package emacs. (Mon, 04 Jul 2016 02:10:02 GMT) Full text and rfc822 format available.

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

From: npostavs <at> users.sourceforge.net
To: vincent douzal <vincent.douzal <at> teledetection.fr>
Cc: 19773 <at> debbugs.gnu.org
Subject: Re: bug#19773: 23.2; kill-rectangle documentation
Date: Sun, 03 Jul 2016 22:09:37 -0400
[Message part 1 (text/plain, inline)]
tags 19773 patch
quit

vincent douzal <vincent.douzal <at> teledetection.fr> writes:

> Hello,
>
> The documentation string for kill-rectangle erroneously speaks about the
> kill ring.  Rectangles of text are not copied to the kill ring, but in
> the variable kill-rectangle, which besides is not a ring.

Hmm yeah, looks like copy-pasto.  Should we mention the variable name
directly in the docstring (as in patch below) or is it better to just
say it's "saved"?

[v1-0001-kill-rectangle-should-mention-kill-rectangle.patch (text/x-diff, inline)]
From e2455dd16032f21884b39169a70386801a27392a Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs <at> gmail.com>
Date: Sun, 3 Jul 2016 21:40:26 -0400
Subject: [PATCH v1] kill-rectangle should mention kill-rectangle

* lisp/rect.el (kill-rectangle): Mention `killed-rectangle' in docstring
and warning message, rather than kill ring (Bug#19773).
---
 lisp/rect.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/rect.el b/lisp/rect.el
index 43621d9..8fedce2 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -284,7 +284,7 @@ kill-rectangle
 deleted.
 
 If the buffer is read-only, Emacs will beep and refrain from deleting
-the rectangle, but put it in the kill ring anyway.  This means that
+the rectangle, but put it in `killed-rectangle' anyway.  This means that
 you can use this command to copy text from a read-only buffer.
 \(If the variable `kill-read-only-ok' is non-nil, then this won't
 even beep.)"
@@ -295,7 +295,7 @@ kill-rectangle
      (setq deactivate-mark t)
      (setq killed-rectangle (extract-rectangle start end))
      (if kill-read-only-ok
-	 (progn (message "Read only text copied to kill ring") nil)
+	 (progn (message "Read only text copied to `killed-rectangle'") nil)
        (barf-if-buffer-read-only)
        (signal 'text-read-only (list (current-buffer)))))))
 
-- 
2.8.0


Added tag(s) patch. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Mon, 04 Jul 2016 02:10:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19773; Package emacs. (Sun, 17 Jul 2016 01:19:02 GMT) Full text and rfc822 format available.

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

From: npostavs <at> users.sourceforge.net
To: vincent douzal <vincent.douzal <at> teledetection.fr>
Cc: 19773 <at> debbugs.gnu.org
Subject: Re: bug#19773: 23.2; kill-rectangle documentation
Date: Sat, 16 Jul 2016 21:18:33 -0400
tags 19773 fixed
close 19773 25.1
quit

Pushed as 219b39f5




Added tag(s) fixed. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 17 Jul 2016 01:19:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.1, send any further explanations to 19773 <at> debbugs.gnu.org and vincent douzal <vincent.douzal <at> teledetection.fr> Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 17 Jul 2016 01:19:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 14 Aug 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 4 days ago.

Previous Next


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