GNU bug report logs - #739
Suggested small functions to plug symmetry gaps

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Reuben Thomas <rrt <at> sc3d.org>; Keywords: patch; dated Tue, 19 Aug 2008 13:00:04 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.

Message received at 739 <at> debbugs.gnu.org:


Received: (at 739) by debbugs.gnu.org; 12 Apr 2012 18:20:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 12 14:20:42 2012
Received: from localhost ([127.0.0.1]:54677 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SIOdN-0005zA-Ty
	for submit <at> debbugs.gnu.org; Thu, 12 Apr 2012 14:20:42 -0400
Received: from chene.dit.umontreal.ca ([132.204.246.20]:50882)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier <at> iro.umontreal.ca>) id 1SIOdL-0005z3-R0
	for 739 <at> debbugs.gnu.org; Thu, 12 Apr 2012 14:20:40 -0400
Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca
	[132.204.27.242])
	by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3CIJPUm027293; 
	Thu, 12 Apr 2012 14:19:25 -0400
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id 33E18B4066; Thu, 12 Apr 2012 14:19:25 -0400 (EDT)
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Reuben Thomas <rrt <at> sc3d.org>
Subject: Re: bug#739: Suggested small functions to plug symmetry gaps
Message-ID: <jwvobqwrf8v.fsf-monnier+emacs <at> gnu.org>
References: <alpine.DEB.1.00.0808191333010.21819 <at> canta>
	<m3wr5mmp86.fsf <at> stories.gnus.org>
	<jwvwr5m9yd7.fsf-monnier+emacs <at> gnu.org>
	<m362d5aq9v.fsf <at> stories.gnus.org>
	<CAOnWdojk3dvt=0aW4vbps+K_3yPnWMbDyV1yp9g7jRGgJgY=Ew <at> mail.gmail.com>
Date: Thu, 12 Apr 2012 14:19:25 -0400
In-Reply-To: <CAOnWdojk3dvt=0aW4vbps+K_3yPnWMbDyV1yp9g7jRGgJgY=Ew <at> mail.gmail.com>
	(Reuben Thomas's message of "Thu, 12 Apr 2012 17:17:40 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV4190=0
X-NAI-Spam-Version: 2.2.0.9309 : core <4190> : streams <746295> : uri <1098483>
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 739
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 739 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

>>> But, please don't define a new function/command, just put a interactive
>>> property on `move-to-column' instead.
>> `move-to-column' already has an interactive spec. =A0:-)
> It does, but it could still be extended to prompt for a number if one
> isn't given;

Agreed.  Patch welcome.

> at the moment, as I originally noted, there is no
> columnar equivalent to goto-char and goto-line. If it's not
> appropriate to add this behavior to move-to-column, it could be a new
> function, as I suggested; this also has the advantage that users might
> reasonably infer the existence of goto-column from the other goto-
> functions, and be surprised (as I was!) when they don't find it.

I could maybe be persuaded to add a `goto-column' alias.

As for copy-rectangle-as-kill, that sounds perfectly fine to me.
[ Tho I'd much rather do it with M-x push-rectangle-mark RET ...move to
  other corner... M-w.  E.g. by letting `mark-active' take a third
  possible value `rectangle'.  ]


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#739; Package emacs. Full text available.

Message received at 739 <at> debbugs.gnu.org:


Received: (at 739) by debbugs.gnu.org; 12 Apr 2012 16:19:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 12 12:19:04 2012
Received: from localhost ([127.0.0.1]:54542 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SIMjb-0002GS-PR
	for submit <at> debbugs.gnu.org; Thu, 12 Apr 2012 12:19:03 -0400
Received: from exprod7og108.obsmtp.com ([64.18.2.169]:52957)
	by debbugs.gnu.org with smtp (Exim 4.72)
	(envelope-from <rrt <at> sc3d.org>) id 1SIMjY-0002GG-Eo
	for 739 <at> debbugs.gnu.org; Thu, 12 Apr 2012 12:18:57 -0400
Received: from mail-wi0-f181.google.com ([209.85.212.181]) (using TLSv1) by
	exprod7ob108.postini.com ([64.18.6.12]) with SMTP
	ID DSNKT4cAJTymXa4tK2s3mxeueGP1qUSKyJNr <at> postini.com;
	Thu, 12 Apr 2012 09:17:42 PDT
Received: by mail-wi0-f181.google.com with SMTP id hr17so1843292wib.16
	for <739 <at> debbugs.gnu.org>; Thu, 12 Apr 2012 09:17:41 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding:x-gm-message-state;
	bh=Qtx6XuxosuKrnVij10TzzqI0hsdCE6YgEWLkUN3fSqY=;
	b=XdD2AP2G3kwxVi9rMLVNbz3tKacEBAF5SgB1HMZ16ggMA3593Eo7/Viwoaq8C3C8xi
	eaceqMIp1LZ9xb3b9BG48povAXnpI5skMkYHbLQJId4Vk3wA6rQd4fuMdx6gm+aWDLgB
	7Om6XvLRwVjy76aidFgMhHJD2HcKKdmgxwxJoX16rEvlVXsYu0/RyGfWr6I36uyQCMvY
	z6QEfG2KGbTAdsXg1ytff2VkBgZz6l/IXzCk6Cb/hhL1qzP8YqxVeaDrdBO7GCdPJw65
	gXJuKM68W3Zl+SC45aUbaKvMmvKUVyN/N7wFgJhd6yo9p5bP734LMFfrE6AAQKScJIbf
	n1BQ==
MIME-Version: 1.0
Received: by 10.180.82.132 with SMTP id i4mr17250042wiy.12.1334247461080; Thu,
	12 Apr 2012 09:17:41 -0700 (PDT)
Received: by 10.216.9.70 with HTTP; Thu, 12 Apr 2012 09:17:40 -0700 (PDT)
In-Reply-To: <m362d5aq9v.fsf <at> stories.gnus.org>
References: <alpine.DEB.1.00.0808191333010.21819 <at> canta>
	<m3wr5mmp86.fsf <at> stories.gnus.org>
	<jwvwr5m9yd7.fsf-monnier+emacs <at> gnu.org>
	<m362d5aq9v.fsf <at> stories.gnus.org>
Date: Thu, 12 Apr 2012 17:17:40 +0100
Message-ID: <CAOnWdojk3dvt=0aW4vbps+K_3yPnWMbDyV1yp9g7jRGgJgY=Ew <at> mail.gmail.com>
Subject: Re: bug#739: Suggested small functions to plug symmetry gaps
From: Reuben Thomas <rrt <at> sc3d.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQkbFmNx00nmR/zzngJhRwts0Gs/iMRLexPCQ/q8RbU6F2IwP6uerwLZtIzkwuYYYy3w9OXP
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 739
Cc: 739 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

2012/4/12 Lars Magne Ingebrigtsen <larsi <at> gnus.org>:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
>> But, please don't define a new function/command, just put a interactive
>> property on `move-to-column' instead.
>
> `move-to-column' already has an interactive spec. =A0:-)

It does, but it could still be extended to prompt for a number if one
isn't given; at the moment, as I originally noted, there is no
columnar equivalent to goto-char and goto-line. If it's not
appropriate to add this behavior to move-to-column, it could be a new
function, as I suggested; this also has the advantage that users might
reasonably infer the existence of goto-column from the other goto-
functions, and be surprised (as I was!) when they don't find it.

--=20
http://rrt.sc3d.org




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#739; Package emacs. Full text available.

Message received at 739 <at> debbugs.gnu.org:


Received: (at 739) by debbugs.gnu.org; 12 Apr 2012 16:07:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 12 12:07:47 2012
Received: from localhost ([127.0.0.1]:54522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SIMYk-0001C1-QI
	for submit <at> debbugs.gnu.org; Thu, 12 Apr 2012 12:07:47 -0400
Received: from hermes.netfonds.no ([80.91.224.195]:37276)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <larsi <at> gnus.org>) id 1SIMYi-0001Bu-Tr
	for 739 <at> debbugs.gnu.org; Thu, 12 Apr 2012 12:07:45 -0400
Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]
	helo=stories.gnus.org)
	by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.72) (envelope-from <larsi <at> gnus.org>)
	id 1SIMXN-0004Xb-02; Thu, 12 Apr 2012 18:06:21 +0200
From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#739: Suggested small functions to plug symmetry gaps
References: <alpine.DEB.1.00.0808191333010.21819 <at> canta>
	<m3wr5mmp86.fsf <at> stories.gnus.org>
	<jwvwr5m9yd7.fsf-monnier+emacs <at> gnu.org>
X-Now-Playing: Bob Hund's _Sover Aldrig_: "Jag Rear Ut Min
	=?iso-8859-1?Q?Sj=E4l=22?=
Date: Thu, 12 Apr 2012 18:06:20 +0200
In-Reply-To: <jwvwr5m9yd7.fsf-monnier+emacs <at> gnu.org> (Stefan Monnier's message
	of "Wed, 11 Apr 2012 09:46:54 -0400")
Message-ID: <m362d5aq9v.fsf <at> stories.gnus.org>
User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-MailScanner-ID: 1SIMXN-0004Xb-02
X-Netfonds-MailScanner: Found to be clean
X-Netfonds-MailScanner-From: larsi <at> gnus.org
MailScanner-NULL-Check: 1334851581.05413 <at> CgV87Hb/VVRttCYi+y1JJw
X-Spam-Status: No
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 739
Cc: 739 <at> debbugs.gnu.org, Reuben Thomas <rrt <at> sc3d.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> But, please don't define a new function/command, just put a interactive
> property on `move-to-column' instead.

`move-to-column' already has an interactive spec.  :-)

But what did you think about `copy-rectangle-as-kill'?  Seems useful to
me.

(On `C-x r v' as suggested.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#739; Package emacs. Full text available.

Message received at 739 <at> debbugs.gnu.org:


Received: (at 739) by debbugs.gnu.org; 11 Apr 2012 17:58:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 11 13:58:39 2012
Received: from localhost ([127.0.0.1]:52471 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SI1oT-0004Bj-Uy
	for submit <at> debbugs.gnu.org; Wed, 11 Apr 2012 13:58:39 -0400
Received: from rcsinet15.oracle.com ([148.87.113.117]:38831)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams <at> oracle.com>) id 1SI1oP-0004BN-Rk
	for 739 <at> debbugs.gnu.org; Wed, 11 Apr 2012 13:58:35 -0400
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with
	ESMTP id q3BHvOZg020389
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 11 Apr 2012 17:57:25 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	q3BHvMk0004122
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 11 Apr 2012 17:57:23 GMT
Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59])
	by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	q3BHvM96030882; Wed, 11 Apr 2012 12:57:22 -0500
Received: from dradamslap1 (/130.35.178.194)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Wed, 11 Apr 2012 10:57:22 -0700
From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Lars Magne Ingebrigtsen'" <larsi <at> gnus.org>,
	"'Reuben Thomas'" <rrt <at> sc3d.org>
References: <alpine.DEB.1.00.0808191333010.21819 <at> canta>
	<m3wr5mmp86.fsf <at> stories.gnus.org>
Subject: RE: bug#739: Suggested small functions to plug symmetry gaps
Date: Wed, 11 Apr 2012 10:57:21 -0700
Message-ID: <4010985B2688444CBE3CE92F3B62989E <at> us.oracle.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <m3wr5mmp86.fsf <at> stories.gnus.org>
Thread-Index: Ac0X4GnfV5obl6IbQlyKnMVjDU9TjAAK+irw
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-CT-RefId: str=0001.0A090205.4F85C605.0045,ss=1,re=0.000,fgs=0
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: 739
Cc: 739 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

> This doesn't really seem that useful to me.  `C-u 9 <right>' does that
> already.
> ...
> This is a good idea, especially in read-only buffers.  What would the
> keystroke be, though?  `C-x r c' is already taken...

It is appropriate to file enhancement requests using `report-emacs-bug'.  But
discussion of whether to enhance Emacs following such a request should take
place in emacs-devel, not debbugs.

The list audiences and the list purposes are not the same.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#739; Package emacs. Full text available.

Message received at 739 <at> debbugs.gnu.org:


Received: (at 739) by debbugs.gnu.org; 11 Apr 2012 16:05:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 11 12:05:19 2012
Received: from localhost ([127.0.0.1]:52299 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SI02o-0001T1-Kj
	for submit <at> debbugs.gnu.org; Wed, 11 Apr 2012 12:05:19 -0400
Received: from exprod7og102.obsmtp.com ([64.18.2.157]:45213)
	by debbugs.gnu.org with smtp (Exim 4.72)
	(envelope-from <rrt <at> sc3d.org>) id 1SI02j-0001Sm-AH
	for 739 <at> debbugs.gnu.org; Wed, 11 Apr 2012 12:05:16 -0400
Received: from mail-wi0-f177.google.com ([209.85.212.177]) (using TLSv1) by
	exprod7ob102.postini.com ([64.18.6.12]) with SMTP
	ID DSNKT4WrdJmBn7pG/U6opy4qBzDG3P+vNi+b <at> postini.com;
	Wed, 11 Apr 2012 09:04:05 PDT
Received: by wibhj13 with SMTP id hj13so801289wib.0
	for <739 <at> debbugs.gnu.org>; Wed, 11 Apr 2012 09:04:02 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding:x-gm-message-state;
	bh=tKTaX0ShqBxhY/LJuFRtLNffAAPrFEcNWrgu9IhuOdk=;
	b=bwpZVCzami1ciTibbFH5+WN0rlkJA0ldt4REeMTn6Y2nRPikOSwVHFso++FVwMxSK8
	Lc7Qp7de4/TPn9FHZrq8UWLqJP2proCa8JxrXmPxM1FR3aRIAP7ekoi/tYe/Freopeb0
	B6pORxWfH62f79ySk8bHg3gZDiq2jNYmehbzNSHuwYcb8YG5njFs3fyvK1CgAaSSGn9P
	0O2/5ls0wrzX1csVHKg+GOxUKgqMBz7jpgfuJ3FS5hl0FsDL9pDGny+SiwFHd+LIB07U
	aqCKlEBCSUEfdKh3fHit1mhGJTKcQf19QSSrUAzpxlpOUhC8Fol/Y0C2zuBsCwr3XrJC
	/C9A==
MIME-Version: 1.0
Received: by 10.180.101.8 with SMTP id fc8mr17622452wib.12.1334160242599; Wed,
	11 Apr 2012 09:04:02 -0700 (PDT)
Received: by 10.216.9.70 with HTTP; Wed, 11 Apr 2012 09:04:02 -0700 (PDT)
In-Reply-To: <m3wr5mmp86.fsf <at> stories.gnus.org>
References: <alpine.DEB.1.00.0808191333010.21819 <at> canta>
	<m3wr5mmp86.fsf <at> stories.gnus.org>
Date: Wed, 11 Apr 2012 17:04:02 +0100
Message-ID: <CAOnWdogqchgz03wSfvGFadO00htHggvGtv=zC_2nnvs-13anYA <at> mail.gmail.com>
Subject: Re: bug#739: Suggested small functions to plug symmetry gaps
From: Reuben Thomas <rrt <at> sc3d.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQniVY0rVZh+gdgKH7uMSojNGzXIMPnuBS6grpk8BK+6pSgsrMZ0/a3wi6QIuUyH1uKILQGU
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 739
Cc: 739 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

On 11 April 2012 13:23, Lars Magne Ingebrigtsen <larsi <at> gnus.org> wrote:
> Reuben Thomas <rrt <at> sc3d.org> writes:
>
>> For rect.el:
>>
>> (defun copy-rectangle-as-kill (start end)
>> =A0 "Copy the region-rectangle and save it as the last killed one."
>> =A0 (interactive "r")
>> =A0 (setq killed-rectangle (extract-rectangle start end)))
>>
> This is a good idea, especially in read-only buffers. =A0What would the
> keystroke be, though? =A0`C-x r c' is already taken...

The mailing list message in which I found this function suggested C-x
r v, and that's what I use.

--=20
http://rrt.sc3d.org




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#739; Package emacs. Full text available.

Message received at 739 <at> debbugs.gnu.org:


Received: (at 739) by debbugs.gnu.org; 11 Apr 2012 13:48:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 11 09:48:05 2012
Received: from localhost ([127.0.0.1]:50811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SHxu0-0003uZ-Dd
	for submit <at> debbugs.gnu.org; Wed, 11 Apr 2012 09:48:05 -0400
Received: from ironport-out.teksavvy.com ([206.248.143.162]:5479)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier <at> iro.umontreal.ca>) id 1SHxtz-0003u6-22
	for 739 <at> debbugs.gnu.org; Wed, 11 Apr 2012 09:48:03 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApUIACxOgk9FxL8q/2dsb2JhbABDuCMDgQyBCIIKAQVWIxALNBIUGA0kiCG2MothhHkEpEWBXYMD
X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="173333492"
Received: from 69-196-191-42.dsl.teksavvy.com (HELO pastel.home)
	([69.196.191.42])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	11 Apr 2012 09:46:55 -0400
Received: by pastel.home (Postfix, from userid 20848)
	id EE30E58D2B; Wed, 11 Apr 2012 09:46:54 -0400 (EDT)
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#739: Suggested small functions to plug symmetry gaps
Message-ID: <jwvwr5m9yd7.fsf-monnier+emacs <at> gnu.org>
References: <alpine.DEB.1.00.0808191333010.21819 <at> canta>
	<m3wr5mmp86.fsf <at> stories.gnus.org>
Date: Wed, 11 Apr 2012 09:46:54 -0400
In-Reply-To: <m3wr5mmp86.fsf <at> stories.gnus.org> (Lars Magne Ingebrigtsen's
	message of "Wed, 11 Apr 2012 14:23:37 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 739
Cc: 739 <at> debbugs.gnu.org, Reuben Thomas <rrt <at> sc3d.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

>> (defun goto-column (n)
>>   "Goto column COLUMN, counting from column 1 at beginning of line."
>>   (interactive "nGoto column: ")
>>   (move-to-column n))
> This doesn't really seem that useful to me.  `C-u 9 <right>' does that
> already.

No, C-u 9 <right> only works if you're at BOL and if all chars occupy
a single column (e.g. any TAB will throw you off).

But, please don't define a new function/command, just put a interactive
property on `move-to-column' instead.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#739; Package emacs. Full text available.

Message received at 739 <at> debbugs.gnu.org:


Received: (at 739) by debbugs.gnu.org; 11 Apr 2012 12:24:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 11 08:24:59 2012
Received: from localhost ([127.0.0.1]:50620 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SHwba-0000HH-MP
	for submit <at> debbugs.gnu.org; Wed, 11 Apr 2012 08:24:59 -0400
Received: from hermes.netfonds.no ([80.91.224.195]:36602)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <larsi <at> gnus.org>) id 1SHwbW-0000H8-Oq
	for 739 <at> debbugs.gnu.org; Wed, 11 Apr 2012 08:24:56 -0400
Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]
	helo=stories.gnus.org)
	by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.72) (envelope-from <larsi <at> gnus.org>)
	id 1SHwaI-000238-5Z; Wed, 11 Apr 2012 14:23:38 +0200
From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Reuben Thomas <rrt <at> sc3d.org>
Subject: Re: bug#739: Suggested small functions to plug symmetry gaps
References: <alpine.DEB.1.00.0808191333010.21819 <at> canta>
X-Now-Playing: Zazou, Bikaye & Cy1's _Noir et Blanc_: "Munipe Wa Kati"
Date: Wed, 11 Apr 2012 14:23:37 +0200
In-Reply-To: <alpine.DEB.1.00.0808191333010.21819 <at> canta> (Reuben Thomas's
	message of "Tue, 19 Aug 2008 13:51:06 +0100 (BST)")
Message-ID: <m3wr5mmp86.fsf <at> stories.gnus.org>
User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-MailScanner-ID: 1SHwaI-000238-5Z
X-Netfonds-MailScanner: Found to be clean
X-Netfonds-MailScanner-From: larsi <at> gnus.org
MailScanner-NULL-Check: 1334751818.22908 <at> CkwJp+Uaz1lXzsX+fKnr8g
X-Spam-Status: No
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 739
Cc: 739 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

Reuben Thomas <rrt <at> sc3d.org> writes:

> For simple.el:
>
> (defun goto-column (n)
>   "Goto column COLUMN, counting from column 1 at beginning of line."
>   (interactive "nGoto column: ")
>   (move-to-column n))

This doesn't really seem that useful to me.  `C-u 9 <right>' does that
already.

> For rect.el:
>
> (defun copy-rectangle-as-kill (start end)
>   "Copy the region-rectangle and save it as the last killed one."
>   (interactive "r")
>   (setq killed-rectangle (extract-rectangle start end)))
>
> goto-column fills an obvious gap left between goto-char and goto-line,
> while copy-rectangle-as-kill mirrors copy-region-as-kill (and has been
> requested and suggested before on more than one Emacs mailing list).

This is a good idea, especially in read-only buffers.  What would the
keystroke be, though?  `C-x r c' is already taken...

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#739; Package emacs. Full text available.
Severity set to `wishlist' from `normal' Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-5.0 required=4.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW
	autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Received: (at submit) by emacsbugs.donarmstrong.com; 19 Aug 2008 12:51:30 +0000
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7JCpMNd014734
	for <submit <at> emacsbugs.donarmstrong.com>; Tue, 19 Aug 2008 05:51:23 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1KVQgE-0005Iu-5j
	for bug-gnu-emacs <at> gnu.org; Tue, 19 Aug 2008 08:51:22 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1KVQgD-0005Ic-5W
	for bug-gnu-emacs <at> gnu.org; Tue, 19 Aug 2008 08:51:21 -0400
Received: from [199.232.76.173] (port=53967 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1KVQgD-0005IZ-20
	for bug-gnu-emacs <at> gnu.org; Tue, 19 Aug 2008 08:51:21 -0400
Received: from fencepost.gnu.org ([140.186.70.10]:59745)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <rrt <at> sc3d.org>)
	id 1KVQgD-0002tz-1S
	for bug-gnu-emacs <at> gnu.org; Tue, 19 Aug 2008 08:51:21 -0400
Received: from mx10.gnu.org ([199.232.76.166]:38525)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <rrt <at> sc3d.org>)
	id 1KVQev-0005DX-UQ
	for bug-emacs <at> gnu.org; Tue, 19 Aug 2008 08:50:01 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <rrt <at> sc3d.org>)
	id 1KVQg8-0002sB-Em
	for bug-emacs <at> gnu.org; Tue, 19 Aug 2008 08:51:20 -0400
Received: from exprod7og108.obsmtp.com ([64.18.2.169]:53018)
	by monty-python.gnu.org with smtp (Exim 4.60)
	(envelope-from <rrt <at> sc3d.org>)
	id 1KVQg7-0002qb-F0
	for bug-emacs <at> gnu.org; Tue, 19 Aug 2008 08:51:16 -0400
Received: from source ([64.233.182.187]) by exprod7ob108.postini.com ([64.18.6.12]) with SMTP;
	Tue, 19 Aug 2008 05:51:10 PDT
Received: by nf-out-0910.google.com with SMTP id k4so1402909nfd.0
        for <bug-emacs <at> gnu.org>; Tue, 19 Aug 2008 05:51:10 -0700 (PDT)
Received: by 10.210.28.4 with SMTP id b4mr9778181ebb.138.1219150270047;
        Tue, 19 Aug 2008 05:51:10 -0700 (PDT)
Received: from canta.local ( [81.106.81.253])
        by mx.google.com with ESMTPS id u14sm287679gvf.6.2008.08.19.05.51.08
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Tue, 19 Aug 2008 05:51:08 -0700 (PDT)
Date: Tue, 19 Aug 2008 13:51:06 +0100 (BST)
From: Reuben Thomas <rrt <at> sc3d.org>
To: bug-emacs <at> gnu.org
Subject: Suggested small functions to plug symmetry gaps
Message-ID: <alpine.DEB.1.00.0808191333010.21819 <at> canta>
User-Agent: Alpine 1.00 (DEB 882 2007-12-20)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4)
X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4)

Hi,

I have a couple of functions in my ~/.emacs that are useful, tiny, and plug 
obvious "symmetry gaps" in the standard functions. They're not even 
original; one at least has been discussed on the list before.

For simple.el:

(defun goto-column (n)
   "Goto column COLUMN, counting from column 1 at beginning of line."
   (interactive "nGoto column: ")
   (move-to-column n))

For rect.el:

(defun copy-rectangle-as-kill (start end)
   "Copy the region-rectangle and save it as the last killed one."
   (interactive "r")
   (setq killed-rectangle (extract-rectangle start end)))

goto-column fills an obvious gap left between goto-char and goto-line, while 
copy-rectangle-as-kill mirrors copy-region-as-kill (and has been requested 
and suggested before on more than one Emacs mailing list).

Is there some reason not to put these functions in Emacs? I'd be happy to 
supply the other obvious missing part (documentation for the manual) if that 
helped.

-- 
http://rrt.sc3d.org/ | resolute, a.  obstinate in a good cause (Bierce)





Acknowledgement sent to Reuben Thomas <rrt <at> sc3d.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#739; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 12 Apr 2012 18:30:02 UTC

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