From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: face-remap.el patch to resize window Date: Mon, 10 Aug 2009 13:16:46 -0400 Message-ID: References: <7D6750DD60204DB082A761ECEE706CEA@us.oracle.com> <91793771320945CAA5CA2B600D0E9B67@us.oracle.com> <87bpmnbohx.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249924731 16940 80.91.229.12 (10 Aug 2009 17:18:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 17:18:51 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 19:18:33 2009 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 1MaYVw-0003P3-D1 for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 19:18:28 +0200 Original-Received: from localhost ([127.0.0.1]:49086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaYVv-00064X-DE for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 13:18:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaYUR-0005Qv-Po for emacs-devel@gnu.org; Mon, 10 Aug 2009 13:16:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaYUL-0005QW-70 for emacs-devel@gnu.org; Mon, 10 Aug 2009 13:16:54 -0400 Original-Received: from [199.232.76.173] (port=60252 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaYUK-0005QT-So for emacs-devel@gnu.org; Mon, 10 Aug 2009 13:16:48 -0400 Original-Received: from tomts5.bellnexxia.net ([209.226.175.25]:39870 helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MaYUJ-00074j-DD; Mon, 10 Aug 2009 13:16:47 -0400 Original-Received: from toip5.srvr.bell.ca ([209.226.175.88]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20090810171646.BRBV7787.tomts5-srv.bellnexxia.net@toip5.srvr.bell.ca>; Mon, 10 Aug 2009 13:16:46 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAGfvf0pGN48s/2dsb2JhbACBUs8qhBgF Original-Received: from bas1-montreal42-1178046252.dsl.bell.ca (HELO ceviche.home) ([70.55.143.44]) by toip5.srvr.bell.ca with ESMTP; 10 Aug 2009 13:21:17 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6F186B454F; Mon, 10 Aug 2009 13:16:46 -0400 (EDT) In-Reply-To: <87bpmnbohx.fsf@catnip.gol.com> (Miles Bader's message of "Tue, 11 Aug 2009 01:52:10 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) 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:113985 > 1) To see more of the buffer at once; in this case, I probably don't > want the window to shrink. This is probably the most common case > for me. This is also my main use, tho I often also increase the text size to make it more readable from afar (in that case increasing the window size would also make sense, tho I'm usually already maxed out at that point so it doesn't make any real difference). > 2) To shrink a short buffer to take up less space, e.g. a help buffer; > in this case, I often do want the window to shrink, or even better, > to be re-fit to the buffer contents (like the help display > functions do initially). This actually points to a need to mark a window as "fitted" so it can be refitted dynamically (which would also affect frame resizing, C-x + and things like that). > That's why I like a hook-based situation (see earlier patch) that can > examine the situation and do something appropriate in an easily > user-adaptable way. I don't know if it can be made automatic, really. Maybe a separate command (at least for your case nb 3) is preferable. Stefan