From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: master 513c5d827d: Use `format-prompt' in Date: Mon, 05 Sep 2022 15:33:55 +0300 Message-ID: <83v8q2j8zw.fsf@gnu.org> 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> <87pmgadojz.fsf@gmail.com> <831qsqko7t.fsf@gnu.org> <87leqydmxw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35945"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, drew.adams@oracle.com, larsi@gnus.org, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 05 14:43:42 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 1oVBS1-00095W-Jm for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Sep 2022 14:43:41 +0200 Original-Received: from localhost ([::1]:33608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVBS0-00030B-Hs for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Sep 2022 08:43:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVBIw-0000Uk-5I for emacs-devel@gnu.org; Mon, 05 Sep 2022 08:34:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVBIv-0005CR-QN; Mon, 05 Sep 2022 08:34:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SmIAQGSTJK6imbxFY4x+rmWrC46/s6nVV/vnDgAe+0o=; b=P5dwnl2iIftLPBhdMDd1 xGCgLibV4iHkqaM0Iap3O8qCqWRAI4d2rAYa+eMczkUFX6V+VcoChr0eFnRUwGcd0AmW5a8rA8HZA KC93FCjZ/2thePMtxmKDwu5G/VDyxcZIGDpS6HFx3c5DrAMdx1As/4fqhKgDRRq4lWZ+xgtg8VgIz q5Ok+YKVmgtD3bCSmo8c4H+SjqYLPhvRc2KV4cKefyBc8yikyL1+uMFridmto2g214RU8pRjLerxK CcjdR/woh+P2aaoO9GS5Lns0lYdDovjkVeXNJNQtDIzTZQB1G7kd6NASbyu0XptiWqS9lR3sI9g11 r6BK4X1LXk45tg==; Original-Received: from [87.69.77.57] (port=2402 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVBIu-0002Ah-SX; Mon, 05 Sep 2022 08:34:17 -0400 In-Reply-To: <87leqydmxw.fsf@gmail.com> (message from Robert Pluim on Mon, 05 Sep 2022 14:29:15 +0200) 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:294744 Archived-At: > From: Robert Pluim > Cc: rms@gnu.org, drew.adams@oracle.com, larsi@gnus.org, emacs-devel@gnu.org > Date: Mon, 05 Sep 2022 14:29:15 +0200 > > Eli> I didn't suggest anything concrete. However, one possibility would be > Eli> to teach format-prompt to accept keyword arguments. > > My admittedly not well-calibrated lisp tasteʼoʼmeter doesnʼt find > > (format-prompt "Prompt" nil :default "all") > > all that appealing either Then I hope someone will come up with a better idea. My point is that using format-prompt obfuscates the code to some degree, and we should try to find a way of avoiding that, while keeping its advantages.