From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to tame compiler? Date: Sat, 01 May 2021 09:38:22 -0400 Message-ID: References: <875z03th9b.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2581"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 01 15:39:23 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcpq7-0000ZU-2f for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 15:39:23 +0200 Original-Received: from localhost ([::1]:54812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcpq6-0007Xl-5q for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 09:39:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcppF-0007X9-9f for help-gnu-emacs@gnu.org; Sat, 01 May 2021 09:38:29 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcppC-00033h-4S for help-gnu-emacs@gnu.org; Sat, 01 May 2021 09:38:28 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A29C74401FA; Sat, 1 May 2021 09:38:24 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 38C01440481; Sat, 1 May 2021 09:38:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1619876303; bh=nXLaBhmYJXPOlDkUW762QhgO8kU1zlvjveG4xQcU2Oo=; h=From:To:Subject:References:Date:In-Reply-To:From; b=GncjAj47sDoOs1CitghUngZ4eSE/eH+y4ufWWNYV+C6nXz/T/2A3mQ7siMms2WuTl Mr3S8wVPldYskL9yxCwhjtFg6RKHRAQ2Q+eKCSihfrP7qCB9PTLfrrIKAcbXImbyAA 8W7tY32mpIV6wnXN9KTa2oKAcJUzXslAzuowD44Num1x954zGSq7uNpNWlSw+kLucC hsHlwR3PV/gv5AoZ4pvQnsILHiV6OrOl8CndSTiutf9nBhQr2h8hPrDOCOUXsIFlTZ 0CzcGjHDhTFKm85vm8nO9J83zpIF2SXHcrX5FXHP9zU029S0QJmkGUkWUDTxVa5ZuY WrOVOXS/yrE7A== Original-Received: from alfajor (unknown [108.161.125.61]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 12D741201C3; Sat, 1 May 2021 09:38:23 -0400 (EDT) In-Reply-To: (Jean Louis's message of "Sat, 1 May 2021 09:34:06 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, CONTENT_AFTER_HTML=1.145, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129280 Archived-At: > I have to understand it in this example: >=20=20=20 > The HTML template is following and it is string: > > > > =E2=9F=A6 xml-escape title =E2=9F=A7 > > >

Today is one US dollar this many euros: =E2=9F=A6 usd-eur 1 =E2= =9F=A7

> > I think the way I'd attack this is similar to what was suggested recently. I think I'd introduce a macro (call it `xml-template`) which you'd use maybe as follows: (xml-template (html (head (title ,title)) (body (p "Today is one US dollar this many euros: " ,@(usd-eur 1))))) where `,` is used to insert a random chunk of plain text, whereas `,@` is used to insert a chunk of XML. Stefan