From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rturrado" Newsgroups: gmane.emacs.help Subject: query-replace-regexp number number+1 Date: 11 Apr 2006 09:04:59 -0700 Organization: http://groups.google.com Message-ID: <1144771499.122669.267040@v46g2000cwv.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1144773682 16039 80.91.229.2 (11 Apr 2006 16:41:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Apr 2006 16:41:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 11 18:41:14 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 1FTLvL-0006Na-DX for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Apr 2006 18:41:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FTLvL-0004L5-4M for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Apr 2006 12:41:03 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v46g2000cwv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 9 Original-NNTP-Posting-Host: 212.23.25.139 Original-X-Trace: posting.google.com 1144771504 19280 127.0.0.1 (11 Apr 2006 16:05:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 11 Apr 2006 16:05:04 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040804 Firefox/0.9.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: v46g2000cwv.googlegroups.com; posting-host=212.23.25.139; posting-account=hyxrEQ0AAAA94yr7l0YbguHTweAwrwLu Original-Xref: shelby.stanford.edu gnu.emacs.help:138692 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:34311 Archived-At: Hi, I wonder if you can do that easily in emacs: to search for a number, let's say \([0-9]+\), and replace it with its successor, let's say \1+1. The query I've just written would replace 25 with 25+1. What I want is to evaluate 25+1 and replace 25 with 26. Thanks, Roberto.