From unknown Mon Sep 08 01:47:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9557 <9557@debbugs.gnu.org> To: bug#9557 <9557@debbugs.gnu.org> Subject: Status: 24.0.50; "y-or-n-p" does not clear the echo area Reply-To: bug#9557 <9557@debbugs.gnu.org> Date: Mon, 08 Sep 2025 08:47:59 +0000 retitle 9557 24.0.50; "y-or-n-p" does not clear the echo area reassign 9557 emacs submitter 9557 Dani Moncayo severity 9557 normal tag 9557 notabug wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 05:25:08 2011 Received: (at submit) by debbugs.gnu.org; 20 Sep 2011 09:25:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5wZf-0004O5-Fb for submit@debbugs.gnu.org; Tue, 20 Sep 2011 05:25:07 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5wZc-0004Nw-1A for submit@debbugs.gnu.org; Tue, 20 Sep 2011 05:25:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5wUe-0002Ct-Rg for submit@debbugs.gnu.org; Tue, 20 Sep 2011 05:19:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:52128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5wUe-0002Cp-QE for submit@debbugs.gnu.org; Tue, 20 Sep 2011 05:19:56 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5wUd-0003cS-QR for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2011 05:19:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5wUc-0002Cc-UL for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2011 05:19:55 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:58802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5wUc-0002CY-QQ for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2011 05:19:54 -0400 Received: by gya6 with SMTP id 6so223760gya.0 for ; Tue, 20 Sep 2011 02:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=YVYcqJl21IVP8zsfstTOzq/Nmu9FHBkclO470MTLFAc=; b=q+VjEWUb0IocTgWWu6CajWM126CMgIIzOnqvWGGkyN4Qjxf/l8tYk/Dkc/f/2RCAQQ +8mnjb9NZ3a9H/ikNHa6zBBhOkyOl/shcNRSRfWFU+Ss6EzpbUhOs3YoSXjlJ/cvwPBq +P9rOX+GK6Nao1iyyaJSDMuJLqTNwNPIxfzl0= MIME-Version: 1.0 Received: by 10.236.75.227 with SMTP id z63mr2888584yhd.55.1316510394518; Tue, 20 Sep 2011 02:19:54 -0700 (PDT) Received: by 10.236.207.6 with HTTP; Tue, 20 Sep 2011 02:19:54 -0700 (PDT) Date: Tue, 20 Sep 2011 11:19:54 +0200 Message-ID: Subject: 24.0.50; "y-or-n-p" does not clear the echo area From: Dani Moncayo To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) Hi, In my init file, I have `(fset 'yes-or-no-p 'y-or-n-p)' in order to speed up the "yes/no" answers. But I've just seen a minor problem associated to it. >From "emacs -Q": 1. Eval: (fset 'yes-or-no-p 'y-or-n-p) 2. Visit some file. 3. M-x revert-buffer y --> (Expected) The echo area ends up empty (as happens if you omit step #1). --> (Observed) The echo area remains with a residual text "Revert buffer from file ? (y or n) y". In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-09-12 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt' -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 05:43:32 2011 Received: (at 9557) by debbugs.gnu.org; 20 Sep 2011 09:43:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5wrT-0004nk-Rk for submit@debbugs.gnu.org; Tue, 20 Sep 2011 05:43:32 -0400 Received: from mail-out.m-online.net ([212.18.0.9]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5wrR-0004nb-BP for 9557@debbugs.gnu.org; Tue, 20 Sep 2011 05:43:30 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 790431C02BBE; Tue, 20 Sep 2011 11:38:22 +0200 (CEST) X-Auth-Info: eb/oryYLyyHVwskOt4qPShw3VWUCxxtQmhY362+cKNY= Received: from linux.local (ppp-93-104-141-61.dynamic.mnet-online.de [93.104.141.61]) by mail.mnet-online.de (Postfix) with ESMTPA id 61EFD1C0030F; Tue, 20 Sep 2011 11:38:22 +0200 (CEST) Received: by linux.local (Postfix, from userid 501) id F1A551E5427; Tue, 20 Sep 2011 11:38:21 +0200 (CEST) From: Andreas Schwab To: Dani Moncayo Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area References: X-Yow: Is it NOUVELLE CUISINE when 3 olives are struggling with a scallop in a plate of SAUCE MORNAY? Date: Tue, 20 Sep 2011 11:38:21 +0200 In-Reply-To: (Dani Moncayo's message of "Tue, 20 Sep 2011 11:19:54 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9557 Cc: 9557@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Dani Moncayo writes: > 1. Eval: (fset 'yes-or-no-p 'y-or-n-p) > 2. Visit some file. > 3. M-x revert-buffer y > --> (Expected) The echo area ends up empty (as happens if you omit step #1). Since yes-or-no-p doesn't use the echo area (it uses the minibuffer) you cannot compare it with y-or-n-p. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 05:48:51 2011 Received: (at 9557) by debbugs.gnu.org; 20 Sep 2011 09:48:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5wwd-0004v7-4T for submit@debbugs.gnu.org; Tue, 20 Sep 2011 05:48:51 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5wwa-0004uz-MA for 9557@debbugs.gnu.org; Tue, 20 Sep 2011 05:48:49 -0400 Received: by ywa6 with SMTP id 6so197233ywa.3 for <9557@debbugs.gnu.org>; Tue, 20 Sep 2011 02:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4NzzNsWzmESFExLM6+yhfXZnSMiDCWbZuIB9aXYd4P0=; b=u2qL2ALrRCAzBv4RAiDAwmWwYXXcT1mRSD1tqAP4xBbqxqF/EZvucXpeTW804AFoam GnGcKQSu2scnMB0bMfkXz2NJevYCKxRwOmwHrP4RWuKZFmg4humsBcn+DO9URqWkHtVu S/2N/JafiJxQFa6SwM29pusa9/mAtZl11vIGo= MIME-Version: 1.0 Received: by 10.236.129.165 with SMTP id h25mr3085195yhi.38.1316511822150; Tue, 20 Sep 2011 02:43:42 -0700 (PDT) Received: by 10.236.207.6 with HTTP; Tue, 20 Sep 2011 02:43:41 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Sep 2011 11:43:41 +0200 Message-ID: Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area From: Dani Moncayo To: Andreas Schwab Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 9557 Cc: 9557@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) > Since yes-or-no-p doesn't use the echo area (it uses the minibuffer) you > cannot compare it with y-or-n-p. The question is: from an user POV, is there a way to achieve the behavior I want (short answers), without the "residual text" problem? -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 06:06:10 2011 Received: (at 9557) by debbugs.gnu.org; 20 Sep 2011 10:06:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5xDK-0005Jp-Vs for submit@debbugs.gnu.org; Tue, 20 Sep 2011 06:06:08 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5xDI-0005Jg-OB for 9557@debbugs.gnu.org; Tue, 20 Sep 2011 06:06:05 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R5x8M-0002Oc-GU; Tue, 20 Sep 2011 06:00:58 -0400 Date: Tue, 20 Sep 2011 06:00:58 -0400 Message-Id: From: Eli Zaretskii To: Dani Moncayo In-reply-to: (message from Dani Moncayo on Tue, 20 Sep 2011 11:19:54 +0200) Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area References: X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9557 Cc: 9557@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > Date: Tue, 20 Sep 2011 11:19:54 +0200 > From: Dani Moncayo > > 1. Eval: (fset 'yes-or-no-p 'y-or-n-p) > 2. Visit some file. > 3. M-x revert-buffer y > --> (Expected) The echo area ends up empty (as happens if you omit step #1). > --> (Observed) The echo area remains with a residual text "Revert > buffer from file ? (y or n) y". y-or-n-p deliberately displays the prompt with your response before it returns to the caller, see the source. It does that because otherwise you would not have a chance of observing your response. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 06:07:18 2011 Received: (at 9557) by debbugs.gnu.org; 20 Sep 2011 10:07:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5xEU-0005Ld-5l for submit@debbugs.gnu.org; Tue, 20 Sep 2011 06:07:18 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5xER-0005LV-1q for 9557@debbugs.gnu.org; Tue, 20 Sep 2011 06:07:16 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R5x9U-0002QL-5w; Tue, 20 Sep 2011 06:02:08 -0400 Date: Tue, 20 Sep 2011 06:02:08 -0400 Message-Id: From: Eli Zaretskii To: Dani Moncayo In-reply-to: (message from Dani Moncayo on Tue, 20 Sep 2011 11:43:41 +0200) Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area References: X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9557 Cc: 9557@debbugs.gnu.org, schwab@linux-m68k.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > Date: Tue, 20 Sep 2011 11:43:41 +0200 > From: Dani Moncayo > Cc: 9557@debbugs.gnu.org > > The question is: from an user POV, is there a way to achieve the > behavior I want (short answers), without the "residual text" problem? If you really don't want to see your response, write your own function that calls y-or-n-p, clears the echo area (by displaying an empty message), then returns the value returned by y-or-n-p. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 06:32:27 2011 Received: (at 9557) by debbugs.gnu.org; 20 Sep 2011 10:32:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5xcp-0005wv-0i for submit@debbugs.gnu.org; Tue, 20 Sep 2011 06:32:27 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5xcm-0005wo-EW for 9557@debbugs.gnu.org; Tue, 20 Sep 2011 06:32:25 -0400 Received: by yxt33 with SMTP id 33so208285yxt.3 for <9557@debbugs.gnu.org>; Tue, 20 Sep 2011 03:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=OlTxvCZ37m1mYy/yDMHmIzID7r4oquwg5KDQw6/NpYQ=; b=dTQCU1UcEz+rwHsYxmrAx8+7hOAYnorjnsMy1SgvK94Lh23p42927AkVJA1015Qt7K X9uTrDuaZNHWHvcNDRNmaN2XQn0hU0RdiaXFrImbMrRgx48krZ6aHN5BpzHQ5pmFM33j 42UOIsYdGpuCfGs+YVZBoLCyXbRykTThPFjzg= MIME-Version: 1.0 Received: by 10.236.124.97 with SMTP id w61mr3224037yhh.106.1316514437701; Tue, 20 Sep 2011 03:27:17 -0700 (PDT) Received: by 10.236.207.6 with HTTP; Tue, 20 Sep 2011 03:27:17 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Sep 2011 12:27:17 +0200 Message-ID: Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area From: Dani Moncayo To: Eli Zaretskii Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 9557 Cc: 9557@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) > y-or-n-p deliberately displays the prompt with your response before it > returns to the caller, see the source. =A0It does that because > otherwise you would not have a chance of observing your response. Ah, ok. In my case, I find that echo a bit unnecessary/disconcerting (hence this bug report). What about adding a variable to control that echo (with default value "on", to keep the current behavior untouched)? --=20 Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 13:00:06 2011 Received: (at 9557) by debbugs.gnu.org; 20 Sep 2011 17:00:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R63fx-0007NV-NT for submit@debbugs.gnu.org; Tue, 20 Sep 2011 13:00:06 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R63fu-0007NF-Tg for 9557@debbugs.gnu.org; Tue, 20 Sep 2011 13:00:04 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 766196E805E; Tue, 20 Sep 2011 09:54:54 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 4F23E451C1B8; Tue, 20 Sep 2011 09:54:53 -0700 (PDT) From: Juri Linkov To: Dani Moncayo Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area Organization: JURTA References: Date: Tue, 20 Sep 2011 19:54:11 +0300 In-Reply-To: (Dani Moncayo's message of "Tue, 20 Sep 2011 12:27:17 +0200") Message-ID: <87litj8898.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9557 Cc: Eli Zaretskii , 9557@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >> y-or-n-p deliberately displays the prompt with your response before it >> returns to the caller, see the source. =A0It does that because >> otherwise you would not have a chance of observing your response. > > Ah, ok. > > In my case, I find that echo a bit unnecessary/disconcerting (hence > this bug report). > > What about adding a variable to control that echo (with default value > "on", to keep the current behavior untouched)? You can put in your .emacs: (defadvice y-or-n-p (around y-or-n-p act) (let ((answer ad-do-it)) (message "") answer)) From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 13:53:06 2011 Received: (at 9557) by debbugs.gnu.org; 20 Sep 2011 17:53:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R64VF-0000iI-QE for submit@debbugs.gnu.org; Tue, 20 Sep 2011 13:53:06 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R64VD-0000i8-Gt for 9557@debbugs.gnu.org; Tue, 20 Sep 2011 13:53:04 -0400 Received: by ywa6 with SMTP id 6so555459ywa.3 for <9557@debbugs.gnu.org>; Tue, 20 Sep 2011 10:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=kbULttn0szM3ZWK/EDQJp5XtCGwlXZBLMGvmmE3e6qE=; b=R8G1SUxXOwG60TtKiA7I8cZd5/PumNY6fpESQwLB1j630B4i0VwyTe6QpJX5XYdAMB rjV29BUkd6T+YDjfF9mDVnFcjr2UgSySqThqIoBmT+r0l8LzK9QR0+9v2MqiMVsQbJVQ gTQGU7pucLrNyAO/2zzg3i2kqcdgIfgR2vG0E= MIME-Version: 1.0 Received: by 10.68.36.228 with SMTP id t4mr6950199pbj.103.1316540874508; Tue, 20 Sep 2011 10:47:54 -0700 (PDT) Received: by 10.142.143.3 with HTTP; Tue, 20 Sep 2011 10:47:54 -0700 (PDT) In-Reply-To: <87litj8898.fsf@mail.jurta.org> References: <87litj8898.fsf@mail.jurta.org> Date: Tue, 20 Sep 2011 19:47:54 +0200 Message-ID: Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area From: Dani Moncayo To: Juri Linkov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 9557 Cc: Eli Zaretskii , 9557@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) >> In my case, I find that echo a bit unnecessary/disconcerting (hence >> this bug report). >> >> What about adding a variable to control that echo (with default value >> "on", to keep the current behavior untouched)? > > You can put in your .emacs: > > (defadvice y-or-n-p (around y-or-n-p act) > =A0(let ((answer ad-do-it)) > =A0 =A0(message "") > =A0 =A0answer)) > Thanks, Juri. It works fine. I'll use it. I was going to propose another (more flexible) alternative: Instead of storing a boolean value in a variable (to switch echoing on/off), store a time delay, after which the echoed text would be removed (if was not already removed by another event). A value of 0 would mean "don't echo", and a value greater that some limit would mean "never remove" (as now). But if no one else thinks that this change is worthwhile, you can close this bug report. Thanks again. --=20 Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 14:24:46 2011 Received: (at control) by debbugs.gnu.org; 20 Sep 2011 18:24:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R64zt-0003LW-Pn for submit@debbugs.gnu.org; Tue, 20 Sep 2011 14:24:46 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R64zq-0003LE-8g; Tue, 20 Sep 2011 14:24:43 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 89E516E806F; Tue, 20 Sep 2011 11:19:33 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id EC00F451C1B8; Tue, 20 Sep 2011 11:19:31 -0700 (PDT) From: Juri Linkov To: Dani Moncayo Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area Organization: JURTA References: <87litj8898.fsf@mail.jurta.org> Date: Tue, 20 Sep 2011 21:16:19 +0300 In-Reply-To: (Dani Moncayo's message of "Tue, 20 Sep 2011 19:47:54 +0200") Message-ID: <8762kn6pxk.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control Cc: Eli Zaretskii , 9557-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 9557 notabug wontfix thanks > But if no one else thinks that this change is worthwhile, you can > close this bug report. I doubt that anyone might want to miss information about the incorrect answer. IOW, more information is better than less information. From unknown Mon Sep 08 01:47:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 19 Oct 2011 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator