From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: Re: scroll-left *Disabled Command* buffer is too short Date: Tue, 03 Jul 2007 16:18:49 +0200 Message-ID: <87abud6052.fsf@escher.local.home> References: <87ejjp692z.fsf@escher.local.home> <468A47B7.1060601@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183472356 20932 80.91.229.12 (3 Jul 2007 14:19:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2007 14:19:16 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 03 16:19:14 2007 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I5jDl-0004Mc-0R for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jul 2007 16:19:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5jDk-0000rQ-F2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jul 2007 10:19:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5jDi-0000r3-Cx for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2007 10:19:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5jDh-0000qZ-1M for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2007 10:19:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5jDg-0000qW-Si for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2007 10:19:08 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I5jDg-0006bV-Id for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2007 10:19:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I5jDV-0000VS-7Z for bug-gnu-emacs@gnu.org; Tue, 03 Jul 2007 16:18:57 +0200 Original-Received: from i577bff28.versanet.de ([87.123.255.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jul 2007 16:18:57 +0200 Original-Received: from Stephen.Berman by i577bff28.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jul 2007 16:18:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bff28.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16068 Archived-At: On Tue, 03 Jul 2007 14:57:27 +0200 martin rudalics wrote: >> Note that the last line of this buffer: >> >> ! to try it, and enable all disabled commands for this session only. >> >> is not visible. And since, after displaying this message, >> disabled-command-function awaits user input, there is no way within >> Emacs to see that last line before responding. (It is, however, >> possible to see it by using the window manager to increase the height >> of the Emacs frame, if the monitor allows it. But this wouldn't help >> if you're running Emacs in a tty with sufficiently few screen lines.) > > Could you please try the attached patch? Thiat patch doesn't make the last line visible; instead, it expands the height of the minibuffer. However, I played around with the idea and the following does the job, though the window is actually much higher than it needs to be. *** novice.el 2007-01-21 23:44:40.000000000 +0100 --- novice.el 2007-07-03 16:04:45.000000000 +0200 *************** *** 92,97 **** --- 92,98 ---- (help-mode))) (message "Type y, n, ! or SPC (the space bar): ") (let ((cursor-in-echo-area t)) + (fit-window-to-buffer) (while (progn (setq char (read-event)) (or (not (numberp char)) (not (memq (downcase char) To be honest, I do not understand why your patch failed, nor why this one works (better). Steve Berman