bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scroll-left *Disabled Command* buffer is too short


From: Stephen Berman
Subject: Re: scroll-left *Disabled Command* buffer is too short
Date: Tue, 03 Jul 2007 16:18:49 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

On Tue, 03 Jul 2007 14:57:27 +0200 martin rudalics <rudalics@gmx.at> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]