From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: master 513c5d827d: Use `format-prompt' in Date: Wed, 07 Sep 2022 12:03:48 +0200 Message-ID: <87tu5jbiwr.fsf@gmail.com> References: <83ilm4om39.fsf@gnu.org> <87r10sizhc.fsf@gnus.org> <83fsh8ol0v.fsf@gnu.org> <87ilm4iyeh.fsf@gnus.org> <8735d6fcqz.fsf@gmail.com> <83a67ekpx9.fsf@gnu.org> <83a67ck7a4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20570"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , drew.adams@oracle.com, larsi@gnus.org, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 07 12:05:33 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oVrw4-00050b-AH for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Sep 2022 12:05:32 +0200 Original-Received: from localhost ([::1]:51660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVrw2-0000JR-Hn for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Sep 2022 06:05:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVruU-00082U-4j for emacs-devel@gnu.org; Wed, 07 Sep 2022 06:03:54 -0400 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:37513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVruS-0007TN-Fx; Wed, 07 Sep 2022 06:03:53 -0400 Original-Received: by mail-wm1-x335.google.com with SMTP id i186-20020a1c3bc3000000b003b2973dafb7so71171wma.2; Wed, 07 Sep 2022 03:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=BX9A35Ts3Zqzc87r7kVDClceJ1izLgBy3gZKJJz/vZw=; b=R/ac2pAiYZZWjfZKUTdovzlgMmdIt3CS7N4+qiW37kiSWCbVKnsPEhgQdgDrDCxFzi f/NdxXZwIAwE1xGOuUzcgIbMoGVbz9S/Mq3Q5ekzCLmjMUMEcLSB3dXkV9hO/zjj3+cv Xu6CghJvGrJZLSoPaC0Mnn6Q0bmIhtpX0+G1XH2L47by7bQrgKRseStZTiIk1Sm7bEaI cCoVlkfm7An2TWyn7Ok8u4ZktgyrGrXuWUWhdag8SgRqm7A8BcJVGH0Q8mvcB7e6LO50 TSy15vyAZwm/K/BwpYkLdyxezrYHCrwWnvPfZSxesbgen0honrCbucFGWDseasYXRqFM RZ1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=BX9A35Ts3Zqzc87r7kVDClceJ1izLgBy3gZKJJz/vZw=; b=TMNbV+yae2wooQSCSBOBxW/EYi6/BIG2uhgPf9WI7NrCVDFLXHs0odVp/i8w5o7aTn z42bTxRO6jrewh34T0WGy2tVyrRpVHTzzGu6gEkrlSVXBf4i5Qf9v84DJcxvLfNzHHkI VDc1zfXMJEvn0w2Q3xxARvSrfXv9m3fHr9WHe+ef7zCIOYuQzj30AnfHhbt5x5bypN2K XZlpAWl1Js4tQ16WQE8lEMV6ntei1TwHIHCB7H1MIh+2zh2rq/rE0IbrKzaJM/T60VLt AubPCmpxCE/TQXSUno/wjCUNVR6WSweDr1yUHWyt4Yw1mUDZn1dro4LBl1ot+GAin/H0 dlpg== X-Gm-Message-State: ACgBeo3x4pY+SeJ44K+TN4OmpXnRlYQMp5vxYFDld20OPmeoLq3zzeAx 7GtptRFRMAoVZ8npV5zfIjYmn1N6n3c= X-Google-Smtp-Source: AA6agR4bb1vXZb10ckFjYkj1kcJjnwa3Ld73KQLvNxhODKztvSies2R2OBx06EBsKZvvFCOqgYi2hQ== X-Received: by 2002:a1c:6a0a:0:b0:3a5:bcad:f2cc with SMTP id f10-20020a1c6a0a000000b003a5bcadf2ccmr16297691wmc.74.1662545029990; Wed, 07 Sep 2022 03:03:49 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:1a83:d106:c1f4:476c]) by smtp.gmail.com with ESMTPSA id c8-20020a7bc008000000b003a31ca9dfb6sm21694670wmb.32.2022.09.07.03.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 03:03:49 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Tue, 06 Sep 2022 22:23:03 -0400") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=rpluim@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294820 Archived-At: >>>>> On Tue, 06 Sep 2022 22:23:03 -0400, Richard Stallman said: Richard> [[[ To any NSA and FBI agents reading my email: please consider ]]] Richard> [[[ whether defending the US Constitution against all enemies, ]]] Richard> [[[ foreign or domestic, requires you to follow Snowden's example. ]]] >> Not only that. The readability is also diminished. Compare >> (read-char-by-name >> "Unicode name, single char, or hex, default all: " t)) >> with >> (read-char-by-name >> (format-prompt "Unicode name, single char, or hex" "all") >> t) >> To me, the first one tells very accurately what will the user see as >> the prompt, while the second doesn't. Richard> To be fair, the two arguments of `format-prompt' have a clear semantic Richard> distinction. The first is the general description of the argument to Richard> be read, and the second is its default value. Yes. What this particular instance obscures is that the second argument is generally not a literal string, but a variable, so any general translation could only be applied to the first argument. Also: (format-prompt PROMPT DEFAULT &rest FORMAT-ARGS) so that also applies to all the FORMAT-ARGS. Robert --