From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: execute function in replace-regexp Date: Sun, 1 Oct 2017 10:49:32 +0200 Message-ID: <20171001084932.GA17746@tuxteam.de> References: <864lrjwo0b.fsf@zoho.com> <20171001075500.GC16509@tuxteam.de> <86o9pruujc.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1506847808 7678 195.159.176.226 (1 Oct 2017 08:50:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 1 Oct 2017 08:50:08 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 01 10:50:04 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyZwp-0001UC-5V for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Oct 2017 10:50:03 +0200 Original-Received: from localhost ([::1]:41581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyZwu-00025f-Mm for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Oct 2017 04:50:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyZwO-00025X-SN for help-gnu-emacs@gnu.org; Sun, 01 Oct 2017 04:49:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyZwM-0006zG-5H for help-gnu-emacs@gnu.org; Sun, 01 Oct 2017 04:49:36 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:53466 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyZwL-0006y2-Ui for help-gnu-emacs@gnu.org; Sun, 01 Oct 2017 04:49:34 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1dyZwK-00055w-4B for help-gnu-emacs@gnu.org; Sun, 01 Oct 2017 10:49:32 +0200 In-Reply-To: <86o9pruujc.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114490 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Oct 01, 2017 at 10:44:23AM +0200, Emanuel Berg wrote: > t wrote: > > > - There should be no space between the comma > > and the paren: \,(...) > > > > - I *think* you should string-quote the \1 > > (the \1 itself gets, AFAIR, replaced > > literally: to have correct elisp you need > > quotes, but I might be wrong on that) > > > > This would make: > > > > \,(downcase "\1") > > Did you get it to work? I did :) Well, I admit I did a cursory test before spamming the list, yes :-) > (progn [...] Hmmm... Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlnQrBwACgkQBcgs9XrR2kYJ0wCeLdDUIB0QFHdM31jeNWFpWHZE 4FgAninL8sw78P+SNrunG2tFiOb5jeMK =ikcK -----END PGP SIGNATURE-----