From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: format use inquiry Date: Tue, 20 Jun 2017 22:02:50 +0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497971060 32282 195.159.176.226 (20 Jun 2017 15:04:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Jun 2017 15:04:20 +0000 (UTC) Cc: emacs-devel To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 20 17:04:11 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 1dNKhO-0007tk-BP for ged-emacs-devel@m.gmane.org; Tue, 20 Jun 2017 17:04:10 +0200 Original-Received: from localhost ([::1]:49268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNKhT-0005Gg-Iu for ged-emacs-devel@m.gmane.org; Tue, 20 Jun 2017 11:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNKgW-0004oa-Lh for emacs-devel@gnu.org; Tue, 20 Jun 2017 11:03:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNKgS-0000NK-Sw for emacs-devel@gnu.org; Tue, 20 Jun 2017 11:03:16 -0400 Original-Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:33854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNKgS-0000LU-NO for emacs-devel@gnu.org; Tue, 20 Jun 2017 11:03:12 -0400 Original-Received: by mail-wr0-x22b.google.com with SMTP id 77so94662377wrb.1 for ; Tue, 20 Jun 2017 08:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=ZGlRITFL/NAEtFCATdN4kqWS+wBX5pJIvJmfJrS2Sbc=; b=DYgKDGc1uVGYZvVw5RggiDAirLgD1a/QS86Y4zRrmVvC6gsoxrOJUdYjjlHO/AJN3t o/Vo+VfP/wTzsLpGFbKAJeIdQ+EPIPGPJnQlZ0kWt6XTS/5EQdlKavWRdIVCdCoa+Jom 2jhCH5Ww1xlsIPNlferxFWxOvS0PRepASmlVBE87fP3QsBJ2fZ+ivBU0ZwwpfsDJbr3C 7zeZbegBXeuf7pF4VQuXWV85U2ocdpitiSvOzqFHQjl8IZsdsKQGDcNFW5520R0nug1/ WzfBqNbXOHyqXqnQgpLq8GQJD/GUh993ZDTxQFWaKvt1bdLGD5n2+DxGI5GBz6nnATrj ZVCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=ZGlRITFL/NAEtFCATdN4kqWS+wBX5pJIvJmfJrS2Sbc=; b=bcr2RFYUnzTLOAUCvVUvI5AWTSq8nepgSb/Ci3nGHFOGNlkVt9yYtkgDbH319I7VRt Adcwe0gK9h2muXoJO4Iza/v401yOx22vyFXJr25pJLJY2gz4KAd11uxvPKgrexm4xkiP 48VaJ7tKbPX2OxygqrEAQR2FHXBwcysdU7klGOKpHYdr3rwczd5r6CgbOeIfa8arCjnP HhqX0zqwJASIG5TyitDp9aZFKfD3zPQp9SsjzjtZtRAYcx1e1nsVDa46WioaRj8f/BW1 l+eoDKNeCNOsBZk9+XJLaw1hg9cRH+470qjahAu/Tw9AUJDIhKi6ac+uML5xr+qYq84u jpLA== X-Gm-Message-State: AKS2vOx6LzZZzVdzODI31Sw5J27gtmIyO6NJGNaUPMuOztqu89ZUPeAx PMak4M7/GbNtSFb1Cy19Ru2jlZWMIQ== X-Received: by 10.28.91.198 with SMTP id p189mr3007305wmb.97.1497970991330; Tue, 20 Jun 2017 08:03:11 -0700 (PDT) Original-Received: by 10.223.164.93 with HTTP; Tue, 20 Jun 2017 08:02:50 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: OFSB-Tv--k8hzcyXT3ZS_25vL9s X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22b 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:215823 Archived-At: 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: > > (format "http%s://elpa.gnu.org/packages/" > (if (gnutls-available-p) "s" "")) 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. That someone could be you. Spell it out. (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.")