unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Reuben Thomas <rrt@sc3d.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>, 739@debbugs.gnu.org
Subject: bug#739: Suggested small functions to plug symmetry gaps
Date: Thu, 12 Apr 2012 21:47:39 +0100	[thread overview]
Message-ID: <CAOnWdogq_gZOeDkVW=f6Ziho9yOMe0AJjHr=ByEmoUon7AZsMg@mail.gmail.com> (raw)
In-Reply-To: <jwvobqwrf8v.fsf-monnier+emacs@gnu.org>

On 12 April 2012 19:19, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>>>> 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.  :-)
>> It does, but it could still be extended to prompt for a number if one
>> isn't given;
>
> Agreed.  Patch 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:

=== 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 >= 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---

-- 
http://rrt.sc3d.org





  reply	other threads:[~2012-04-12 20:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 12:51 bug#739: Suggested small functions to plug symmetry gaps Reuben Thomas
2012-04-11 12:23 ` Lars Magne Ingebrigtsen
2012-04-11 13:46   ` Stefan Monnier
2012-04-12 16:06     ` Lars Magne Ingebrigtsen
2012-04-12 16:17       ` Reuben Thomas
2012-04-12 18:19         ` Stefan Monnier
2012-04-12 20:47           ` Reuben Thomas [this message]
2012-04-12 21:21             ` Andreas Schwab
2012-04-12 21:27               ` Reuben Thomas
2012-04-13  6:20                 ` Chong Yidong
2012-04-13 18:52               ` Reuben Thomas
2012-04-16 12:52                 ` Stefan Monnier
2012-04-14 11:32           ` Lars Ingebrigtsen
2012-04-16  2:05             ` Stefan Monnier
2012-04-11 16:04   ` Reuben Thomas
2012-04-11 17:57   ` Drew Adams
2012-04-13  6:25   ` Chong Yidong
2012-04-14 11:33     ` Lars Ingebrigtsen
2012-04-14 13:46       ` Drew Adams
2012-07-14  2:17         ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOnWdogq_gZOeDkVW=f6Ziho9yOMe0AJjHr=ByEmoUon7AZsMg@mail.gmail.com' \
    --to=rrt@sc3d.org \
    --cc=739@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).