From unknown Tue Jun 17 20:14:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#3419 <3419@debbugs.gnu.org> To: bug#3419 <3419@debbugs.gnu.org> Subject: Status: 23.0.94; calc, calendar and temp-buffer-resize-mode Reply-To: bug#3419 <3419@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:14:43 +0000 retitle 3419 23.0.94; calc, calendar and temp-buffer-resize-mode reassign 3419 emacs submitter 3419 Leo severity 3419 normal thanks From sl392@cam.ac.uk Fri May 29 12:03:23 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 29 May 2009 19:03:23 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TJ3ItB017019 for ; Fri, 29 May 2009 12:03:19 -0700 Received: from mx10.gnu.org ([199.232.76.166]:32906) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MA7ML-0002PN-7A for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 15:03:17 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MA7MJ-0004Eo-F2 for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 15:03:16 -0400 Received: from ppsw-0.csi.cam.ac.uk ([131.111.8.130]:38774) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MA7MI-0004E8-V4 for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 15:03:15 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]:58327 helo=victoria.local) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1MA7MG-0001Ke-2u (Exim 4.70) for emacs-pretest-bug@gnu.org (return-path ); Fri, 29 May 2009 20:03:13 +0100 From: Leo To: emacs-pretest-bug@gnu.org Subject: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: University of Cambridge, England Date: Fri, 29 May 2009 20:03:11 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Packages such as calc or calendar that use a small window does not play well with temp-buffer-resize-mode. i.e. their windows get enlarged by temp-buffer-resize-mode. In the case of calc, the size change is permanent. 1. Emacs -Q 2. (temp-buffer-resize-mode t) 3. M-x calc 4. h h You will notice that calc-window-height is changed to a much larger value. Calendar also has this similar problem but it can restore to its default height after restarting itself. GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of 2009-05-23 on 200.sub-75-216-116.myvzw.com Best wishes, Leo From jay.p.belanger@gmail.com Fri May 29 16:46:55 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 29 May 2009 23:46:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TNkpl9000300 for ; Fri, 29 May 2009 16:46:53 -0700 Received: from mx10.gnu.org ([199.232.76.166]:49330) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MABmk-0004Gt-Uz for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 19:46:51 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MABmk-0006kU-Fn for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 19:46:50 -0400 Received: from s2.cableone.net ([24.116.0.228]:59522) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MABmk-0006jo-1T for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 19:46:50 -0400 Received: from belanger (unverified [24.116.73.151]) by s2.cableone.net (CableOne SMTP Service s2) with ESMTP id 18943168-1872270 for multiple; Fri, 29 May 2009 16:46:45 -0700 From: Jay Belanger To: emacs-pretest-bug@gnu.org Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: Reply-To: jay.p.belanger@gmail.com CC: jay.p.belanger@gmail.com Date: Fri, 29 May 2009 18:46:44 -0500 In-Reply-To: (Leo's message of "Fri, 29 May 2009 20:03:11 +0100") Message-ID: <87skinjwuz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Vpipe: Scanner said ok (av_avast) X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 2, First 235, in=71, out=0, spam=0 ip=24.116.73.151 X-Originating-IP: 24.116.73.151 X-Abuse-Info: Send abuse complaints to abuse@cableone.net X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) > Packages such as calc or calendar that use a small window does not play > well with temp-buffer-resize-mode. i.e. their windows get enlarged by > temp-buffer-resize-mode. In the case of calc, the size change is > permanent. Calc keeps track of changes to its size, and restarts it in the last size that it had. Why is that a problem? From geb-bug-gnu-emacs@m.gmane.org Fri May 29 18:44:08 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 30 May 2009 01:44:09 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.9 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4U1i2kp018970 for ; Fri, 29 May 2009 18:44:05 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MADcA-0006PC-7A for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 21:44:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MADc4-0006OS-0F for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 21:44:00 -0400 Received: from [199.232.76.173] (port=48523 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MADc3-0006OP-Tm for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 21:43:55 -0400 Received: from main.gmane.org ([80.91.229.2]:39026 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MADc3-0004VT-Fy for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 21:43:55 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MADby-0007uW-19 for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 01:43:50 +0000 Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 May 2009 01:43:50 +0000 Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 May 2009 01:43:50 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Leo Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Date: Sat, 30 May 2009 02:43:35 +0100 Organization: University of Cambridge Lines: 24 Message-ID: References: <87skinjwuz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:XZW6taPdG7yxLsTY+RRhqjRxbqk= Sender: news Cc: emacs-pretest-bug@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) On 2009-05-30 00:46 +0100, Jay Belanger wrote: >> Packages such as calc or calendar that use a small window does not play >> well with temp-buffer-resize-mode. i.e. their windows get enlarged by >> temp-buffer-resize-mode. In the case of calc, the size change is >> permanent. > > Calc keeps track of changes to its size, and restarts it in the last > size that it had. Why is that a problem? When temp-buffer-resize-mode is enabled, `C-h v' on a variable that has 2 or 3 lines of documentation will make the calc window takes up 70-80% of the frame. See this screen shot http://imagebin.org/50896 It might be good to track the size, but when the size change is caused by a program instead of the user, it can be annoying. For example, when I'm editing some file and need some calculations, I'd like calc to take up as little screen estate as possible so that the file is visible to help me with the calculations. But I'm not sure whether this is a bug in calc or temp-buffer-resize-mode. -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :. From jay.p.belanger@gmail.com Fri May 29 19:15:42 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 30 May 2009 02:15:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4U2FcHA024353 for ; Fri, 29 May 2009 19:15:40 -0700 Received: from mail.gnu.org ([199.232.76.166]:45964 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MAE6k-0000f4-08 for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 22:15:38 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MAE6j-0002jU-9n for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 22:15:37 -0400 Received: from s6.cableone.net ([24.116.0.232]:50471) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAE6i-0002jG-U6; Fri, 29 May 2009 22:15:37 -0400 Received: from belanger (unverified [24.116.73.151]) by s6.cableone.net (CableOne SMTP Service s6) with ESMTP id 18207413-1872270 for multiple; Fri, 29 May 2009 19:15:35 -0700 From: Jay Belanger To: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> Reply-To: jay.p.belanger@gmail.com CC: jay.p.belanger@gmail.com Date: Fri, 29 May 2009 21:15:34 -0500 In-Reply-To: (Leo's message of "Sat, 30 May 2009 02:43:35 +0100") Message-ID: <873aanxrnd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Vpipe: Scanner said ok (av_avast) X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 14, First 235, in=80, out=0, spam=0 ip=24.116.73.151 X-Originating-IP: 24.116.73.151 X-Abuse-Info: Send abuse complaints to abuse@cableone.net X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Leo writes: ... > But I'm not sure whether this is a bug in calc or temp-buffer-resize-mode. Or neither, and simply unexpected behavior. I've never used temp-buffer-resize-mode before, but if it's supposed to make a window a better size for displaying a temporary buffer, I'm surprised it doesn't change anything back when the buffer is killed or hidden. In this case, I'm not sure it's Calc's job to keep track of why it changed its window size. Perhaps an option "Always start Calc with the initial window height" might be helpful. From rudalics@gmx.at Sat May 30 02:52:01 2009 Received: (at 3419) by emacsbugs.donarmstrong.com; 30 May 2009 09:52:01 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n4U9ptLi002513 for <3419@emacsbugs.donarmstrong.com>; Sat, 30 May 2009 02:51:57 -0700 Received: (qmail invoked by alias); 30 May 2009 09:51:49 -0000 Received: from 62-47-45-167.adsl.highway.telekom.at (EHLO [62.47.45.167]) [62.47.45.167] by mail.gmx.net (mp035) with SMTP; 30 May 2009 11:51:49 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/82hNZ2Ej8osI+gtQNeKhDLtvrY+fFTfAcT51qoh 6D8j6WnR0b8FYm Message-ID: <4A2101B1.8080106@gmx.at> Date: Sat, 30 May 2009 11:51:45 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: jay.p.belanger@gmail.com, 3419@debbugs.gnu.org Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> In-Reply-To: <873aanxrnd.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 >> But I'm not sure whether this is a bug in calc or temp-buffer-resize-mode. > > Or neither, and simply unexpected behavior. > I've never used temp-buffer-resize-mode before, but if it's supposed to > make a window a better size for displaying a temporary buffer, I'm > surprised it doesn't change anything back when the buffer is killed or > hidden. Changing window sizes when `temp-buffer-resize-mode' exits is tricky. That is, we could restore the window configuration that existed when `temp-buffer-resize-mode' was started but that has the often unwanted side-effect that other windows created (deleted) in the meantime get deleted (resurrected). > In this case, I'm not sure it's Calc's job to keep track of why > it changed its window size. Perhaps an option "Always start Calc with > the initial window height" might be helpful. Calc could make its windows fixed-size but that's hardly reasonable with the current handling of fixed-size windows. Any option affecting only the initial size of Calc windows won't help in the present case either. We could give Calc window parameters, say ideal-height and ideal-width, and try to use these when exiting `temp-buffer-resize-mode' but writing the corresponding code won't be trivial. martin From sl392@hermes.cam.ac.uk Sat May 30 03:58:29 2009 Received: (at 3419) by emacsbugs.donarmstrong.com; 30 May 2009 10:58:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.7 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ppsw-1.csi.cam.ac.uk (ppsw-1.csi.cam.ac.uk [131.111.8.131]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4UAwMlH011708 for <3419@emacsbugs.donarmstrong.com>; Sat, 30 May 2009 03:58:25 -0700 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:42217) by ppsw-1.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.151]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1MAMGZ-0003rX-5m (Exim 4.70) (return-path ); Sat, 30 May 2009 11:58:19 +0100 From: Leo To: martin rudalics Cc: 3419@debbugs.gnu.org, jay.p.belanger@gmail.com Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> Date: Sat, 30 May 2009 11:58:19 +0100 In-Reply-To: <4A2101B1.8080106@gmx.at> (martin rudalics's message of "Sat, 30 May 2009 11:51:45 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" On 2009-05-30 10:51 +0100, martin rudalics wrote: >>> But I'm not sure whether this is a bug in calc or temp-buffer-resize-mode. >> >> Or neither, and simply unexpected behavior. >> I've never used temp-buffer-resize-mode before, but if it's supposed to >> make a window a better size for displaying a temporary buffer, I'm >> surprised it doesn't change anything back when the buffer is killed or >> hidden. > > Changing window sizes when `temp-buffer-resize-mode' exits is tricky. > That is, we could restore the window configuration that existed when > `temp-buffer-resize-mode' was started but that has the often unwanted > side-effect that other windows created (deleted) in the meantime get > deleted (resurrected). > >> In this case, I'm not sure it's Calc's job to keep track of why >> it changed its window size. Perhaps an option "Always start Calc with >> the initial window height" might be helpful. > > Calc could make its windows fixed-size but that's hardly reasonable with > the current handling of fixed-size windows. Any option affecting only > the initial size of Calc windows won't help in the present case either. > We could give Calc window parameters, say ideal-height and ideal-width, > and try to use these when exiting `temp-buffer-resize-mode' but writing > the corresponding code won't be trivial. > > martin I wonder if it may be possible to distinguish program or human changing the size. In most cases, when a program (in this case: temp-buffer-resize-mode) changes the size, it is hardly ideal to keep that change. But I agree that for example, if a user drags the calc window to be bigger, it is desirable to keep that change permanent. At the moment I have to have (setq calc-window-height 7) at my finger tip to get rid of the size change sometimes accidentally happens. Leo From rudalics@gmx.at Sat May 30 05:19:46 2009 Received: (at 3419) by emacsbugs.donarmstrong.com; 30 May 2009 12:19:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n4UCJf90029700 for <3419@emacsbugs.donarmstrong.com>; Sat, 30 May 2009 05:19:43 -0700 Received: (qmail invoked by alias); 30 May 2009 12:19:35 -0000 Received: from 62-47-45-167.adsl.highway.telekom.at (EHLO [62.47.45.167]) [62.47.45.167] by mail.gmx.net (mp018) with SMTP; 30 May 2009 14:19:35 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+deZE3Yr2dpRHlKfm95khl5ViAYhN07NWBnkxPjQ 8GzU2e+2B7o1+I Message-ID: <4A212454.8070109@gmx.at> Date: Sat, 30 May 2009 14:19:32 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Leo CC: 3419@debbugs.gnu.org, jay.p.belanger@gmail.com Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72 > I wonder if it may be possible to distinguish program or human changing > the size. In most cases, when a program (in this case: > temp-buffer-resize-mode) changes the size, it is hardly ideal to keep > that change. But I agree that for example, if a user drags the calc > window to be bigger, it is desirable to keep that change permanent. It can be done but it's not trivial. > At the moment I have to have (setq calc-window-height 7) at my finger > tip to get rid of the size change sometimes accidentally happens. In your use case it might make sense to set `split-height-threshold' to a smaller value so the "other" window gets split instead of reused. Alternatively we could allow `temp-buffer-resize-mode' to resize a window iff it was obtained by splitting a window before. martin From rgm@gnu.org Sat May 30 11:22:05 2009 Received: (at 3419) by emacsbugs.donarmstrong.com; 30 May 2009 18:22:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-8.3 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4UIM1rD013383 for <3419@emacsbugs.donarmstrong.com>; Sat, 30 May 2009 11:22:02 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MATBw-0001Bt-1B; Sat, 30 May 2009 14:22:00 -0400 From: Glenn Morris To: 3419@debbugs.gnu.org Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4A212454.8070109@gmx.at> X-Spook: JPL UOP John Kerry 22nd SAS Belknap Honduras Indigo X-Ran: xNPo~I$I:}4qaOp1;+R.J=rR=rpg+["eK)jOldSmfAG+?MS^%||&:J"^yA)s3iUe1I1w;9 X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 30 May 2009 14:21:59 -0400 In-Reply-To: <4A212454.8070109@gmx.at> (martin rudalics's message of "Sat, 30 May 2009 14:19:32 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I winder if temp-buffer-resize-mode should only do its thing if the window displaying the temp-buffer was created specifically to show said buffer. If it was a pre-existing window, it should leave it alone. ? From sl392@hermes.cam.ac.uk Sat May 30 15:37:42 2009 Received: (at 3419) by emacsbugs.donarmstrong.com; 30 May 2009 22:37:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ppsw-7.csi.cam.ac.uk (ppsw-7.csi.cam.ac.uk [131.111.8.137]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4UMbapN032336 for <3419@emacsbugs.donarmstrong.com>; Sat, 30 May 2009 15:37:38 -0700 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:60151) by ppsw-7.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1MAXBG-0000KE-Mf (Exim 4.70) (return-path ); Sat, 30 May 2009 23:37:34 +0100 From: Leo To: Glenn Morris Cc: 3419@debbugs.gnu.org Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4A212454.8070109@gmx.at> Date: Sat, 30 May 2009 23:37:33 +0100 In-Reply-To: (Glenn Morris's message of "Sat, 30 May 2009 14:21:59 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" On 2009-05-30 19:21 +0100, Glenn Morris wrote: > I winder if temp-buffer-resize-mode should only do its thing if the > window displaying the temp-buffer was created specifically to show > said buffer. If it was a pre-existing window, it should leave it > alone. ? This seems to imply that if before displaying the temp-buffer there's only one window do the resize otherwise do nothing. This is better than the default behaviour because temp-buffer-resize-mode is only useful in very limited cases. -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :. From sl392@hermes.cam.ac.uk Tue Jun 2 08:57:22 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Jun 2009 15:57:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n52FvHPZ026613 for ; Tue, 2 Jun 2009 08:57:19 -0700 Received: from mx10.gnu.org ([199.232.76.166]:50292) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MBWMX-0008K9-2P for emacs-pretest-bug@gnu.org; Tue, 02 Jun 2009 11:57:17 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MBWMV-0006IC-I8 for emacs-pretest-bug@gnu.org; Tue, 02 Jun 2009 11:57:16 -0400 Received: from ppsw-5.csi.cam.ac.uk ([131.111.8.135]:46636) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBWMV-0006Hs-6z; Tue, 02 Jun 2009 11:57:15 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:32967) by ppsw-5.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.155]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1MBWMT-0004nY-Gw (Exim 4.70) (return-path ); Tue, 02 Jun 2009 16:57:13 +0100 From: Leo To: jay.p.belanger@gmail.com Cc: 3419@debbugs.gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> Date: Tue, 02 Jun 2009 16:57:12 +0100 In-Reply-To: <873aanxrnd.fsf@gmail.com> (Jay Belanger's message of "Fri, 29 May 2009 21:15:34 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Leo, Shidai Liu" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) On 2009-05-30 03:15 +0100, Jay Belanger wrote: > I've never used temp-buffer-resize-mode before, but if it's supposed to > make a window a better size for displaying a temporary buffer, I'm > surprised it doesn't change anything back when the buffer is killed or > hidden. In this case, I'm not sure it's Calc's job to keep track of why > it changed its window size. Perhaps an option "Always start Calc with > the initial window height" might be helpful. I have started looking for a workaround to save me doing (setq calc-window-height 7) all the time. I am thinking of using calc-end-hook, however it is located right in the middle of calc-quit. So I cannot use the following: (add-hook 'calc-end-hook (lambda () (setq calc-window-height 7))) But it seems to me that moving the hook to the very end of calc-quit is better than putting it in the middle. Do you recall any reason why this is not the case? Thank you. -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :. From jay.p.belanger@gmail.com Tue Jun 2 12:47:48 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Jun 2009 19:47:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.6 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n52JliDt026652 for ; Tue, 2 Jun 2009 12:47:45 -0700 Received: from mail.gnu.org ([199.232.76.166]:39189 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MBZxX-0001S3-1X for emacs-pretest-bug@gnu.org; Tue, 02 Jun 2009 15:47:43 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MBZxW-0001xd-41 for emacs-pretest-bug@gnu.org; Tue, 02 Jun 2009 15:47:42 -0400 Received: from mail.truman.edu ([150.243.160.94]:41500 helo=uranium.truman.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBZWo-0002jL-EP; Tue, 02 Jun 2009 15:20:06 -0400 Received: from vh213601.truman.edu (vh213601.truman.edu [150.243.162.59]) by uranium.truman.edu (Postfix) with ESMTP id 7BB50128291; Tue, 2 Jun 2009 14:19:49 -0500 (CDT) From: Jay Belanger To: Leo Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> Reply-To: jay.p.belanger@gmail.com CC: jay.p.belanger@gmail.com Date: Tue, 02 Jun 2009 14:20:45 -0500 In-Reply-To: (Leo's message of "Tue, 02 Jun 2009 16:57:12 +0100") Message-ID: <87ab4qmohe.fsf@vh213601.truman.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Leo writes: > I have started looking for a workaround to save me doing (setq > calc-window-height 7) all the time. I am thinking of using > calc-end-hook, however it is located right in the middle of calc-quit. > So I cannot use the following: > > (add-hook 'calc-end-hook > (lambda () > (setq calc-window-height 7))) > > But it seems to me that moving the hook to the very end of calc-quit is > better than putting it in the middle. Do you recall any reason why this > is not the case? Thank you. It is mentioned in the documentation that the hook is called early, so I guess it was done on purpose. I don't know why, though. A workaround for now might be to define `my-calc' or `my-calc-dispatch' with (defun my-calc () (interactive) (setq calc-window-heigth) (calc....)) From geb-bug-gnu-emacs@m.gmane.org Tue Jun 2 14:29:23 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Jun 2009 21:29:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.3 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n52LTGd3008537 for ; Tue, 2 Jun 2009 14:29:18 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBbXm-0008AX-NN for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 17:29:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBbXe-00081z-Da for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 17:29:11 -0400 Received: from [199.232.76.173] (port=33509 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBbXe-00081f-4z for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 17:29:06 -0400 Received: from mx20.gnu.org ([199.232.41.8]:3401) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBbXd-0003x8-Sf for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 17:29:05 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBbXb-0008MY-Mq for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 17:29:03 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MBbXX-0000Ql-8u for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2009 21:28:59 +0000 Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Jun 2009 21:28:59 +0000 Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Jun 2009 21:28:59 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Leo Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Date: Tue, 02 Jun 2009 22:28:42 +0100 Organization: University of Cambridge Lines: 16 Message-ID: References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <87ab4qmohe.fsf@vh213601.truman.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:qIU9nkE2pYRhZr3KD7Sg10kLa2M= Sender: news Cc: emacs-pretest-bug@gnu.org X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) On 2009-06-02 20:20 +0100, Jay Belanger wrote: > It is mentioned in the documentation that the hook is called early, so I > guess it was done on purpose. I don't know why, though. > > A workaround for now might be to define `my-calc' or `my-calc-dispatch' > with > (defun my-calc () > (interactive) > (setq calc-window-heigth) > (calc....)) I have disabled temp-buffer-resize-mode until it is properly implemented. Thanks. -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 24 07:09:36 2011 Received: (at 3419) by debbugs.gnu.org; 24 Oct 2011 11:09:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIIPQ-0003t8-4w for submit@debbugs.gnu.org; Mon, 24 Oct 2011 07:09:36 -0400 Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIIPJ-0003ss-Vb for 3419@debbugs.gnu.org; Mon, 24 Oct 2011 07:09:31 -0400 Received: by qadc10 with SMTP id c10so2142535qad.3 for <3419@debbugs.gnu.org>; Mon, 24 Oct 2011 04:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=CdsR1woEVcKnanDNU/8jJiF606uAO538MylCL/Iu1SU=; b=PPv1FbWYsdgHJn4looxxWW7BhvMX7dVS7ffJjWkRaenU2DRrulXUtssyeuWb5edCne Dc9Y5xEW2+wvqBQ4OCrgZ3RpmobGesSCOxiQp3uruF7vK9lvaynwyVfoeErTsU4FVdAr Ugia5RcUwZ36Ohpi6I7ZVsHhgL7yDRKxWZU9I= Received: by 10.68.14.105 with SMTP id o9mr47271545pbc.95.1319454473247; Mon, 24 Oct 2011 04:07:53 -0700 (PDT) Received: from localhost ([123.114.49.65]) by mx.google.com with ESMTPS id ko15sm66360228pbb.9.2011.10.24.04.07.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Oct 2011 04:07:50 -0700 (PDT) From: Leo To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= Date: Mon, 24 Oct 2011 19:07:39 +0800 In-Reply-To: <4A2101B1.8080106@gmx.at> (martin rudalics's message of "Sat, 30 May 2009 11:51:45 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 3419 Cc: jay.p.belanger@gmail.com, 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On 2009-05-30 17:51 +0800, martin rudalics wrote: [snipped 18 lines] > Calc could make its windows fixed-size but that's hardly reasonable with > the current handling of fixed-size windows. Any option affecting only > the initial size of Calc windows won't help in the present case either. > We could give Calc window parameters, say ideal-height and ideal-width, > and try to use these when exiting `temp-buffer-resize-mode' but writing > the corresponding code won't be trivial. > > martin Is there a satisfactory solution in light of the new windowing features? Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 24 12:17:45 2011 Received: (at 3419) by debbugs.gnu.org; 24 Oct 2011 16:17:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RINDa-0003Me-3q for submit@debbugs.gnu.org; Mon, 24 Oct 2011 12:17:43 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RINDU-0003MI-L3 for 3419@debbugs.gnu.org; Mon, 24 Oct 2011 12:17:39 -0400 Received: (qmail invoked by alias); 24 Oct 2011 16:15:57 -0000 Received: from 62-47-41-231.adsl.highway.telekom.at (EHLO [62.47.41.231]) [62.47.41.231] by mail.gmx.net (mp065) with SMTP; 24 Oct 2011 18:15:57 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18MIAJFADoMSJA6phR+hgMRWZHFosAzDCXXKP3e4K ZJajKspgQj4fyY Message-ID: <4EA58F3D.8030703@gmx.at> Date: Mon, 24 Oct 2011 18:15:57 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Leo Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 3419 Cc: jay.p.belanger@gmail.com, 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) >> Calc could make its windows fixed-size but that's hardly reasonable with >> the current handling of fixed-size windows. Any option affecting only >> the initial size of Calc windows won't help in the present case either. >> We could give Calc window parameters, say ideal-height and ideal-width, >> and try to use these when exiting `temp-buffer-resize-mode' but writing >> the corresponding code won't be trivial. >> >> martin > > Is there a satisfactory solution in light of the new windowing features? It depends on what you want. You can resove the example in your original posting > 1. Emacs -Q > 2. (temp-buffer-resize-mode t) > 3. M-x calc > 4. h h by doing (setq temp-buffer-max-height (lambda (buffer) (max (window-total-size) (/ (- (frame-height) 2) 2)))) in your .emacs (personally I think that this should be the default value). If you refer to Jay's remark > I've never used temp-buffer-resize-mode before, but if it's supposed to > make a window a better size for displaying a temporary buffer, I'm > surprised it doesn't change anything back when the buffer is killed or > hidden. that is you want to get the *scratch* window back in its original size, then typing "q" in the help window should do what you want. martin From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 24 22:19:00 2011 Received: (at submit) by debbugs.gnu.org; 25 Oct 2011 02:19:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIWbT-0004Ar-I1 for submit@debbugs.gnu.org; Mon, 24 Oct 2011 22:19:00 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIWbQ-0004Ae-LA for submit@debbugs.gnu.org; Mon, 24 Oct 2011 22:18:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIWZn-0001Vm-WB for submit@debbugs.gnu.org; Mon, 24 Oct 2011 22:17:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_NUMERIC_HELO, RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:49242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIWZn-0001Vh-U9 for submit@debbugs.gnu.org; Mon, 24 Oct 2011 22:17:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIWZm-00082B-NG for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 22:17:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIWZl-0001VR-FQ for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 22:17:14 -0400 Received: from lo.gmane.org ([80.91.229.12]:60466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIWZl-0001VM-AL for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2011 22:17:13 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RIWZi-0006Ht-Qw for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 04:17:10 +0200 Received: from 119.255.41.67 ([119.255.41.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Oct 2011 04:17:10 +0200 Received: from sdl.web by 119.255.41.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Oct 2011 04:17:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Leo Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Date: Tue, 25 Oct 2011 10:17:04 +0800 Lines: 23 Message-ID: <86ty6x4xy7.fsf@gmail.com> References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 119.255.41.67 Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:wC7hdUsxPVgld67EHpHn2PXJaTY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On 2011-10-25 00:15 +0800, martin rudalics wrote: >> 1. Emacs -Q >> 2. (temp-buffer-resize-mode t) >> 3. M-x calc >> 4. h h > > by doing > > (setq temp-buffer-max-height > (lambda (buffer) > (max > (window-total-size) > (/ (- (frame-height) 2) 2)))) > > in your .emacs (personally I think that this should be the default > value). If you refer to Jay's remark Thanks, this seems to work well. But I am using a build from 2011-09-04. Also I have noticed that `q' in calc no longer deletes all its windows. So after hitting `q', I am left with three windows on the frame as shown here: http://i.imgur.com/jFKG5.jpg. Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 24 22:48:50 2011 Received: (at 3419) by debbugs.gnu.org; 25 Oct 2011 02:48:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIX4M-0004t3-CL for submit@debbugs.gnu.org; Mon, 24 Oct 2011 22:48:50 -0400 Received: from mail-gx0-f172.google.com ([209.85.161.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIX4I-0004sq-Q1 for 3419@debbugs.gnu.org; Mon, 24 Oct 2011 22:48:47 -0400 Received: by ggnv1 with SMTP id v1so40754ggn.3 for <3419@debbugs.gnu.org>; Mon, 24 Oct 2011 19:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:reply-to:cc:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=7BAB+gK36lLg8Z9/xx3Z6QAX5w6C2gv3KT4Z/qGdN7E=; b=N91S1OMRgndM/Nat/cRO6P8g7Y3mcaIqU4sEw0GXB3ldHNHO7g5IO+yTYlrn78+oZa BnSLFeNS1z6S8nlie4GAxJL2WIAZyTqpGIP6EtbJweSey4BS/Pp6HnNbHsQ8G5vHRD1H 61bdKfa9r2ghST1QxzTEK3iJod4TOJpLRzrlU= Received: by 10.236.189.6 with SMTP id b6mr16980714yhn.87.1319510826775; Mon, 24 Oct 2011 19:47:06 -0700 (PDT) Received: from belanger-desktop (184-155-95-203.cpe.cableone.net. [184.155.95.203]) by mx.google.com with ESMTPS id z28sm36018509yhl.4.2011.10.24.19.47.04 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Oct 2011 19:47:05 -0700 (PDT) From: Jay Belanger To: Leo Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <86ty6x4xy7.fsf@gmail.com> Date: Mon, 24 Oct 2011 21:47:03 -0500 In-Reply-To: <86ty6x4xy7.fsf@gmail.com> (Leo's message of "Tue, 25 Oct 2011 10:17:04 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 3419 Cc: jay.p.belanger@gmail.com, 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: jay.p.belanger@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Leo writes: ... > Thanks, this seems to work well. But I am using a build from 2011-09-04. > Also I have noticed that `q' in calc no longer deletes all its windows. > So after hitting `q', I am left with three windows on the frame as shown > here: http://i.imgur.com/jFKG5.jpg. I haven't been able to recreate this with a current build. I tried it from a gnus buffer, as you did, and from the scratch buffer. I tried it with and without the temp-buffer adjustments that martin mentioned. Nothing in calc.el has changed since 2011-09-04, either. Is there anything special you did before you started and quit Calc? Jay From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 25 11:23:13 2011 Received: (at 3419) by debbugs.gnu.org; 25 Oct 2011 15:23:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIiqP-0006qA-C4 for submit@debbugs.gnu.org; Tue, 25 Oct 2011 11:23:13 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIiqN-0006pv-72 for 3419@debbugs.gnu.org; Tue, 25 Oct 2011 11:23:11 -0400 Received: by iabn5 with SMTP id n5so666440iab.3 for <3419@debbugs.gnu.org>; Tue, 25 Oct 2011 08:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=0r/tOBwTi26WL88n+3JzZzKgWPop3VdlMDXNIQzLcAQ=; b=P+BJ1AoyU/5mWOYvePLzXigYvrgoUGi54ERqOjIxSJRe2bU0rNywFwx4gWnNHJuZY2 0UlQQi2HLB9WQGaU8xtMBZG0/pUIZUlxLhe3ALth5ezqAL2OWV6SlUQluoqgza4BsYzm s6AgBvUd6WTBxVJdqwL/XBcnheVE0Wezgk7s4= Received: by 10.231.0.208 with SMTP id 16mr483817ibc.50.1319556088018; Tue, 25 Oct 2011 08:21:28 -0700 (PDT) Received: from Victoria.local ([222.130.137.211]) by mx.google.com with ESMTPS id g16sm59551412ibs.8.2011.10.25.08.21.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Oct 2011 08:21:26 -0700 (PDT) From: Leo To: jay.p.belanger@gmail.com Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <86ty6x4xy7.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= Date: Tue, 25 Oct 2011 23:20:40 +0800 In-Reply-To: (Jay Belanger's message of "Mon, 24 Oct 2011 21:47:03 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 3419 Cc: 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On 2011-10-25 10:47 +0800, Jay Belanger wrote: > I haven't been able to recreate this with a current build. I tried it > from a gnus buffer, as you did, and from the scratch buffer. I tried > it with and without the temp-buffer adjustments that martin mentioned. > Nothing in calc.el has changed since 2011-09-04, either. Is there > anything special you did before you started and quit Calc? I have just tried it with the latest build and the problem is gone. Leo From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 29 00:57:24 2011 Received: (at control) by debbugs.gnu.org; 29 Oct 2011 04:57:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK0yy-0005lQ-0y for submit@debbugs.gnu.org; Sat, 29 Oct 2011 00:57:24 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK0yv-0005lI-Py for control@debbugs.gnu.org; Sat, 29 Oct 2011 00:57:22 -0400 Received: from [155.69.18.173] (port=56634 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RK0x0-0001WA-Pl for control@debbugs.gnu.org; Sat, 29 Oct 2011 00:55:23 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 3419 Date: Sat, 29 Oct 2011 12:55:17 +0800 Message-ID: <87hb2s9z2i.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) close 3419 thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 29 07:28:04 2011 Received: (at 3419) by debbugs.gnu.org; 29 Oct 2011 11:28:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK752-00034V-0m for submit@debbugs.gnu.org; Sat, 29 Oct 2011 07:28:04 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK750-00034O-71 for 3419@debbugs.gnu.org; Sat, 29 Oct 2011 07:28:02 -0400 Received: by ywt2 with SMTP id 2so4319638ywt.3 for <3419@debbugs.gnu.org>; Sat, 29 Oct 2011 04:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=rYSbUZrY5WWTKoDu4TCFAKyyyHUjxu43fUvxxDQw7Dc=; b=bllIa7ZbGO/QrFqDivRSU7HbYNSh5SyG0wRyCYM+84SO93YnIvbwHaoCbBel99wVNq B02irXbcCPRXmdXFETkES+YCp5xwniD3m38anUTWvzakWyiS2BViA0I0mfOWOQg5IG+K Ld+ODEe+SEiAxrqlujpArZ2SX1L7oiasfQ5WQ= Received: by 10.68.32.2 with SMTP id e2mr10231216pbi.68.1319887561772; Sat, 29 Oct 2011 04:26:01 -0700 (PDT) Received: from Victoria.local ([123.114.42.230]) by mx.google.com with ESMTPS id z3sm32090480pbu.7.2011.10.29.04.25.57 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Oct 2011 04:26:00 -0700 (PDT) From: Leo To: Chong Yidong Subject: Re: close 3419 References: <87hb2s9z2i.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUKDAg1NjRWV1V9fnyg op/DxcLk5uP8/voi63ReAAAACXBIWXMAAAWJAAAFiQFtaJ36AAAAB3RJTUUH1goZAgAz00bgXgAA AeVJREFUKM9lk0Fz2jAQhQXJD3CCO70CmcC1YMtcWyTZ14Bl69xats4N9r6/3zWQBlodNKNPu/s0 b1cCQFuZGpfVVh3vAvBJolIXRkapSuoRUtIdFyo1Y5xSdlAj7OtvD1XnXxmWRi+eWgcxyCed1lVV B1CrKyujMoi+eLA5kU1SsjoHlW+nQjTtFxk4MXgrOxvIqzoTZR8XgPaLl419zgsMaSGFPiUOZCIh thsx5Xy9NsK8Kwf/JoQgMxcVJ301HKkcSWaT0O7FY056J4U9xcYfnmVXG4801lW6lqwu2nKFZoHC HuzvaTVndZ+LaRQgZdthXw1cpynEkLEwyFHXk/aIxNQ6QeooJuzPMB+wn+D7JJNsiCcVA13/A3h/ xE9J+WidpAwoYNmRFwyvSRhNVtsdaAewzZZP5uw82QL9+tyNfocyP0McAzICUr5Mk9RdIjWasUNx aIIt6NK4ZtXIMdfMQt3nuMAyWbLI4DqZ4xPq/ag8jPond4XU/cLuOgw6XCFX/YCUfcDAMMH58fD4 G9kDchwfqVefkBwup2uZM+Q4WhJt5jN3AxXCsaS2yXEDuWgS8VOzW0gFjhEPmLyFMKBFaLb1HRwc DiaKwx0EeTMRYnYPQRW3PP4HApvlMv0PttX5v/D6Aws3IOSEwzmLAAAAAElFTkSuQmCC Date: Sat, 29 Oct 2011 19:25:21 +0800 In-Reply-To: <87hb2s9z2i.fsf@gnu.org> (Chong Yidong's message of "Sat, 29 Oct 2011 12:55:17 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 3419 Cc: 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On 2011-10-29 12:55 +0800, Chong Yidong wrote: > close 3419 > thanks The original bug is still there. My last message was addressing another problem popped up in the discussion. Leo From unknown Tue Jun 17 20:14:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Sun, 30 Oct 2011 03:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 31 06:39:47 2011 Received: (at 3419) by debbugs.gnu.org; 31 Oct 2011 10:39:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKpHO-0007sE-RU for submit@debbugs.gnu.org; Mon, 31 Oct 2011 06:39:47 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKpHN-0007s7-1K for 3419@debbugs.gnu.org; Mon, 31 Oct 2011 06:39:46 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 66ACD6E8051; Mon, 31 Oct 2011 03:37:33 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 4A7F7451C5C2; Mon, 31 Oct 2011 03:37:31 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> Date: Mon, 31 Oct 2011 12:34:05 +0200 In-Reply-To: <4EA58F3D.8030703@gmx.at> (martin rudalics's message of "Mon, 24 Oct 2011 18:15:57 +0200") Message-ID: <87y5w14fy2.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> Is there a satisfactory solution in light of the new windowing features? > > It depends on what you want. You can resove the example in your > original posting > >> 1. Emacs -Q >> 2. (temp-buffer-resize-mode t) >> 3. M-x calc >> 4. h h When I type `M-x calc RET h h', it displays the *Help* window in the Calc window that is too small to read comfortably the Help buffer. That's because I have in .emacs: (add-to-list 'same-window-buffer-names "*Help*") Is it possible to display the Help buffer in another window in this case when `h h' is typed in the Calc window? From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 31 14:58:29 2011 Received: (at 3419) by debbugs.gnu.org; 31 Oct 2011 18:58:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKx40-0005No-Sx for submit@debbugs.gnu.org; Mon, 31 Oct 2011 14:58:29 -0400 Received: from mail.truman.edu ([150.243.162.204] helo=uranium.truman.edu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKx3y-0005Ng-Oj for 3419@debbugs.gnu.org; Mon, 31 Oct 2011 14:58:27 -0400 Received: from vh213601.truman.edu (vh213601.truman.edu [150.243.162.59]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by uranium.truman.edu (Postfix) with ESMTPS id DAEC512833C; Mon, 31 Oct 2011 13:56:12 -0500 (CDT) From: Jay Belanger To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> Date: Mon, 31 Oct 2011 13:56:17 -0500 In-Reply-To: <87y5w14fy2.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 31 Oct 2011 12:34:05 +0200") Message-ID: <87y5w12dny.fsf@vh213601.truman.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 3419 Cc: jay.p.belanger@gmail.com, 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: jay.p.belanger@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Juri Linkov writes: ... > When I type `M-x calc RET h h', it displays the *Help* window in the > Calc window that is too small to read comfortably the Help buffer. > > That's because I have in .emacs: > (add-to-list 'same-window-buffer-names "*Help*") > > Is it possible to display the Help buffer in another window in this case > when `h h' is typed in the Calc window? I'm not sure what you want, since you are explicitly telling Emacs to display Help in the same window. Is that line from your .emacs for some other *Help* buffer, and you never want the Calc help to appear in the same window? Perhaps if the Calc help were named "*Calc Help*" (or better, perhaps, using a variable to determine the name, `calc-help-buffer-name' or somesuch). That wouldn't be hard, but perhaps should wait until after 24.1. Jay From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 01 05:37:57 2011 Received: (at 3419) by debbugs.gnu.org; 1 Nov 2011 09:37:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLAn5-00009k-9G for submit@debbugs.gnu.org; Tue, 01 Nov 2011 05:37:57 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLAn2-00009X-G8 for 3419@debbugs.gnu.org; Tue, 01 Nov 2011 05:37:53 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 101A56E805B; Tue, 1 Nov 2011 02:35:35 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 2B38B451C5B8; Tue, 1 Nov 2011 02:35:33 -0700 (PDT) From: Juri Linkov To: jay.p.belanger@gmail.com Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> Date: Tue, 01 Nov 2011 11:27:20 +0200 In-Reply-To: <87y5w12dny.fsf@vh213601.truman.edu> (Jay Belanger's message of "Mon, 31 Oct 2011 13:56:17 -0500") Message-ID: <87y5w02s2n.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> When I type `M-x calc RET h h', it displays the *Help* window in the >> Calc window that is too small to read comfortably the Help buffer. >> >> That's because I have in .emacs: >> (add-to-list 'same-window-buffer-names "*Help*") >> >> Is it possible to display the Help buffer in another window in this case >> when `h h' is typed in the Calc window? > > I'm not sure what you want, since you are explicitly telling Emacs to > display Help in the same window. Is that line from your .emacs for some > other *Help* buffer, and you never want the Calc help to appear in the > same window? Perhaps if the Calc help were named "*Calc Help*" (or > better, perhaps, using a variable to determine the name, > `calc-help-buffer-name' or somesuch). That wouldn't be hard, but > perhaps should wait until after 24.1. Some modes bind `same-window-buffer-names' to nil when it makes no sense to display the *Help* or *Info* buffer in the same window when it is too small, thus overridding the user's settings. IIUC, with the new window rules, the right way to do this is to bind `display-buffer-overriding-action' to `display-buffer-pop-up-window'. But this doesn't work as expected: (let ((display-buffer-overriding-action '(display-buffer-pop-up-window))) (with-output-to-temp-buffer "*Help*" (princ "GNU Emacs Calculator.\n"))) It still displays the *Help* buffer in the same window when (add-to-list 'same-window-buffer-names "*Help*") is presented in .emacs. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 01 10:40:44 2011 Received: (at 3419) by debbugs.gnu.org; 1 Nov 2011 14:40:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLFW8-0000Cv-3a for submit@debbugs.gnu.org; Tue, 01 Nov 2011 10:40:44 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RLFW4-0000Cm-7M for 3419@debbugs.gnu.org; Tue, 01 Nov 2011 10:40:41 -0400 Received: (qmail invoked by alias); 01 Nov 2011 14:38:20 -0000 Received: from 62-47-63-161.adsl.highway.telekom.at (EHLO [62.47.63.161]) [62.47.63.161] by mail.gmx.net (mp023) with SMTP; 01 Nov 2011 15:38:21 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18UHkZzoIkULs2k1zWgEkO6d/smw9QoMoRnXjItQ2 5X1FuxY6AOpAYY Message-ID: <4EB00459.20708@gmx.at> Date: Tue, 01 Nov 2011 15:38:17 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> In-Reply-To: <87y5w02s2n.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 3419 Cc: 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) > Some modes bind `same-window-buffer-names' to nil when it makes no sense > to display the *Help* or *Info* buffer in the same window when it is > too small, thus overridding the user's settings. > > IIUC, with the new window rules, the right way to do this is to bind > `display-buffer-overriding-action' to `display-buffer-pop-up-window'. > But this doesn't work as expected: > > (let ((display-buffer-overriding-action '(display-buffer-pop-up-window))) > (with-output-to-temp-buffer "*Help*" > (princ "GNU Emacs Calculator.\n"))) > > It still displays the *Help* buffer in the same window when > (add-to-list 'same-window-buffer-names "*Help*") is presented in .emacs. I suppose because `display-buffer-pop-up-window' cannot split the window due to `split-height-threshold' being too large. You really just wanted to add (inhibit-same-window . t) somewhere. A related problem: With emacs -Q insert and evaluate in *scratch* the form (customize-set-variable 'display-buffer-alist '(("\\*.*\\*" . (display-buffer-pop-up-frame . nil)))) move point to "alist" and type M-$. Gets me ispell-highlight-spelling-error-overlay: Marker points into wrong buffer martin From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 01 16:03:14 2011 Received: (at 3419) by debbugs.gnu.org; 1 Nov 2011 20:03:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLKYD-0000lH-Kv for submit@debbugs.gnu.org; Tue, 01 Nov 2011 16:03:14 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLKYC-0000l5-66 for 3419@debbugs.gnu.org; Tue, 01 Nov 2011 16:03:12 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pA1K0fx4001281; Tue, 1 Nov 2011 16:00:41 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id A05DEB465D; Tue, 1 Nov 2011 16:00:46 -0400 (EDT) From: Stefan Monnier To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Message-ID: References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> Date: Tue, 01 Nov 2011 16:00:46 -0400 In-Reply-To: <4EB00459.20708@gmx.at> (martin rudalics's message of "Tue, 01 Nov 2011 15:38:17 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4028=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4028> : streams <697482> : uri <997093> X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: 3419 Cc: Juri Linkov , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) > You really just wanted to add (inhibit-same-window . t) somewhere. That's my impression as well. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 01 18:59:45 2011 Received: (at 3419) by debbugs.gnu.org; 1 Nov 2011 22:59:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLNJ2-0004qV-Vk for submit@debbugs.gnu.org; Tue, 01 Nov 2011 18:59:45 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLNJ0-0004qN-Ew for 3419@debbugs.gnu.org; Tue, 01 Nov 2011 18:59:43 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 48C1D6E80A2; Tue, 1 Nov 2011 15:57:21 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 5FA80451C2D8; Tue, 1 Nov 2011 15:57:20 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> Date: Tue, 01 Nov 2011 23:54:43 +0200 In-Reply-To: <4EB00459.20708@gmx.at> (martin rudalics's message of "Tue, 01 Nov 2011 15:38:17 +0100") Message-ID: <877h3jzgsc.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > I suppose because `display-buffer-pop-up-window' cannot split the window > due to `split-height-threshold' being too large. You really just wanted > to add (inhibit-same-window . t) somewhere. Thanks, this works as expected: (let ((display-buffer-overriding-action '(display-buffer-reuse-window (inhibit-same-window . t)))) (with-output-to-temp-buffer "*Help*" (princ "GNU Emacs Calculator.\n"))) From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 01 21:24:24 2011 Received: (at 3419) by debbugs.gnu.org; 2 Nov 2011 01:24:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLPZ2-0008BE-0h for submit@debbugs.gnu.org; Tue, 01 Nov 2011 21:24:24 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLPZ0-0008B6-HI for 3419@debbugs.gnu.org; Tue, 01 Nov 2011 21:24:22 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pA21Lrm9008714; Tue, 1 Nov 2011 21:21:53 -0400 Received: by pastel.home (Postfix, from userid 20848) id 3FDD2592E5; Tue, 1 Nov 2011 21:21:53 -0400 (EDT) From: Stefan Monnier To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Message-ID: References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> Date: Tue, 01 Nov 2011 21:21:53 -0400 In-Reply-To: <877h3jzgsc.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 01 Nov 2011 23:54:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4028=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4028> : streams <697554> : uri <997239> X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: 3419 Cc: martin rudalics , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) > (let ((display-buffer-overriding-action '(display-buffer-reuse-window > (inhibit-same-window . t)))) Better would be > (let ((display-buffer-overriding-action '(nil (inhibit-same-window . t)))) -- Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 02 05:56:07 2011 Received: (at 3419) by debbugs.gnu.org; 2 Nov 2011 09:56:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLXYE-0002fv-Qi for submit@debbugs.gnu.org; Wed, 02 Nov 2011 05:56:07 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLXYB-0002fm-E8 for 3419@debbugs.gnu.org; Wed, 02 Nov 2011 05:56:04 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 38AB26E8056; Wed, 2 Nov 2011 02:53:40 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id C7B93451C577; Wed, 2 Nov 2011 02:53:38 -0700 (PDT) From: Juri Linkov To: Stefan Monnier Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> Date: Wed, 02 Nov 2011 11:35:39 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 01 Nov 2011 21:21:53 -0400") Message-ID: <8739e6zx1w.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: martin rudalics , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> (let ((display-buffer-overriding-action '(display-buffer-reuse-window >> (inhibit-same-window . t)))) > > Better would be > >> (let ((display-buffer-overriding-action '(nil (inhibit-same-window . t)))) Yes, this works too. Looking at the available display actions in window.el, I found that there are `display-buffer--other-frame-action' and the command `display-buffer-other-frame' that uses it, but their counterpart window functions are missing. Copying these frame-related functions and replacing "frame" with "window" in their names, produces two new functions: (defvar display-buffer--other-window-action '((display-buffer-reuse-window display-buffer--special display-buffer-pop-up-window) (inhibit-same-window . t))) (defun display-buffer-other-window (buffer) (interactive "BDisplay buffer in other window: ") (display-buffer buffer display-buffer--other-window-action)) I don't know why these window functions are omitted from window.el, but the `display-buffer--other-window-action' would be useful for this case: (let ((display-buffer-overriding-action display-buffer--other-window-action)) (with-output-to-temp-buffer "*Help*" (princ "GNU Emacs Calculator.\n"))) From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 02 06:06:49 2011 Received: (at 3419) by debbugs.gnu.org; 2 Nov 2011 10:06:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLXib-0002vg-0Z for submit@debbugs.gnu.org; Wed, 02 Nov 2011 06:06:49 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RLXiX-0002vW-KP for 3419@debbugs.gnu.org; Wed, 02 Nov 2011 06:06:46 -0400 Received: (qmail invoked by alias); 02 Nov 2011 10:04:22 -0000 Received: from 62-47-35-249.adsl.highway.telekom.at (EHLO [62.47.35.249]) [62.47.35.249] by mail.gmx.net (mp063) with SMTP; 02 Nov 2011 11:04:22 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18sPCImPV4s6D2Fq5StEa75A8ceHxP/nWafv3N1Bc 6YdjKMH4CZMoco Message-ID: <4EB115A2.1090407@gmx.at> Date: Wed, 02 Nov 2011 11:04:18 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> In-Reply-To: <8739e6zx1w.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) > (defvar display-buffer--other-window-action > '((display-buffer-reuse-window > display-buffer--special > display-buffer-pop-up-window) > (inhibit-same-window . t))) Isn't this the default behavior? Try reusing a window showing the buffer, try the special stuff, try popping up a new window, try reusing another window? martin From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 02 08:39:35 2011 Received: (at 3419) by debbugs.gnu.org; 2 Nov 2011 12:39:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLa6P-0007Ae-HU for submit@debbugs.gnu.org; Wed, 02 Nov 2011 08:39:35 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLa6N-0007AA-P6 for 3419@debbugs.gnu.org; Wed, 02 Nov 2011 08:39:32 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pA2Cb7mC005025; Wed, 2 Nov 2011 08:37:07 -0400 Received: by pastel.home (Postfix, from userid 20848) id 916DC592E5; Wed, 2 Nov 2011 08:37:01 -0400 (EDT) From: Stefan Monnier To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Message-ID: References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> Date: Wed, 02 Nov 2011 08:37:01 -0400 In-Reply-To: <8739e6zx1w.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 02 Nov 2011 11:35:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4028=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4028> : streams <697733> : uri <997596> X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: 3419 Cc: martin rudalics , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) >>> (let ((display-buffer-overriding-action '(display-buffer-reuse-window >>> (inhibit-same-window . t)))) >> Better would be >>> (let ((display-buffer-overriding-action '(nil (inhibit-same-window . t)))) > Looking at the available display actions in window.el, I found that > there are `display-buffer--other-frame-action' and the command > `display-buffer-other-frame' that uses it, but their counterpart > window functions are missing. We don't need them: inhibit-same-window works as well. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 05:14:40 2011 Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 09:14:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLtNf-00025J-Kj for submit@debbugs.gnu.org; Thu, 03 Nov 2011 05:14:40 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLtNc-000250-9l for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 05:14:36 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 428D76E8067; Thu, 3 Nov 2011 02:12:08 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 3B4BE451C2D8; Thu, 3 Nov 2011 02:12:06 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> Date: Thu, 03 Nov 2011 11:05:45 +0200 In-Reply-To: <4EB115A2.1090407@gmx.at> (martin rudalics's message of "Wed, 02 Nov 2011 11:04:18 +0100") Message-ID: <87wrbhr2xi.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> (defvar display-buffer--other-window-action >> '((display-buffer-reuse-window >> display-buffer--special >> display-buffer-pop-up-window) >> (inhibit-same-window . t))) > > Isn't this the default behavior? Try reusing a window showing the > buffer, try the special stuff, try popping up a new window, try reusing > another window? As I understand from window.el, the default behavior in `display-buffer-fallback-action' is to try first `display-buffer--maybe-same-window', that uses `display-buffer-same-window' where a non-nil `inhibit-same-window' prohibits it from using the same window. BTW, do you think it's possible for `calc' to use a single `display-buffer' call with a display action so that users could easily override its default *Calc* window displaying behavior? From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 06:09:48 2011 Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 10:09:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLuF2-0003LY-1r for submit@debbugs.gnu.org; Thu, 03 Nov 2011 06:09:48 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RLuEy-0003LO-V4 for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 06:09:46 -0400 Received: (qmail invoked by alias); 03 Nov 2011 10:07:15 -0000 Received: from 62-47-62-191.adsl.highway.telekom.at (EHLO [62.47.62.191]) [62.47.62.191] by mail.gmx.net (mp039) with SMTP; 03 Nov 2011 11:07:15 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19tDaxcDoRtgWSupnaIi5N3Yd4cjdvdtKcwZJKngL j+S0FFz8Ivg7AU Message-ID: <4EB267D1.50900@gmx.at> Date: Thu, 03 Nov 2011 11:07:13 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> In-Reply-To: <87wrbhr2xi.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) > BTW, do you think it's possible for `calc' to use a single > `display-buffer' call with a display action so that users could easily > override its default *Calc* window displaying behavior? Do you mean that `calc' should call `display-buffer' with an appropriate ACTION argument? Here `calc' pops up two windows. So even if this were possible, it would constitute an abuse of `display-buffer'. Or do you mean the display of calc's *Help* buffer? martin From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 06:29:58 2011 Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 10:29:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLuYX-0003pE-L8 for submit@debbugs.gnu.org; Thu, 03 Nov 2011 06:29:58 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLuYU-0003p7-LK for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 06:29:55 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 119F16E8053; Thu, 3 Nov 2011 03:27:26 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id F2BC5451C594; Thu, 3 Nov 2011 03:27:24 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> Date: Thu, 03 Nov 2011 12:17:34 +0200 In-Reply-To: <4EB267D1.50900@gmx.at> (martin rudalics's message of "Thu, 03 Nov 2011 11:07:13 +0100") Message-ID: <87bostpkt1.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> BTW, do you think it's possible for `calc' to use a single >> `display-buffer' call with a display action so that users could easily >> override its default *Calc* window displaying behavior? > > Do you mean that `calc' should call `display-buffer' with an appropriate > ACTION argument? Here `calc' pops up two windows. So even if this were > possible, it would constitute an abuse of `display-buffer'. > > Or do you mean the display of calc's *Help* buffer? With the calc's *Help* buffer it's clear now that (inhibit-same-window . t) is available for users that have (add-to-list 'same-window-buffer-names "*Help*") in .emacs. But I meant that *Calculator* and *Calc Trail* windows could be displayed with `display-buffer' and an appropriate ACTION argument. Then users will be able to customize its default behavior. Isn't it the goal of window related improvements to allow customizing easily of how windows are displayed? From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 08:29:10 2011 Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 12:29:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLwPu-0007Hl-1s for submit@debbugs.gnu.org; Thu, 03 Nov 2011 08:29:10 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLwPs-0007He-Gv for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 08:29:09 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pA3CQcFT032015; Thu, 3 Nov 2011 08:26:38 -0400 Received: by pastel.home (Postfix, from userid 20848) id 021D1592F9; Thu, 3 Nov 2011 08:26:30 -0400 (EDT) From: Stefan Monnier To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Message-ID: References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> Date: Thu, 03 Nov 2011 08:26:30 -0400 In-Reply-To: <87bostpkt1.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 03 Nov 2011 12:17:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4029=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4029> : streams <698049> : uri <998411> X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: 3419 Cc: martin rudalics , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) > But I meant that *Calculator* and *Calc Trail* windows could be > displayed with `display-buffer' and an appropriate ACTION argument. > Then users will be able to customize its default behavior. Can't they already do that with display-buffer-alist? > Isn't it the goal of window related improvements to allow > customizing easily of how windows are displayed? Yes, but not only that: it should be possible without having to do special gymnastics in the Elisp code. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 10:02:27 2011 Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 14:02:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLxsA-00019y-M8 for submit@debbugs.gnu.org; Thu, 03 Nov 2011 10:02:26 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RLxs8-00019n-7q for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 10:02:25 -0400 Received: (qmail invoked by alias); 03 Nov 2011 13:59:53 -0000 Received: from 62-47-62-191.adsl.highway.telekom.at (EHLO [62.47.62.191]) [62.47.62.191] by mail.gmx.net (mp023) with SMTP; 03 Nov 2011 14:59:53 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18MySICzHgMSaMWrR/9fzfA/0pJKjDSf1i2FbGGkw iGNbAI4md16ldG Message-ID: <4EB29E51.2040204@gmx.at> Date: Thu, 03 Nov 2011 14:59:45 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> In-Reply-To: <87bostpkt1.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) >>> BTW, do you think it's possible for `calc' to use a single >>> `display-buffer' call with a display action so that users could easily >>> override its default *Calc* window displaying behavior? [...] > But I meant that *Calculator* and *Calc Trail* windows could be > displayed with `display-buffer' and an appropriate ACTION argument. > Then users will be able to customize its default behavior. We'd have to change the calling convention if we were to allow a "single `display-buffer' call" to display both *Calculator* and *Calc Trail*. > Isn't it the goal of window related improvements to allow > customizing easily of how windows are displayed? Yes. But it's already quite tedious to achieve this goal for the one buffer case (as in ispell, ibuffer, buff-menu or calendar). martin From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 15:49:03 2011 Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 19:49:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM3Ha-0001cC-4G for submit@debbugs.gnu.org; Thu, 03 Nov 2011 15:49:03 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM3HX-0001bk-NB for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 15:49:00 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 1A6AC6E807D; Thu, 3 Nov 2011 12:46:29 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 17805451C58B; Thu, 3 Nov 2011 12:46:27 -0700 (PDT) From: Juri Linkov To: Stefan Monnier Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> Date: Thu, 03 Nov 2011 21:44:05 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 03 Nov 2011 08:26:30 -0400") Message-ID: <878vnxhtyy.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: martin rudalics , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> But I meant that *Calculator* and *Calc Trail* windows could be >> displayed with `display-buffer' and an appropriate ACTION argument. >> Then users will be able to customize its default behavior. > > Can't they already do that with display-buffer-alist? `display-buffer-alist' can't undo splitting done outside of the `display-buffer' call. When splitting is done in a display action, user can easily override it. For instance, a new action `display-buffer-pop-up-window-below' I posted in bug#9873 does splitting that users can override. This action can be used in `calendar-generate-window', and when I tested it, I observe finally the ideal behavior of `M-x calendar RET' in many different window configurations with this very small patch: === modified file 'lisp/calendar/calendar.el' --- lisp/calendar/calendar.el 2011-10-30 08:29:56 +0000 +++ lisp/calendar/calendar.el 2011-11-03 19:36:29 +0000 @@ -1331,7 +1331,7 @@ (defun calendar-basic-setup (&optional a ;; ;; Is this a wide frame? If so, split it horizontally. (if (window-splittable-p t) (split-window-right)) - (pop-to-buffer calendar-buffer) + (pop-to-buffer calendar-buffer '(display-buffer-pop-up-window-below)) ;; Has the window already been split vertically? (when (and (not (window-dedicated-p)) (window-full-height-p)) From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 15:49:05 2011 Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 19:49:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM3Hc-0001cS-C5 for submit@debbugs.gnu.org; Thu, 03 Nov 2011 15:49:05 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM3HZ-0001cA-VU for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 15:49:02 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 731016E804C; Thu, 3 Nov 2011 12:46:31 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 71D87451C58B; Thu, 3 Nov 2011 12:46:30 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <4EB29E51.2040204@gmx.at> Date: Thu, 03 Nov 2011 21:45:06 +0200 In-Reply-To: <4EB29E51.2040204@gmx.at> (martin rudalics's message of "Thu, 03 Nov 2011 14:59:45 +0100") Message-ID: <8762j1htx9.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> Isn't it the goal of window related improvements to allow >> customizing easily of how windows are displayed? > > Yes. But it's already quite tedious to achieve this goal for the one > buffer case (as in ispell, ibuffer, buff-menu or calendar). The goal can be achieved for calendar with the patch I sent in another message. For ibuffer and buff-menu I see no problem. For ispell I guess you mean your test case with `display-buffer-pop-up-frame'? IIUC, ispell already supports displaying the choices in another frame when `ispell-use-framepop-p' is non-nil, but it does this with an unknown function `framepop-display-buffer'. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 17:10:28 2011 Received: (at 3419) by debbugs.gnu.org; 3 Nov 2011 21:10:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM4YN-0003WY-TH for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:10:28 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM4YK-0003WO-MH for 3419@debbugs.gnu.org; Thu, 03 Nov 2011 17:10:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAK4Bs05MCoYy/2dsb2JhbABEqgKBBoFyAQEEAVYjEAs0EhQYDSSIFbRniR8EoVSERQ X-IronPort-AV: E=Sophos;i="4.69,452,1315195200"; d="scan'208";a="146166123" Received: from 76-10-134-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.134.50]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 03 Nov 2011 17:07:53 -0400 Received: by pastel.home (Postfix, from userid 20848) id 6400A592DE; Thu, 3 Nov 2011 17:07:52 -0400 (EDT) From: Stefan Monnier To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Message-ID: References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <878vnxhtyy.fsf@mail.jurta.org> Date: Thu, 03 Nov 2011 17:07:52 -0400 In-Reply-To: <878vnxhtyy.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 03 Nov 2011 21:44:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: martin rudalics , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >>> But I meant that *Calculator* and *Calc Trail* windows could be >>> displayed with `display-buffer' and an appropriate ACTION argument. >>> Then users will be able to customize its default behavior. >> Can't they already do that with display-buffer-alist? > `display-buffer-alist' can't undo splitting done outside of the > `display-buffer' call. I think I'm completely lost here. What splitting are you talking about? Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 05:41:47 2011 Received: (at 3419) by debbugs.gnu.org; 4 Nov 2011 09:41:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMGHS-00046i-CN for submit@debbugs.gnu.org; Fri, 04 Nov 2011 05:41:47 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RMGHP-00046Z-8W for 3419@debbugs.gnu.org; Fri, 04 Nov 2011 05:41:44 -0400 Received: (qmail invoked by alias); 04 Nov 2011 09:39:07 -0000 Received: from 62-47-33-82.adsl.highway.telekom.at (EHLO [62.47.33.82]) [62.47.33.82] by mail.gmx.net (mp011) with SMTP; 04 Nov 2011 10:39:07 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+hqKUpFtqhCC7jZsWW0IHbT8iKym/nPP88gSTQ+m xNyAKcmP60unvn Message-ID: <4EB3B2B9.9010808@gmx.at> Date: Fri, 04 Nov 2011 10:39:05 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <4EB29E51.2040204@gmx.at> <8762j1htx9.fsf@mail.jurta.org> In-Reply-To: <8762j1htx9.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) > The goal can be achieved for calendar with the patch I sent in another > message. For ibuffer and buff-menu I see no problem. You mean doing the same as in calendar? Things like (lambda (buf) (split-window nil height (eq type 'horizontally)) (other-window 1) (switch-to-buffer buf))) look suspicious because `switch-to-buffer' without FORCE-SAME-WINDOW set can now make the behavior differently wrt Emacs 23. > For ispell > I guess you mean your test case with `display-buffer-pop-up-frame'? No. I mean the same as above. More precisely (let ((choices-window (get-buffer-window ispell-choices-buffer))) ... ;; Overlay *Choices* window when it isn't showing (ispell-overlay-window (max line ispell-choices-win-default-height))) (switch-to-buffer ispell-choices-buffer) (goto-char (point-min))))) does strange things when `switch-to-buffer' does _not_ use the window selected by `ispell-overlay-window'. You can, for example, get an extra window showing the initial buffer. > IIUC, ispell already supports displaying the choices in another frame > when `ispell-use-framepop-p' is non-nil, but it does this with > an unknown function `framepop-display-buffer'. We have to rewrite ispell's window handling from scratch. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 05:42:09 2011 Received: (at 3419) by debbugs.gnu.org; 4 Nov 2011 09:42:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMGHo-00047b-TK for submit@debbugs.gnu.org; Fri, 04 Nov 2011 05:42:09 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RMGHm-00047T-NN for 3419@debbugs.gnu.org; Fri, 04 Nov 2011 05:42:07 -0400 Received: (qmail invoked by alias); 04 Nov 2011 09:39:31 -0000 Received: from 62-47-33-82.adsl.highway.telekom.at (EHLO [62.47.33.82]) [62.47.33.82] by mail.gmx.net (mp046) with SMTP; 04 Nov 2011 10:39:31 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19rpBJTDotrFJREfAYt5Axp21Kjd+rrQU8kJKQKpR TKkbdwTu37RRo5 Message-ID: <4EB3B2D2.3080803@gmx.at> Date: Fri, 04 Nov 2011 10:39:30 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <878vnxhtyy.fsf@mail.jurta.org> In-Reply-To: <878vnxhtyy.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) > `display-buffer-alist' can't undo splitting done outside of the > `display-buffer' call. We have to identify all cases where this happens and replace them appropriately. > When splitting is done in a display action, > user can easily override it. For instance, a new action > `display-buffer-pop-up-window-below' I posted in bug#9873 > does splitting that users can override. We have to make sure that it doesn't create too small windows. Binding `split-height-threshold' to zero might be too strong in some cases and ignores user preferences. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 06:02:04 2011 Received: (at 3419) by debbugs.gnu.org; 4 Nov 2011 10:02:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMGb4-0004wv-Nw for submit@debbugs.gnu.org; Fri, 04 Nov 2011 06:02:03 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMGb2-0004wV-9e for 3419@debbugs.gnu.org; Fri, 04 Nov 2011 06:02:00 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 4C0D56E8079; Fri, 4 Nov 2011 02:59:26 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 3BF8E451C59E; Fri, 4 Nov 2011 02:59:25 -0700 (PDT) From: Juri Linkov To: Stefan Monnier Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <878vnxhtyy.fsf@mail.jurta.org> Date: Fri, 04 Nov 2011 11:38:50 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 03 Nov 2011 17:07:52 -0400") Message-ID: <87y5vwp6ld.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: martin rudalics , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >>>> But I meant that *Calculator* and *Calc Trail* windows could be >>>> displayed with `display-buffer' and an appropriate ACTION argument. >>>> Then users will be able to customize its default behavior. >>> Can't they already do that with display-buffer-alist? >> `display-buffer-alist' can't undo splitting done outside of the >> `display-buffer' call. > > I think I'm completely lost here. What splitting are you talking about? There is an explicit call to `split-window' in `calc'. So users can't override it with `display-buffer-alist'. With `split-window' implemented in a special action, users will be able to override it with another action, e.g. an action that displays the *Calc* buffer above the minibuffer, or below the selected window, etc. (Currently *Calc* is displayed only in the largest window, and this is not customizable yet). From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 06:17:08 2011 Received: (at 3419) by debbugs.gnu.org; 4 Nov 2011 10:17:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMGpg-0005JD-BH for submit@debbugs.gnu.org; Fri, 04 Nov 2011 06:17:08 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMGpe-0005J6-7U for 3419@debbugs.gnu.org; Fri, 04 Nov 2011 06:17:07 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 9C9506E806B; Fri, 4 Nov 2011 03:14:31 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 8B176451C59F; Fri, 4 Nov 2011 03:14:30 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Organization: JURTA References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <878vnxhtyy.fsf@mail.jurta.org> <4EB3B2D2.3080803@gmx.at> Date: Fri, 04 Nov 2011 12:12:51 +0200 In-Reply-To: <4EB3B2D2.3080803@gmx.at> (martin rudalics's message of "Fri, 04 Nov 2011 10:39:30 +0100") Message-ID: <87ehxop55o.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) >> `display-buffer-alist' can't undo splitting done outside of the >> `display-buffer' call. > > We have to identify all cases where this happens and replace them > appropriately. I agree. >> When splitting is done in a display action, >> user can easily override it. For instance, a new action >> `display-buffer-pop-up-window-below' I posted in bug#9873 >> does splitting that users can override. > > We have to make sure that it doesn't create too small windows. Binding > `split-height-threshold' to zero might be too strong in some cases and > ignores user preferences. In this case users can express preferences by customizing `display-buffer-alist' to a different action. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 09:15:37 2011 Received: (at 3419) by debbugs.gnu.org; 4 Nov 2011 13:15:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMJcO-0001jl-Pk for submit@debbugs.gnu.org; Fri, 04 Nov 2011 09:15:37 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMJcM-0001jd-O1 for 3419@debbugs.gnu.org; Fri, 04 Nov 2011 09:15:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsIAMrjs05MCoYy/2dsb2JhbABEqQKBCYEGgXIBAQVWIxALNBIUGA0kvUOJKwShWYRF X-IronPort-AV: E=Sophos;i="4.69,455,1315195200"; d="scan'208";a="146251707" Received: from 76-10-134-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.134.50]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 04 Nov 2011 09:12:59 -0400 Received: by pastel.home (Postfix, from userid 20848) id 388A1592DE; Fri, 4 Nov 2011 09:12:59 -0400 (EDT) From: Stefan Monnier To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Message-ID: References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <4EB29E51.2040204@gmx.at> <8762j1htx9.fsf@mail.jurta.org> <4EB3B2B9.9010808@gmx.at> Date: Fri, 04 Nov 2011 09:12:59 -0400 In-Reply-To: <4EB3B2B9.9010808@gmx.at> (martin rudalics's message of "Fri, 04 Nov 2011 10:39:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3419 Cc: Juri Linkov , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > (lambda (buf) > (split-window nil height (eq type 'horizontally)) > (other-window 1) > (switch-to-buffer buf))) When performing such low-level setup of a window-configuration, I recommend set-window-buffer. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 09:58:30 2011 Received: (at 3419) by debbugs.gnu.org; 4 Nov 2011 13:58:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMKHt-0002uH-F7 for submit@debbugs.gnu.org; Fri, 04 Nov 2011 09:58:29 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RMKHr-0002uA-BX for 3419@debbugs.gnu.org; Fri, 04 Nov 2011 09:58:28 -0400 Received: (qmail invoked by alias); 04 Nov 2011 13:55:51 -0000 Received: from 62-47-33-82.adsl.highway.telekom.at (EHLO [62.47.33.82]) [62.47.33.82] by mail.gmx.net (mp042) with SMTP; 04 Nov 2011 14:55:51 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX194OhYxMrV4loBevBmapTznZEmaeNUq6caOeA6Gmv ZDIP6x4agl3UZl Message-ID: <4EB3EEE5.7070002@gmx.at> Date: Fri, 04 Nov 2011 14:55:49 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <878vnxhtyy.fsf@mail.jurta.org> <4EB3B2D2.3080803@gmx.at> <87ehxop55o.fsf@mail.jurta.org> In-Reply-To: <87ehxop55o.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 3419 Cc: Stefan Monnier , 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) >> We have to make sure that it doesn't create too small windows. Binding >> `split-height-threshold' to zero might be too strong in some cases and >> ignores user preferences. > > In this case users can express preferences by customizing > `display-buffer-alist' to a different action. Sure. But we should also make sure that the standard behavior remains unchanged. Going through those "used to work for years" complaints is no fun. martin From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 06 16:11:40 2011 Received: (at 3419) by debbugs.gnu.org; 6 Nov 2011 21:11:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNA0C-0007jN-A4 for submit@debbugs.gnu.org; Sun, 06 Nov 2011 16:11:40 -0500 Received: from uranium.truman.edu ([150.243.162.204]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNA0A-0007jE-7v for 3419@debbugs.gnu.org; Sun, 06 Nov 2011 16:11:38 -0500 Received: from vh213601.truman.edu (vh213601.truman.edu [150.243.162.59]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by uranium.truman.edu (Postfix) with ESMTPS id 7CCE212828C; Sun, 6 Nov 2011 15:08:49 -0600 (CST) From: Jay Belanger To: martin rudalics Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode References: <87skinjwuz.fsf@gmail.com> <873aanxrnd.fsf@gmail.com> <4A2101B1.8080106@gmx.at> <4EA58F3D.8030703@gmx.at> <87y5w14fy2.fsf@mail.jurta.org> <87y5w12dny.fsf@vh213601.truman.edu> <87y5w02s2n.fsf@mail.jurta.org> <4EB00459.20708@gmx.at> <877h3jzgsc.fsf@mail.jurta.org> <8739e6zx1w.fsf@mail.jurta.org> <4EB115A2.1090407@gmx.at> <87wrbhr2xi.fsf@mail.jurta.org> <4EB267D1.50900@gmx.at> <87bostpkt1.fsf@mail.jurta.org> <4EB29E51.2040204@gmx.at> Date: Sun, 06 Nov 2011 15:09:03 -0600 In-Reply-To: <4EB29E51.2040204@gmx.at> (martin rudalics's message of "Thu, 03 Nov 2011 14:59:45 +0100") Message-ID: <87fwi1rma8.fsf@vh213601.truman.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 3419 Cc: Juri Linkov , jay.p.belanger@gmail.com, 3419@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: jay.p.belanger@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>> BTW, do you think it's possible for `calc' to use a single >>>> `display-buffer' call with a display action so that users could easily >>>> override its default *Calc* window displaying behavior? > [...] >> But I meant that *Calculator* and *Calc Trail* windows could be >> displayed with `display-buffer' and an appropriate ACTION argument. >> Then users will be able to customize its default behavior. > > We'd have to change the calling convention if we were to allow a "single > `display-buffer' call" to display both *Calculator* and *Calc Trail*. Is that what Juri meant, or did he mean a single `display-buffer' for each display action? Currently, Calc uses `split-window' to set up *Calculator* and then a separate `split-window' to split the *Calculator* window and use the new window for *Calc Trail* (or the keypad). Is the suggestion to replace both of these with a single `display-buffer' or each `split-window' with a `display-buffer'? Jay From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 04 09:18:27 2012 Received: (at 3419-done) by debbugs.gnu.org; 4 Oct 2012 13:18:27 +0000 Received: from localhost ([127.0.0.1]:52604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJlJm-0005Yv-Ex for submit@debbugs.gnu.org; Thu, 04 Oct 2012 09:18:25 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:58091) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TJlJh-0005Yg-Mt for 3419-done@debbugs.gnu.org; Thu, 04 Oct 2012 09:18:19 -0400 Received: (qmail invoked by alias); 04 Oct 2012 13:18:03 -0000 Received: from 62-47-48-227.adsl.highway.telekom.at (EHLO [62.47.48.227]) [62.47.48.227] by mail.gmx.net (mp030) with SMTP; 04 Oct 2012 15:18:03 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+NM5VfJpqNF+EGAAG4joLWWvTVvoml7QIpF0GAQA TDQ6kzUFFilQ7v Message-ID: <506D8CA5.4060604@gmx.at> Date: Thu, 04 Oct 2012 15:18:29 +0200 From: martin rudalics MIME-Version: 1.0 To: 3419-done@debbugs.gnu.org Subject: Re: bug#3419: 23.0.94; calc, calendar and temp-buffer-resize-mode Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 3419-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > 1. Emacs -Q > 2. (temp-buffer-resize-mode t) > 3. M-x calc > 4. h h > > You will notice that calc-window-height is changed to a much larger > value. Calendar also has this similar problem but it can restore to its > default height after restarting itself. > > GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of > 2009-05-23 on 200.sub-75-216-116.myvzw.com With Emacs 24.3 `temp-buffer-resize-mode' should no longer resizes a window that formerly showed another buffer. Bug closed. For any related problems that have been discussed in the thread of this bug please make a new report. Thanks, martin From unknown Tue Jun 17 20:14:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 02 Nov 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator