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 09:20:01 +0900 Message-ID: <985B0D3E-3E31-4419-A53C-8FA3299587C2@gmail.com> References: <7e7f068e4e.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498005724 22712 195.159.176.226 (21 Jun 2017 00:42:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2017 00:42:04 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 21 02:42:01 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 1dNTia-0005Su-IQ for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2017 02:42:00 +0200 Original-Received: from localhost ([::1]:51236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNTib-0003Zy-PP for ged-emacs-devel@m.gmane.org; Tue, 20 Jun 2017 20:42:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNTiU-0003Zr-QF for emacs-devel@gnu.org; Tue, 20 Jun 2017 20:41:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNTiR-0007cK-OS for emacs-devel@gnu.org; Tue, 20 Jun 2017 20:41:54 -0400 Original-Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]:32935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNTiR-0007c1-IU for emacs-devel@gnu.org; Tue, 20 Jun 2017 20:41:51 -0400 Original-Received: by mail-pg0-x22d.google.com with SMTP id f185so69825654pgc.0 for ; Tue, 20 Jun 2017 17:41:51 -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=SeOz3kO8hCNeOFCx5TQrweFViDA8tXiwHgvelZpmieA=; b=Vl1sPX5ZXr2KtrSpd0fB7gEVMZYkxz11vLnuNO+G1Zk8gaB++a7YBvnGt+SlJ9z+Ps fhwh9DEOwkpZqfVo+Pb1t/Cb/Fm8pug1S+MMqwKz+ZbT1vmXtijhf7tXMeYyd5J+HAmE k8rgKmGNsfwWaOkrs8nR9coIjhaTxW9fiqzioi2KRKK9giedGyaVNVRhFDJgRkwSI5Ez 6No8UOYZOmOFXlYnjtFPB+6zOkzwf2oJm1G5WhFlO9aNdJezmBMJa5vmJQTi3ezXh7PJ LbUBGU+YWJ833fw1KQXEOkSarejnwIv0ALMpxi9qE9Lsx0C/4hp7L/RBsNnDWW0cKq38 LZKQ== 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=SeOz3kO8hCNeOFCx5TQrweFViDA8tXiwHgvelZpmieA=; b=IjmZ/RDKwR2dJ4cBG3EGV/VzerE3lVrJYUbp+niAhnmBKVQRKU8Ayy7DKVcl1TktYm zAs7lh6ks5a/QQTN+RWEAKQDq+ZFoBWsM/Qp1f9kdhm7X92CONpc8AOSFR5f4LWLZWqX +if40mU8N9anPw3QRgIHjnQpcQu0ouD3I8BkQrx5gdXKF4XNEqS4eQM7NaZrDIImAfWm 7b6/NV1QREY653mR2tR3lUnhVkPB97ATYU2XBRsKt09v7qqLbHePirDKLoAXVcq8hOGt v+ows79ccuGalN6iOAP3w+bjvy3fgiMK35KiKzTTCmcGfsdgElKjaI9QruiwYyIeEUt9 6lPA== X-Gm-Message-State: AKS2vOzLuJhrwv3h+SU7n0AlEpLww6PDiLxDOrdfw7tjjPu8E3nq7IqO xcURE34UWRl7kWhYCoM= X-Received: by 10.98.204.150 with SMTP id j22mr32979009pfk.236.1498005710366; Tue, 20 Jun 2017 17:41:50 -0700 (PDT) Original-Received: from [10.254.2.129] ([210.160.37.44]) by smtp.gmail.com with ESMTPSA id l72sm11618850pfg.97.2017.06.20.17.41.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 17:41:49 -0700 (PDT) In-Reply-To: <7e7f068e4e.fsf@fencepost.gnu.org> 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:c05::22d 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:215840 Archived-At: > On Jun 21, 2017, at 7:53, Glenn Morris wrote: >=20 > Jean-Christophe Helary wrote: >=20 >> 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 > Yes, it is. But obviously I think that, since I wrote it. Thank you for the comment. Actually I've been checking package.el for code that is used to simulate = natural language features, after finding a number of issues with plurals = and singulars. I started doing that at the same time the discussion on i18n and l10n = started because when we have the i18n infrastructure in place we'll have = to rethink the way messages are written. The above example is not directly related to that effort since it won't = be a string used for translation but it illustrates a strong tendency in = package.el where you can find "s" added to a string if the related value = is 2 or above, "ing" or "ed" added to a string depending on the status = of the operation, etc. That makes for really smart code but it is = absolutely untranslatable. So a few weeks ago I set myself to straighten up the problematic strings = and as far as the one I inquired about here is concerned I'd rather have = the urls are fully spelled out because it makes the code more readable. Would you object to that ? Jean-Christophe=