bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#739: Suggested small functions to plug symmetry gaps


From: Reuben Thomas
Subject: bug#739: Suggested small functions to plug symmetry gaps
Date: Thu, 12 Apr 2012 21:47:39 +0100

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 via email to

[Prev in Thread] Current Thread [Next in Thread]