From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#739: Suggested small functions to plug symmetry gaps Date: Tue, 19 Aug 2008 13:51:06 +0100 (BST) Message-ID: Reply-To: Reuben Thomas , 739@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1219151303 15367 80.91.229.12 (19 Aug 2008 13:08:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2008 13:08:23 +0000 (UTC) To: bug-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 19 15:09:01 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KVQwy-0002Ed-1V for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Aug 2008 15:08:40 +0200 Original-Received: from localhost ([127.0.0.1]:54643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVQw0-00055K-Vy for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Aug 2008 09:07:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVQvw-00054Z-AQ for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 09:07:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVQvs-00052d-DJ for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 09:07:35 -0400 Original-Received: from [199.232.76.173] (port=41688 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVQvr-00052T-UA for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 09:07:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37401) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KVQvr-0007Bd-Nj for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 09:07:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7JD7QI8020116; Tue, 19 Aug 2008 06:07:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7JD04Qp016686; Tue, 19 Aug 2008 06:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Reuben Thomas Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 19 Aug 2008 13:00:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 739 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121915029014740 (code B ref -1); Tue, 19 Aug 2008 13:00:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Aug 2008 12:51:30 +0000 Original-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 ; Tue, 19 Aug 2008 05:51:23 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVQgE-0005Iu-5j for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 08:51:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVQgD-0005Ic-5W for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 08:51:21 -0400 Original-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@gnu.org; Tue, 19 Aug 2008 08:51:21 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:59745) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVQgD-0002tz-1S for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 08:51:21 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:38525) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KVQev-0005DX-UQ for bug-emacs@gnu.org; Tue, 19 Aug 2008 08:50:01 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KVQg8-0002sB-Em for bug-emacs@gnu.org; Tue, 19 Aug 2008 08:51:20 -0400 Original-Received: from exprod7og108.obsmtp.com ([64.18.2.169]:53018) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KVQg7-0002qb-F0 for bug-emacs@gnu.org; Tue, 19 Aug 2008 08:51:16 -0400 Original-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 Original-Received: by nf-out-0910.google.com with SMTP id k4so1402909nfd.0 for ; Tue, 19 Aug 2008 05:51:10 -0700 (PDT) Original-Received: by 10.210.28.4 with SMTP id b4mr9778181ebb.138.1219150270047; Tue, 19 Aug 2008 05:51:10 -0700 (PDT) Original-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) User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 19 Aug 2008 09:07:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19538 Archived-At: 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)