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#18340: 24.4.50; Bad UI for `find-file-literally' Date: Wed, 27 Aug 2014 14:37:45 -0700 (PDT) Message-ID: <9fd1f4c3-a944-4305-9eb5-9f3a877d1b8b@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 1409175584 16332 80.91.229.3 (27 Aug 2014 21:39:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2014 21:39:44 +0000 (UTC) To: 18340@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 27 23:39:36 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 1XMkwA-0003jX-KI for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Aug 2014 23:39:26 +0200 Original-Received: from localhost ([::1]:33401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMkwA-0002fp-9p for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Aug 2014 17:39:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMkvx-0002Yb-8w for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 17:39:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMkvm-00011A-UN for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 17:39:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMkvm-000116-Qb for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 17:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XMkvm-0005zz-AN for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 17:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Aug 2014 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18340 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.140917550522999 (code B ref -1); Wed, 27 Aug 2014 21:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2014 21:38:25 +0000 Original-Received: from localhost ([127.0.0.1]:53904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XMkvA-0005ys-Qt for submit@debbugs.gnu.org; Wed, 27 Aug 2014 17:38:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49756) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XMkv8-0005ye-5J for submit@debbugs.gnu.org; Wed, 27 Aug 2014 17:38:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMkus-0000ov-F1 for submit@debbugs.gnu.org; Wed, 27 Aug 2014 17:38:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMkus-0000or-CC for submit@debbugs.gnu.org; Wed, 27 Aug 2014 17:38:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMkuj-0002MA-Da for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 17:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMkua-0000kY-Ny for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 17:37:57 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:47568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMkua-0000kR-GV for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 17:37:48 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s7RLbkB0030177 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Aug 2014 21:37:47 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s7RLbkXw022256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 27 Aug 2014 21:37:46 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s7RLbklR022247 for ; Wed, 27 Aug 2014 21:37:46 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: acsinet21.oracle.com [141.146.126.237] 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:92745 Archived-At: Summary: Don't show a multi-line message for prompting `y-or-n-p' in the echo area and expect users to see it. The UI for `find-file-literally' depends on `resize-mini-windows' being non-nil. Not a good idea. To see how bad it can be, set `resize-mini-windows' to nil, then visit a file, then try to visit it using `M-x find-file-literally'. You see only this line in the echo area, which is not even a question: The file foo.el is already visited normally. Huh? A user who sees that has no clue as to what is going on. Beyond this design being incredibly ill-advised in general, it breaks the use of a standalone minibuffer frame, for which `resize-mini-windows' has no effect. In my code, for example, I do this, where `'1on1-fit-minibuffer-frame' resizes the minibuffer frame to fit its current contents: (add-hook 'post-command-hook '1on1-fit-minibuffer-frame) That of course has no effect during `read-key', which is what is used by `y-or-n-p' (which is used by `find-file-literally'). `1on1-fit-minibuffer-frame' is also a command that increases the minibuffer frame height by a line when it is repeated. It is bound in the minibuffer to `C-o'. But of course that is ineffective for something like `y-or-n-p', which does not use the minibuffer. Please reimplement the multiple-line message and associated y-or-n question for `find-file-literally', so that the message part is visible somewhere outside of the echo area. Pop up a separate window for it, show it in a tooltip, or show it any number of other reasonable ways. In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-08-15 on LEG570 Bzr revision: 117706 rgm@gnu.org-20140815043406-p5hbu97cbm7pulcn Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=3D-O0 -g3' CPPFLAGS=3D-DGLYPH_DEBUG= =3D1'