From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#19064: 25.0.50; `message' overwrites `y-or-n-p' prompt, so user misses it Date: Sat, 15 Nov 2014 10:38:25 -0800 (PST) Message-ID: <8ea0a3fa-5169-4493-bd54-3ebe47836a35@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416076776 16727 80.91.229.3 (15 Nov 2014 18:39:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Nov 2014 18:39:36 +0000 (UTC) To: 19064@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 15 19:39:29 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XpiFr-0000LU-F1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Nov 2014 19:39:27 +0100 Original-Received: from localhost ([::1]:41581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpiFr-0002w5-4a for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Nov 2014 13:39:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpiFd-0002qZ-Fc for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 13:39:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpiFT-0002PR-52 for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 13:39:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpiFT-0002PM-1Z for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 13:39:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XpiFS-0005pD-OZ for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 13:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Nov 2014 18:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19064 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141607673722376 (code B ref -1); Sat, 15 Nov 2014 18:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Nov 2014 18:38:57 +0000 Original-Received: from localhost ([127.0.0.1]:34090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpiFM-0005oq-Ft for submit@debbugs.gnu.org; Sat, 15 Nov 2014 13:38:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36564) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpiFK-0005oh-Cn for submit@debbugs.gnu.org; Sat, 15 Nov 2014 13:38:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpiF9-0002KM-M3 for submit@debbugs.gnu.org; Sat, 15 Nov 2014 13:38:53 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpiF9-0002KC-CT for submit@debbugs.gnu.org; Sat, 15 Nov 2014 13:38:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpiF0-0002VY-J6 for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 13:38:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpiEr-0002Dw-Sj for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 13:38:34 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:37907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpiEr-0002Dn-Mj for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 13:38:25 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sAFIcO9o026978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 15 Nov 2014 18:38:24 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sAFIcNwH011303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 15 Nov 2014 18:38:23 GMT Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sAFIcNui011299 for ; Sat, 15 Nov 2014 18:38:23 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96075 I don't have a simple recipe, but I doubt that one is needed. If it really is then perhaps I will come up with one. I have some code that calls `y-or-n-p'. Immediately after it prompts, `Man-bgproc-sentinel' writes a message to the echo area: (message "%s man page formatted" (Man-page-from-arguments Man-arguments)) The user thus sees only a message such as "ps man page formatted". S?he never sees the `y-or-n' prompt. (Yes, of course as soon as the user tries to hit a key for some reason, s?he sees the `y-or-n-p' repeat prompt.) Seems like this is an Emacs bug. Seems like whenever `y-or-n-p' (or just `read-key') is waiting for a key, `message' should do nothing. Either it should echo its message after the key is read or (maybe better) it should do nothing at all. As it stands now, this seems like a basic UI problem, not just a minor annoyance. FWIW, the context is that I am jumping to a `man' bookmark with code that can activate the region recorded in the bookmark (not a vanilla `man' bookmark), and if the region has been relocated (because the target text has changed) then the user is prompted for whether s?he wants to save the relocated region limits back to the bookmark. This prompting is done by `y-or-n-p'. But `Man-bgproc-sentinel' then comes along and overwrites the prompt. In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2014-10-20 on LEG570 Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking=3Dyes,glyphs CPPFLAGS=3D-DGLYPH_DEBUG=3D1'