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

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

Re: emacs insert icrement numbers


From: Chris McMahan
Subject: Re: emacs insert icrement numbers
Date: Thu, 17 Aug 2006 15:31:41 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Outstanding!! It works like a charm too!

- Chris

wenbinye@gmail.com writes:

> the function gse-number-rectangle use function read-number which is not
> compatible
> with old version. You have to change the line marked as following:
>
>   (interactive
>    (list
>     (region-beginning) ; start
>     (region-end) ; end
>     (if (functionp 'read-number)
> ;; change this line  (read-number "First number [1]: " t "1") to this
>         (read-number "First number [1]: " 1) ; start-at
>       (string-to-int (read-string "First number [1]: " nil nil "1"))) ;
> start-at
>     (read-string "Suffix: " nil 'gse-number-rectangle-history) ;
> suffix-text
>     current-prefix-arg)) ; prefix
>
> Chris McMahan wrote:
>> I was a real fan of this function, but it has ceased to work in the
>> latest versions of emacs.
>>
>> Does anybody have a version that works under emacs-22, or a fix for
>> the existing version (2004.12.22)?
>>
>> Here's the error message I get:
>>
>> if: Wrong number of arguments: #[(prompt &optional default) 
>> "<a string of non-printable characters>" [n default prompt str nil
>> string-match "\\(\\):[ ]*\\'" replace-match format " (default %s)"
>> ...] 8], 3
>>
>> - Chris

...


-- 
     (.   .)
  =ooO=(_)=Ooo=====================================
  Chris McMahan | first_initiallastname@one.dot.net
  =================================================


reply via email to

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