all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <Stephen.Berman@gmx.net>
To: bug-gnu-emacs@gnu.org
Subject: Re: scroll-left *Disabled Command* buffer is too short
Date: Tue, 03 Jul 2007 16:18:49 +0200	[thread overview]
Message-ID: <87abud6052.fsf@escher.local.home> (raw)
In-Reply-To: 468A47B7.1060601@gmx.at

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	other threads:[~2007-07-03 14:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-03 11:05 scroll-left *Disabled Command* buffer is too short Stephen Berman
2007-07-03 12:57 ` martin rudalics
2007-07-03 14:18   ` Stephen Berman [this message]
2007-07-03 14:42     ` martin rudalics
2007-07-03 15:06       ` Stephen Berman
2007-07-03 15:37         ` martin rudalics
2007-07-03 15:52           ` Stephen Berman
2007-07-03 20:40             ` martin rudalics
2007-07-03 21:49               ` Stephen Berman
2007-07-05  1:29               ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87abud6052.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.