From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#739: Suggested small functions to plug symmetry gaps Date: Wed, 11 Apr 2012 14:23:37 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334148087 30062 80.91.229.3 (11 Apr 2012 12:41:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 12:41:27 +0000 (UTC) Cc: 739@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 14:41:26 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SHwrU-0007B0-9G for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 14:41:24 +0200 Original-Received: from localhost ([::1]:48899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwrT-0003lB-Mq for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 08:41:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwrN-0003fY-8Z for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:41:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHwpw-0007Ac-4X for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:39:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwaa-000378-Fx for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:23:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHwbd-0000Hc-Q1 for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 12:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 739 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 739-submit@debbugs.gnu.org id=B739.13341470991076 (code B ref 739); Wed, 11 Apr 2012 12:25:01 +0000 Original-Received: (at 739) by debbugs.gnu.org; 11 Apr 2012 12:24:59 +0000 Original-Received: from localhost ([127.0.0.1]:50620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHwba-0000HH-MP for submit@debbugs.gnu.org; Wed, 11 Apr 2012 08:24:59 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36602) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHwbW-0000H8-Oq for 739@debbugs.gnu.org; Wed, 11 Apr 2012 08:24:56 -0400 Original-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 ) id 1SHwaI-000238-5Z; Wed, 11 Apr 2012 14:23:38 +0200 X-Now-Playing: Zazou, Bikaye & Cy1's _Noir et Blanc_: "Munipe Wa Kati" In-Reply-To: (Reuben Thomas's message of "Tue, 19 Aug 2008 13:51:06 +0100 (BST)") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) X-MailScanner-ID: 1SHwaI-000238-5Z MailScanner-NULL-Check: 1334751818.22908@CkwJp+Uaz1lXzsX+fKnr8g X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58790 Archived-At: Reuben Thomas 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 ' 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/