From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Confused by y-or-n-p Date: Sun, 27 Dec 2020 18:16:36 +0100 Message-ID: <39fcdf1e-11ec-d5e0-d7f3-fac64621f3f1@gmx.at> References: <834kkcr1eo.fsf@gnu.org> <43b24209-fa65-0e26-7cbd-f99175a7ffd8@gmx.at> <87wnx7j5is.fsf@mail.linkov.net> <83im8qnyca.fsf@gnu.org> <83bleinmse.fsf@gnu.org> <56435592-d2d0-5fb6-977f-01e1931da835@gmx.at> <87k0t38g1z.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32645"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, rms@gnu.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 27 18:17:49 2020 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 1ktZfx-0008O1-Nw for ged-emacs-devel@m.gmane-mx.org; Sun, 27 Dec 2020 18:17:49 +0100 Original-Received: from localhost ([::1]:43956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktZfw-0007i8-QB for ged-emacs-devel@m.gmane-mx.org; Sun, 27 Dec 2020 12:17:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktZes-00075N-Ux for emacs-devel@gnu.org; Sun, 27 Dec 2020 12:16:42 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:59071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktZer-0005Tq-5H; Sun, 27 Dec 2020 12:16:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609089397; bh=AtwfRazjzGTCKq/QCxS2D81EkFPSuzaf2PzDH3r6WJs=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=BK/XAsOsZXeEpCsNU7gTiFsLgbrWGpH8Zef6WQrzLybENLeqUZX/1RBgDSi3xc+/8 OHAbDo/j8idJwdRdnBz+WDMX5dexJ/ip9BVolp20ysvGAsTgEZK69hh2fFLuUt4pL4 dJjCyNJkZBvVdOCpF+rbixtcASxyNC99dUfcXDnY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.7]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MMofW-1kd0i03Qvc-00IonY; Sun, 27 Dec 2020 18:16:36 +0100 In-Reply-To: <87k0t38g1z.fsf@mail.linkov.net> Content-Language: en-US X-Provags-ID: V03:K1:WzzTQrJ4iowP5DKqy/xxyfSgX9KrABeY+gzgMhx3xYGgR8BdbTz ovx+ollE72Y4F4wk4UvDPbHln3WMyxQxkCcjbNaetzkzzLvpt/MA85mTthU+00npvoCsmKZ 2a5hIaOnzti1xNXfvRalYWygAdQtLdHr2H465YrmPuQ3a14qn1IHjBr5k13Y4g4o+EYueM8 Q1SHOV8tRsoDPhVH3Kh5w== X-UI-Out-Filterresults: notjunk:1;V03:K0:fIDHjWccKQc=:41ySYzo31Q2lRvKNI9Pty/ lc5a6TCUXW/gk+tTPRkRZmSww2TMMfOd6wGT5MIiPalC0QGwO3/wcw79Pr/zht11GhlvseqVV nXjTFpynFZ6mtHGP9IszYYt6moBz1EGRFpx2iyjV+87p9hTKESN1TCTFhOlg1aHXTS3UeZaSi A69yyhefszmUUnajBR/ToPb6AoARgS4LCJBM3ENBswRKFroUyYDb3AZkzpIVzQaQr9HWgrHTu rlvPSlTuNiM9eK25EXeVt9rg4ipe+gc4N8DAZ1SpsI6Wu7x9pCHEZFSyz6urgjxhZlJfHRLgZ CUyDHSczm9TOEDNR2kyfoxvQXW4n6KhgVAfGwdFC+nxePXCM0hkhiIkFH5mFdB1UyxWpEP6te M6BtkF+9ZEPD2qegg2NfZIOHnanSTWl7npjPucW4i9K2NxTlK2IDn5TVbEWARWR90zBkYXkV4 lvNsU9Hw0E4J4CKreGvPEEXERh7Sq37Ofxs91gkgzoa4tlpWmJ0zKrPNZh5kakC4hXCeiHT19 Hom7H8AiW1w5LwPm8XWQmN7a9NEcx6LnEeK/dCftZg3NfWwvfgsCjG6NMrMo2GYNq7lLsMbVa wNVJW4rlyPUmmpFPpuIN5HQ6yZzos7hgeeSVaHm9rpDL2+TK7XY8GsWEKIHetLGUwcqbiXHzV Qxn0ccxHz8/N11Ywj/OXVyYUuLJe3DQM73iuTzDCKuWa1U/RkV+ppF6uuP5MgzSiJff9UeWcB 2zm8F1nDaHHKps0FuV+VsS+ANX4+1rOc9d4XteqnqzNuvh9PfO2qqjr5fecec2BSCHvwilIw Received-SPF: pass client-ip=212.227.15.19; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: 7 X-Spam_score: 0.7 X-Spam_bar: / X-Spam_report: (0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:261908 Archived-At: > This is exactly what we recently did for the function 'read-char-choice'. > Instead of changing its long-standing implementation that uses 'read-key', > we left it unchanged, and only changed its caller to rely on a different > function that uses the minibuffer to read a character. Do you mean 'dired-query' and 'zap-up-to-char'? > The same way we could add a function with old implementation of 'y-or-n-p', > and depending on an option use either of them. So two new options are > needed: to select an implementation of y-or-n-p and and also an option > to choose either to use yes-or-no-p or y-or-n-p with shorter answers. This would be OK I think. With the "use the old implementation" option going to Emacs 27.2 and the use 'y-or-n-p' instead of 'yes-or-no-p' to master. > Or maybe just one variable with three choices: long answers with yes-or-no-p, > short answers with read-key, short answers with the minibuffer. This would probably bother both conservative and more adventurous users with something they'd never want. martin