From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: face-remap.el patch to resize window Date: Tue, 11 Aug 2009 01:52:10 +0900 Message-ID: <87bpmnbohx.fsf@catnip.gol.com> References: <7D6750DD60204DB082A761ECEE706CEA@us.oracle.com> <91793771320945CAA5CA2B600D0E9B67@us.oracle.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249923158 1340 80.91.229.12 (10 Aug 2009 16:52:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 16:52:38 +0000 (UTC) Cc: 'Stefan Monnier' , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 18:52:31 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 1MaY6l-0001a2-JM for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 18:52:27 +0200 Original-Received: from localhost ([127.0.0.1]:36155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaY6k-0002GE-OM for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 12:52:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaY6f-0002Fl-DZ for emacs-devel@gnu.org; Mon, 10 Aug 2009 12:52:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaY6c-0002FB-0E for emacs-devel@gnu.org; Mon, 10 Aug 2009 12:52:21 -0400 Original-Received: from [199.232.76.173] (port=36064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaY6b-0002F8-Ow for emacs-devel@gnu.org; Mon, 10 Aug 2009 12:52:17 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:51537) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MaY6Y-0002RO-H3; Mon, 10 Aug 2009 12:52:15 -0400 Original-Received: from 218.231.177.167.eo.eaccess.ne.jp ([218.231.177.167] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1MaY6V-0007Hj-Jy; Tue, 11 Aug 2009 01:52:11 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 935CADF93; Tue, 11 Aug 2009 01:52:10 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <91793771320945CAA5CA2B600D0E9B67@us.oracle.com> (Drew Adams's message of "Mon, 10 Aug 2009 09:31:47 -0700") Original-Lines: 43 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:113979 Archived-At: "Drew Adams" writes: >> It could be useful for very specific cases, >> but it seems somehow wrong to have it as a global setting. > > No reason given? What good to others is a judgment with no supporting > rationale, arguments or evidence? The main problem is that I think it often depends on the buffer contents (or etc) as to whether such window-adaptation is useful. For instance, I shrink text for several reasons: 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. 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). 3) To shrink a buffer that I want to keep on screen so I can keep an eye on it, but in many cases, only really care about the last bit -- e.g., a compile buffer, or log buffer which is being updated. Often my goal is to make the window showing this buffer as small as possible or a little larger. [and I often shrink the font to some absurdly small size, since I care more about motion and text-shape than actual contents] So, really I want the behavior to vary depending on the situation; a single "adapt windows" or "don't adapt windows" doesn't really suffice for my usage. However, a "clever" function that encodes my preferences (as noted above) might be something I'd like to use. 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. -Miles -- P.S. All information contained in the above letter is false, for reasons of military security.