From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: format use inquiry Date: Wed, 21 Jun 2017 04:51:57 +0900 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497988353 29880 195.159.176.226 (20 Jun 2017 19:52:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Jun 2017 19:52:33 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 20 21:52:29 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dNPCJ-0007Ch-NB for ged-emacs-devel@m.gmane.org; Tue, 20 Jun 2017 21:52:23 +0200 Original-Received: from localhost ([::1]:50427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNPCN-0002eH-FK for ged-emacs-devel@m.gmane.org; Tue, 20 Jun 2017 15:52:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNPC5-0002ON-7s for emacs-devel@gnu.org; Tue, 20 Jun 2017 15:52:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNPC2-0000un-2f for emacs-devel@gnu.org; Tue, 20 Jun 2017 15:52:09 -0400 Original-Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:33762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNPC1-0000ud-T5 for emacs-devel@gnu.org; Tue, 20 Jun 2017 15:52:05 -0400 Original-Received: by mail-pf0-x236.google.com with SMTP id 83so74122233pfr.0 for ; Tue, 20 Jun 2017 12:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=ZDXeJdIKV6X1MAdZGiQIBGE606AG1TF6e3Y9cQPdRPE=; b=J2jir4Z9t+64MUlYJHiu/FLqm8dopLBB1HwJmxkJpmo0PqUhNMxxnzSWDed7OnRf9x NsP9AYdfjsMbcr46lAblJos6pQJUwqiyrQZ/4nmSVQYGNYWjMjDeWq0qeGRGEM7VI3XJ iX1MwzTutsy2Wkk1LSc171g6SfKeNC1xkn+G8jjRfSGq98bZtis31SUpMDlHVnSKIiRn HH/nJ/e/5BG2IucaUr7JPX/smi/dvrqBCdcAFCjSvyF9o9cr3Mw1ZbTfrU1KZ9x5Tr7q RnJT7ccN6zkBWxWR0QmioYmSJgA02o9tooMKEkvo3JBO+MHdAFWlaH8fOcP8Nw5BxM6f 30hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=ZDXeJdIKV6X1MAdZGiQIBGE606AG1TF6e3Y9cQPdRPE=; b=dkgCEYU+8OgdZ/v6YbChLeVCiSsZBwM+2e8uRJIn/zI+UziFOxMqpos5pw2I37oMJW huRRMbGo+OLYccHr1wwt/ybkd6qtrxLAThrBfVbXF2n1n99OLt1qtMavT3iz3RTf3p3t FKut1jIvZF3C4cDp8i0ifrS4ynir0XqF5bxTHAQkN9swBgSoYo4COu8W1FX7fPjpQffj yzmjgopI7WCD+taNbudWQ2eAL+v6WQZriOBWVqxPp/Jcpz3teNf8HYvXCku8f7LrpW/Y hTvinOVq9WCyFqKMwNMDAdXaNawHyCmcehknVSk48+dpGOj18fjJxAXhFUG6OTuYizE7 08Dw== X-Gm-Message-State: AKS2vOyEvY1gAlkZUHbDsyDCW2fK1LbqT5CcYaUzaYz5wta91L095LwC uEo93vSGwPUIElHu+ow= X-Received: by 10.84.224.134 with SMTP id s6mr4702377plj.263.1497988324783; Tue, 20 Jun 2017 12:52:04 -0700 (PDT) Original-Received: from [192.168.24.55] (pl2587.ag0304.nttpc.ne.jp. [128.53.196.27]) by smtp.gmail.com with ESMTPSA id t23sm26718640pgb.25.2017.06.20.12.52.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 12:52:03 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215834 Archived-At: Thank you Yuri. I'm actually back to working on packages.el where there = are some problematic string concatenations and I thought what you just = proposed was a more acceptable way to handle such strings. Thank you for = the confirmation. Jean-Christophe=20 > On Jun 21, 2017, at 0:02, Yuri Khan wrote: >=20 > On Tue, Jun 20, 2017 at 3:48 PM, Jean-Christophe Helary > wrote: >> I'd like to know if that kind of code is acceptable or not: >>=20 >> (format "http%s://elpa.gnu.org/packages/" >> (if (gnutls-available-p) "s" = "")) >=20 > The standard localization argument against concatenating an "s" onto a > word does not apply here. But, one day, someone is going to grep for > occurrences of http:// to see if it=E2=80=99s still used anywhere. >=20 > That someone could be you. >=20 > Spell it out. >=20 > (defvar =E2=80=A6-elpa-root > (if (gnutls-available-p) > "https://elpa.gnu.org/packages/" > "http://elpa.gnu.org/packages/") > "=E2=80=A6some doc=E2=80=A6. http and https schemes are = supported; > https is conditional on GnuTLS.")