From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: New keybinding suggestion: C-x _ for `shrink-window' Date: Wed, 14 Nov 2007 01:26:23 +0100 Message-ID: <473A40AF.1030908@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195000027 1236 80.91.229.12 (14 Nov 2007 00:27:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2007 00:27:07 +0000 (UTC) Cc: Bastien , "Richard M. Stallman" , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 14 01:27:10 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 1Is65p-0000Z0-Bo for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 01:26:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is65c-0001pd-MS for ged-emacs-devel@m.gmane.org; Tue, 13 Nov 2007 19:26:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Is65Y-0001pN-Q6 for emacs-devel@gnu.org; Tue, 13 Nov 2007 19:26:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Is65Y-0001pA-B2 for emacs-devel@gnu.org; Tue, 13 Nov 2007 19:26:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is65Y-0001p7-6F for emacs-devel@gnu.org; Tue, 13 Nov 2007 19:26:40 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Is65T-0008Is-00; Tue, 13 Nov 2007 19:26:35 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:65055 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Is65Q-0005oE-7o; Wed, 14 Nov 2007 01:26:33 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 071113-1, 2007-11-13), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1Is65Q-0005oE-7o. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Is65Q-0005oE-7o 37b25507755e713ebcca0fbf3d4b30d0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:83149 Archived-At: Drew Adams wrote: >>> 3. So allow C-n, C-f, etc. to move the cursor without exiting. Ok, I see. I have added support for this, a defcustom winsize-let-me-use. > My point is that the purpose of the face is not the same as the use you make > of it. A user might well want to change the face for just this use. A user Ok, I have added a new face variable that just inherits from `secondary-selection' (and a variable pointing to this, the standard Emacs way). >>> 7. I hit `?' for help. I got no help, and all of the windows >> were blown away Thanks, I think I have fixed this (in a different way). >>> 8. Some way to save and restore window configs would be nice. Ok, I added support for it. >>> 9. Sometimes, I need to press M-left (or right etc) to get it to take >>> effect - the first press does nothing. >> M-left etc first switches border and then window. Is that what happens? > > I don't know. As a user, it seems that there is an unnecessary (extra) > keystroke. But there is no feedback for what it does, so I can't tell you > what it's doing. I guess the problem might have been that you are using mouse-avoidance-mode. Do you do that? I move the mouse pointer to the relevant corner in the selected window to show which borders that will be moved. In the new version I turn off mouse avoidance during resizing. Just moving the mouse pointer is not a very prominent sign however. Changing the mouse color could help, but that does not work on w32. >>> 10. There is no feedback when resizing is not possible - the The error messages were overwritten. Fixed. >>> 12. `-' seems to do nothing. I have changed this to use fit-window-to-buffer. I think that feedback should be given by that function. And I have moved it to = which seems more mnemonic now then. > HTH. Thanks. The new version is on http://ourcomments.org/Emacs/DL/elisp/winsize.el