From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: New keybinding suggestion: C-x _ for `shrink-window' Date: Sat, 17 Nov 2007 02:26:45 +0000 Message-ID: <87pry94nfe.fsf@bzg.ath.cx> References: <87ejexwf4m.fsf@bzg.ath.cx> <87wssom9qy.fsf@bzg.ath.cx> <876406e0pk.fsf@bzg.ath.cx> <87wsslsk4x.fsf@bzg.ath.cx> <87lk90v34f.fsf@jurta.org> <473B9117.9080004@gmail.com> <874pfnku1a.fsf@jurta.org> <873av6fit2.fsf@bzg.ath.cx> <876402b1gc.fsf@bzg.ath.cx> <87r6iqvvzv.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195266426 23955 80.91.229.12 (17 Nov 2007 02:27:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2007 02:27:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 17 03:27:11 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 1ItDOn-0006p4-OP for ged-emacs-devel@m.gmane.org; Sat, 17 Nov 2007 03:27:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItDOa-0004eQ-Fq for ged-emacs-devel@m.gmane.org; Fri, 16 Nov 2007 21:26:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ItDOX-0004e3-Ok for emacs-devel@gnu.org; Fri, 16 Nov 2007 21:26:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ItDOW-0004dq-5g for emacs-devel@gnu.org; Fri, 16 Nov 2007 21:26:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItDOW-0004dm-0B for emacs-devel@gnu.org; Fri, 16 Nov 2007 21:26:52 -0500 Original-Received: from fk-out-0910.google.com ([209.85.128.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ItDOV-0001rj-M4 for emacs-devel@gnu.org; Fri, 16 Nov 2007 21:26:51 -0500 Original-Received: by fk-out-0910.google.com with SMTP id 19so125606fkr for ; Fri, 16 Nov 2007 18:26:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=v0I3E0GV+0YLUV2s8NPrif4AvoluCPHnhJtQXv3ZKT8=; b=keYdWJpQ7HUE3grcmOdW96jALTCd6DP1ePuWjlgRZfaLWDQe/N7QxuFfQUbOID6mzrV9+ioIs7yGTChSsn+05KtKUsO/xsrOAfAIg6uzEuMGDcFRClwDbsnVZSQCer/kKXq8G2n0B6JnN6h+F1/f0wdWMueKcQ4+51tE8benZfw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=OVRSBdQfLaAnw4mWb2IUzBdp4TR2wkCp/0M/BtBP3M1Jxp4FGig+eDuHex8vj+R49iMeuL/ThEKPhaSMH1LKGK0bNzzr7KmeDrWUjJxoNggGh4du5uX7hJEsUgbvyKZuTyseJLZdgmJQ48BHMduDlEEgslBXyzru1ATyr9ym1fI= Original-Received: by 10.82.171.16 with SMTP id t16mr6452005bue.1195266409489; Fri, 16 Nov 2007 18:26:49 -0800 (PST) Original-Received: from bzg.ath.cx ( [84.13.170.108]) by mx.google.com with ESMTPS id f7sm2320113nfh.2007.11.16.18.26.46 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Nov 2007 18:26:47 -0800 (PST) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id A4BBB1575BA; Sat, 17 Nov 2007 02:26:45 +0000 (GMT) In-Reply-To: (Stefan Monnier's message of "Fri, 16 Nov 2007 16:48:42 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:83399 Archived-At: Stefan Monnier writes: >> AFAIK it's different because `overriding-terminal-local-map' will be >> used in the minibuffer as well (whether the user is here intentionally >> or by error doesn't really matter.) > > Why would you let the user get into the minibuffer? He wouldn't. But hitting M-x accidently will lead to weird things. Also, going to the help window and tring to scroll with arrow keys won't work unless I cancel the overriding-terminal-local-map, which cannot be buffer-local (if I understand correctly. Please give a try to latest window-resize.el and let me know. As for the keybindings, I implemented what you suggested: (define-key map [t] 'window-resize-other-char) BTW, I think "window-resize" is a bit long. What about "windresize" (which gets along great with "windmove") ? -- Bastien