From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: emacs insert icrement numbers Date: Thu, 17 Aug 2006 15:31:41 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: <1155820984.054738.26980@h48g2000cwc.googlegroups.com> <1155822832.705184.223680@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155843775 7615 80.91.229.2 (17 Aug 2006 19:42:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Aug 2006 19:42:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 17 21:42:45 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GDnky-0004qi-Oj for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Aug 2006 21:42:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDnky-0007vE-7B for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Aug 2006 15:42:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader2.panix.com 1155843103 4410 166.84.1.5 (17 Aug 2006 19:31:43 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 17 Aug 2006 19:31:43 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:U0OY1bIV4DQAc65uPOLY8OuSa2k= Original-Xref: shelby.stanford.edu gnu.emacs.help:141116 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36741 Archived-At: 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) >> "" [n default prompt str nil >> string-match "\\(\\):[ ]*\\'" replace-match format " (default %s)" >> ...] 8], 3 >> >> - Chris ... -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net =================================================