unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [Stephen.Berman@gmx.net: scroll-left *Disabled Command* buffer is too short]
@ 2007-08-06 14:22 Richard Stallman
  2007-08-06 18:03 ` martin rudalics
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2007-08-06 14:22 UTC (permalink / raw)
  To: emacs-devel

Does anyone see a possible solution for this problem?

------- Start of forwarded message -------
X-Spam-Status: No, score=1.2 required=5.0 tests=RCVD_IN_SORBS_WEB,
	UNPARSEABLE_RELAY autolearn=no version=3.1.0
To: bug-gnu-emacs@gnu.org
From: Stephen Berman <Stephen.Berman@gmx.net>
Date: Tue, 03 Jul 2007 13:05:40 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: scroll-left *Disabled Command* buffer is too short

1. emacs -Q
2. C-x <
3. Now I see this in the lower window:

   You have typed C-x <, invoking disabled command scroll-left.
   It is disabled because new users often find it confusing.
   Here's the first part of its description:
   
      Scroll selected window display ARG columns left.
      Default for ARG is window width minus 2.
      Value is the total amount of leftward horizontal scrolling in
      effect after the change.
      If SET_MINIMUM is non-nil, the new scroll amount becomes the
      lower bound for automatic scrolling, i.e. automatic scrolling
      will not scroll a window to a column less than the value returned
      by this function.  This happens in an interactive call.
   
   Do you want to use this command anyway?
   
   You can now type
   y   to try it and enable it (no questions if you use it again).
   n   to cancel--don't try the command, and it remains disabled.
   SPC to try the command just this once, but leave it disabled.
   
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.)

In GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of
2007-06-02 on escher as well as in the current CVS trunk. 

Steve Berman


_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Stephen.Berman@gmx.net: scroll-left *Disabled Command* buffer is too short]
  2007-08-06 14:22 [Stephen.Berman@gmx.net: scroll-left *Disabled Command* buffer is too short] Richard Stallman
@ 2007-08-06 18:03 ` martin rudalics
  0 siblings, 0 replies; 2+ messages in thread
From: martin rudalics @ 2007-08-06 18:03 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

> Does anyone see a possible solution for this problem?
> 
> ------- Start of forwarded message -------
> X-Spam-Status: No, score=1.2 required=5.0 tests=RCVD_IN_SORBS_WEB,
> 	UNPARSEABLE_RELAY autolearn=no version=3.1.0
> To: bug-gnu-emacs@gnu.org
> From: Stephen Berman <Stephen.Berman@gmx.net>
> Date: Tue, 03 Jul 2007 13:05:40 +0200
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Subject: scroll-left *Disabled Command* buffer is too short
> 
> 1. emacs -Q
> 2. C-x <
> 3. Now I see this in the lower window:
> 
>    You have typed C-x <, invoking disabled command scroll-left.
>    It is disabled because new users often find it confusing.
>    Here's the first part of its description:
>    
>       Scroll selected window display ARG columns left.
>       Default for ARG is window width minus 2.
>       Value is the total amount of leftward horizontal scrolling in
>       effect after the change.
>       If SET_MINIMUM is non-nil, the new scroll amount becomes the
>       lower bound for automatic scrolling, i.e. automatic scrolling
>       will not scroll a window to a column less than the value returned
>       by this function.  This happens in an interactive call.
>    
>    Do you want to use this command anyway?
>    
>    You can now type
>    y   to try it and enable it (no questions if you use it again).
>    n   to cancel--don't try the command, and it remains disabled.
>    SPC to try the command just this once, but leave it disabled.
>    
> 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.)
> 
> In GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of
> 2007-06-02 on escher as well as in the current CVS trunk. 
> 
> Steve Berman

I equipped `disabled-command-function' with a `fit-window-to-buffer' to
handle this particular case.  Checked in on 2007-07-08 in trunk.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-06 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 14:22 [Stephen.Berman@gmx.net: scroll-left *Disabled Command* buffer is too short] Richard Stallman
2007-08-06 18:03 ` martin rudalics

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).