From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: New keybinding suggestion: C-x _ for `shrink-window' Date: Sun, 11 Nov 2007 09:26:05 -0800 Message-ID: References: <87sl3c8zwt.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194802325 29480 80.91.229.12 (11 Nov 2007 17:32:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2007 17:32:05 +0000 (UTC) To: "Bastien" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 11 18:32:09 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 1IrGfF-0004nV-JK for ged-emacs-devel@m.gmane.org; Sun, 11 Nov 2007 18:32:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrGf3-0000kq-L5 for ged-emacs-devel@m.gmane.org; Sun, 11 Nov 2007 12:31:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrGZp-0002k7-Hy for emacs-devel@gnu.org; Sun, 11 Nov 2007 12:26:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrGZl-0002hP-MI for emacs-devel@gnu.org; Sun, 11 Nov 2007 12:26:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrGZl-0002h7-5g for emacs-devel@gnu.org; Sun, 11 Nov 2007 12:26:25 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IrGZk-0007KX-Jr for emacs-devel@gnu.org; Sun, 11 Nov 2007 12:26:24 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id lABHQKlQ008987; Sun, 11 Nov 2007 11:26:20 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id lABGjrMu029062; Sun, 11 Nov 2007 10:26:20 -0700 Original-Received: from 141.144.89.9 by acsmt351.oracle.com with ESMTP id 3359383441194801959; Sun, 11 Nov 2007 09:25:59 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87sl3c8zwt.fsf@bzg.ath.cx> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:82953 Archived-At: > thanks for the comments. Here is a new version: > http://www.cognition.ens.fr/~guerry/u/window-edit.el > > Please test the new help mechanism. Better. However, I suggest that showing help should quit window editing. The reason is that you are in a `read-event' loop, and that prevents any normal interactions with the help. For instance, you cannot resize the help frame or scroll its window - all keystrokes (including mouse actions) are trapped by the `read-event' loop. It is not difficult for a user to start window-editing again, after help quits editing. > The problem is that I don't know how to prevent Emacs from waiting an > event when the user select another frame, and making it wait for this > event when back to the frame where (read-event) was first called. > > Any hint? See above. It is a mistake, IMO, to not exit the `read-event' loop when the help is shown. Also, please don't turn off the cursor in the help window. Suggestion: Put key descriptions in a single column, instead of having lines that are up to 90 chars wide. You can also shorten some of the descriptions, for readability: - "toggle mode: move border, resize" - "C-f, C-b, C-n, C-p: move cursor" - "quit" - "save window configuration" - "move border" (singular, and get rid of "direction-wise") - "select adjacent window" ("select" not "find", and "other window" means something different) > > Possibility: When you restore the last window config, first > > save the current config at the end of the ring. > > That way, `s'.changes.`r'.`r' will bring back > > the config before the first restoration. > > Yes, maybe. I'll try this and maybe implement it in 0.5. Among other reasons, it's important to be able to undo an accidental restore - this provides that. HTH.