From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: using lisp in replacement string Date: Wed, 24 Dec 2014 16:52:33 +0200 Message-ID: <549AD331.3030008@yandex.ru> References: <549ACD51.300@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1419441552 24306 80.91.229.3 (24 Dec 2014 17:19:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Dec 2014 17:19:12 +0000 (UTC) Cc: help-gnu-emacs To: Guido Van Hoecke Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 24 18:19:04 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y3paO-00081D-Td for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Dec 2014 18:19:01 +0100 Original-Received: from localhost ([::1]:49075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3paN-0001vV-Vr for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Dec 2014 12:18:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3nIo-0008AY-1v for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:52:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3nIi-0006YG-Qr for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:52:41 -0500 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:46337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3nIi-0006YC-KH for help-gnu-emacs@gnu.org; Wed, 24 Dec 2014 09:52:36 -0500 Original-Received: by mail-wi0-f180.google.com with SMTP id n3so13747502wiv.13 for ; Wed, 24 Dec 2014 06:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=iA+rqqPqMRBEG52x3UoU8PnOawawKg1RV3aEXgdhoVo=; b=u6poZn69YTq5xK4VIhV+76dI5aprB7bkqTxoKoFrO44yikvqrhCkbKnBpC8HXqO0Ts f751YwVs4hr61KdcFo2h/YADlblhp+1eCzWAduUgFMW+GLSsTdiFx2rh8xAmwmyLKJOU 6zgP1wN1lWXLNUJn/Nc5dW57Mj8XyqY+wSTev1yJDl0ZRlSuiua80ySawUGBWjOjR3Pb FXmZ4D2vjqueYEOGUhu+EX3FqMlBnBADLoF1Eh9XtMvc0aRDvFQwBQGi8o0OM0nWbDij +n3IC6TwrPKcUaMSgbwLmAdjkS1Qw2CBR0zrhdJ4t3RwwfCxgHibkHHx2gg2R8AYYmQZ 8QZg== X-Received: by 10.194.60.70 with SMTP id f6mr25742405wjr.109.1419432755967; Wed, 24 Dec 2014 06:52:35 -0800 (PST) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id q7sm21457763wiv.8.2014.12.24.06.52.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Dec 2014 06:52:35 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::234 X-Mailman-Approved-At: Wed, 24 Dec 2014 12:18:46 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101716 Archived-At: On 12/24/2014 04:40 PM, Guido Van Hoecke wrote: > ​Not really, if you quote it, it replaces the formulas by the calc-eval > expression :( If you don't quote it, it's not a string. Anyway, check out these lines from `replace-regexp' docstring: "This function is for interactive use only; in Lisp code use `re-search-forward' and `replace-match' instead." ... "In interactive calls, the replacement text may contain `\,'" You're not using it interactively.