From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: How modify numbers in a region by a multiplier? Date: Fri, 2 Jul 2010 11:33:12 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278063296 30988 80.91.229.12 (2 Jul 2010 09:34:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2010 09:34:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Seweryn Kokot Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 02 11:34:53 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OUce2-0007tQ-Nk for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jul 2010 11:34:51 +0200 Original-Received: from localhost ([127.0.0.1]:59446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUce1-0000GT-Fg for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jul 2010 05:34:49 -0400 Original-Received: from [140.186.70.92] (port=42831 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUcco-0008WC-Rl for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 05:33:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUccn-00015X-KF for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 05:33:34 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:44182) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUccn-00015O-Ee for help-gnu-emacs@gnu.org; Fri, 02 Jul 2010 05:33:33 -0400 Original-Received: by bwz9 with SMTP id 9so1831528bwz.0 for ; Fri, 02 Jul 2010 02:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=BJC2wYqU/D0xrx0QIQ0xXl0mDMOm8QAyfvCnMK++dh0=; b=poEylbqBagIv1+QKiWKybCzxKEQ5fVh4ttDICBpHV/dv2B+HBORkN/FYkqHw0sWpTq KM9inc8Py+O2viWv7uLSUIsiYiLx4exyaek0iNqrsJ/irHkVNbfjN7DAM2uNgN0nHzyP tKAG2p9iHz6r43w1NohtsHEz3WxOBirop0F8E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=M2Pz5064G5n/sPeGHPt7b4jfh91fmjyTp3g26Hw3TxY3jDc4jMLF6VXXgUcsVEfs8b pWWK5YsmpIhx+OYuffhDolvkNtSEZfZuQwGTQkGVX3DwUAlucfJFBBTW4gNbF5o1yBr8 ScR9Sg8QUIHv2lsfBXlUnYxr3JDiPLeqWfnoE= Original-Received: by 10.204.81.215 with SMTP id y23mr392267bkk.78.1278063212256; Fri, 02 Jul 2010 02:33:32 -0700 (PDT) Original-Received: by 10.204.66.77 with HTTP; Fri, 2 Jul 2010 02:33:12 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:74047 Archived-At: On Fri, Jul 2, 2010 at 08:41, Seweryn Kokot wrote: > =C2=A0 =C2=A0 =C2=A0(setq end (point-max))) > =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq end-mark (copy-marker end)) There's `point-max-marker'. > =C2=A0 =C2=A0 =C2=A0 =C2=A0(while (re-search-forward "\\([0-9.]+\\)" (mar= ker-position end-mark) t) In many cases, you can pass a marker to an Emacs primitive as if it were a number; i.e., > (while (re-search-forward "\\([0-9.]+\\)" end-mark t) should work. Juanma