From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [Stephen.Berman@gmx.net: scroll-left *Disabled Command* buffer is too short] Date: Mon, 06 Aug 2007 20:03:45 +0200 Message-ID: <46B76281.9040207@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186423493 24837 80.91.229.12 (6 Aug 2007 18:04:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2007 18:04:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 06 20:04:51 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1II6wk-000474-H2 for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2007 20:04:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1II6wi-00067t-Jy for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2007 14:04:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1II6we-00065p-NY for emacs-devel@gnu.org; Mon, 06 Aug 2007 14:04:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1II6wZ-00063m-Vj for emacs-devel@gnu.org; Mon, 06 Aug 2007 14:04:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1II6wZ-00063j-Os for emacs-devel@gnu.org; Mon, 06 Aug 2007 14:04:39 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1II6wR-000864-I4 for emacs-devel@gnu.org; Mon, 06 Aug 2007 14:04:33 -0400 Original-Received: (qmail invoked by alias); 06 Aug 2007 18:04:07 -0000 Original-Received: from M3074P003.adsl.highway.telekom.at (EHLO [88.117.32.35]) [88.117.32.35] by mail.gmx.net (mp024) with SMTP; 06 Aug 2007 20:04:07 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Owp8+osDO9hyw81LQiKOyb/7CoE2BcupOsQYXWX VFjfQM7gYiEIQm User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76100 Archived-At: > 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 > 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.