From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joakim Hove Newsgroups: gmane.emacs.help Subject: Re: How to PICK the CTRL-u argument from the file or some other method, with EXAMPLE Date: Fri, 24 Sep 2004 09:19:16 +0200 Organization: University of Bergen Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096010656 8772 80.91.229.6 (24 Sep 2004 07:24:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2004 07:24:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 24 09:24:05 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAkR3-0003fg-00 for ; Fri, 24 Sep 2004 09:24:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAkX7-0003iO-Ve for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Sep 2004 03:30:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!feed.news.tiscali.de!uninett.no!nntp.uib.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: termo1.fi.uib.no Original-X-Trace: toralf.uib.no 1096010351 30753 129.177.39.206 (24 Sep 2004 07:19:11 GMT) Original-X-Complaints-To: abuse@uib.no Original-NNTP-Posting-Date: 24 Sep 2004 07:19:11 GMT User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:0QxS4A+4uA2z2weXEfPGrxuxqpA= Original-Xref: shelby.stanford.edu gnu.emacs.help:125501 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20856 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20856 jose@Aumara.zzn.com (Jose Cuthberto) writes: >>[...] I would want to avoid writing a loops, and vars etc. Well, if you are willing to relax this requirement you could look into the functions/forms: (string-to-number string) (buffer-substring-no-properties p1 p2) (dotimes (i max-count) ) (looking-at REGEXP) (match-string match-nr) and cook something up. > still waiting for a solution Now - that's an attitude for getting free support! -- Joakim Hove hove AT ift uib no +47 (55 5)8 27 90 http://www.ift.uib.no/~hove/