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: Thu, 12 Apr 2012 21:47:39 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334263739 9685 80.91.229.3 (12 Apr 2012 20:48:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 20:48:59 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , 739@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 22:48:57 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 1SIQwn-0006BJ-Rr for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 22:48:53 +0200 Original-Received: from localhost ([::1]:53726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIQwn-0003Zf-1i for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 16:48:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIQwk-0003Za-Av for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 16:48:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIQwh-0004U7-VM for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 16:48:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIQwh-0004U3-Si for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 16:48:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SIQxt-0005Bp-HN for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 16:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Apr 2012 20:50: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.133426374119869 (code B ref 739); Thu, 12 Apr 2012 20:50:01 +0000 Original-Received: (at 739) by debbugs.gnu.org; 12 Apr 2012 20:49:01 +0000 Original-Received: from localhost ([127.0.0.1]:54935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIQwt-0005AI-Mj for submit@debbugs.gnu.org; Thu, 12 Apr 2012 16:49:01 -0400 Original-Received: from exprod7og108.obsmtp.com ([64.18.2.169]:35358) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SIQwq-0005A8-5Q for 739@debbugs.gnu.org; Thu, 12 Apr 2012 16:48:57 -0400 Original-Received: from mail-we0-f174.google.com ([74.125.82.174]) (using TLSv1) by exprod7ob108.postini.com ([64.18.6.12]) with SMTP ID DSNKT4c/bLIW1FcPf4TnIojghMEcxDywWqev@postini.com; Thu, 12 Apr 2012 13:47:41 PDT Original-Received: by wejx9 with SMTP id x9so1511611wej.19 for <739@debbugs.gnu.org>; Thu, 12 Apr 2012 13:47:39 -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=zKKnhYMhZurZ5y+9Lt1puBd/tWguwGotjSrc+K8lRFA=; b=p0y3rPBqraisdJxD5S0kwPyz1Hr6O+ZQCUT++ePQYmXFJPRMRvW031F59PDU8aoLfg k456EsP9ZlfSA9hzvaC5Q1WEX/Sc+NtRTegovdko/PcznZnpVOjBTOkC6GKoBeSg6VZT 8v/3iwG///TJWV98UDgPqDtBczwCz5p+28UiF7zm2EbTAQmj57+Q6vrXPO1uQ9fFSUcy bfXjxaUMY/0owPm5+UmXjCOwfbsi6HX1TY+aq2JQb+OUoRKJZ2VNz2hgkEATdJDdS2sX qJVxw+4JPVQHnmAENKb0RhM/Kpwww9DRbsrZvXBLcLWZUFPTW5cZqVIAHZ6zwD3Flg7m OhRg== Original-Received: by 10.180.82.132 with SMTP id i4mr18951240wiy.12.1334263659090; Thu, 12 Apr 2012 13:47:39 -0700 (PDT) Original-Received: by 10.216.9.70 with HTTP; Thu, 12 Apr 2012 13:47:39 -0700 (PDT) In-Reply-To: X-Gm-Message-State: ALoCoQmBTs1SQ9OoDhjC0E2+IkD87DOLQ3aVgycV9F7weIX1Gb+YbhbNOyXBWRXxZGGg2lgHWQJN 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:58946 Archived-At: On 12 April 2012 19:19, Stefan Monnier wrote: >>>> But, please don't define a new function/command, just put a interactiv= e >>>> 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. =A0Patch welcome. I'm glad to see that although move-to-column is a C function, I don't have to write any C! Diff against bzr head: =3D=3D=3D modified file 'src/indent.c' --- src/indent.c 2012-04-09 13:05:48 +0000 +++ src/indent.c 2012-04-12 20:44:45 +0000 @@ -956,7 +956,7 @@ return val >=3D column; } -DEFUN ("move-to-column", Fmove_to_column, Smove_to_column, 1, 2, "p", +DEFUN ("move-to-column", Fmove_to_column, Smove_to_column, 1, 2, "(list (or current-prefix-arg (read-number \"Goto column: \")))", doc: /* Move point to column COLUMN in the current line. Interactively, COLUMN is the value of prefix numeric argument. The column of a character is calculated by adding together the widths ---cut-here--- --=20 http://rrt.sc3d.org