From unknown Sat Jun 21 17:30:11 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#1276 <1276@debbugs.gnu.org> To: bug#1276 <1276@debbugs.gnu.org> Subject: Status: 23.0.60; select_window_norecord chokes on dead window Reply-To: bug#1276 <1276@debbugs.gnu.org> Date: Sun, 22 Jun 2025 00:30:11 +0000 retitle 1276 23.0.60; select_window_norecord chokes on dead window reassign 1276 emacs submitter 1276 martin rudalics severity 1276 normal thanks From rudalics@gmx.at Thu Oct 30 04:41:55 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,FOURLA,MIXEDBDN, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Oct 2008 11:41:55 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9UBfqe6028065 for ; Thu, 30 Oct 2008 04:41:53 -0700 Received: from mail.gnu.org ([199.232.76.166]:60615 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KvVrg-0001zd-TH for emacs-pretest-bug@gnu.org; Thu, 30 Oct 2008 07:39:00 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KvVuP-0006mF-MX for emacs-pretest-bug@gnu.org; Thu, 30 Oct 2008 07:41:52 -0400 Received: from mail.gmx.net ([213.165.64.20]:49646) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KvVuP-0006fl-5r for emacs-pretest-bug@gnu.org; Thu, 30 Oct 2008 07:41:49 -0400 Received: (qmail invoked by alias); 30 Oct 2008 11:41:36 -0000 Received: from 62-47-57-155.adsl.highway.telekom.at (EHLO [62.47.57.155]) [62.47.57.155] by mail.gmx.net (mp002) with SMTP; 30 Oct 2008 12:41:36 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18ejgk7D7geOtfE44lK6KwnX37mz5Z5YTiB9z3+n8 wSF3z/29XiCkUn Message-ID: <49099D0E.8040008@gmx.at> Date: Thu, 30 Oct 2008 12:39:58 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: emacs-pretest-bug Subject: 23.0.60; select_window_norecord chokes on dead window Content-Type: multipart/mixed; boundary="------------000408010302030800090607" X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6899999999999999,0.66 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. This is a multi-part message in MIME format. --------------000408010302030800090607 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To reproduce with emacs -Q evaluate the following form (progn (setq debug-on-error t) (set-frame-height (selected-frame) 10) (split-window) (temp-buffer-resize-mode) (setq temp-buffer-max-height 20)) and do C-h v temp-buffer-max-height Gets me Debugger entered--Lisp error: (wrong-type-argument window-live-p #) describe-variable(temp-buffer-max-height) call-interactively(describe-variable nil nil) FWIW, the reason is that `fit-window-to-buffer' deletes prev_window temp_output_buffer_show eventually wants to resurrect after running `temp-buffer-show-hook'. The attached patch fixes this for me. martin, who thinks that `fit-window-to-buffer' shouldn't delete windows ... --------------000408010302030800090607 Content-Type: text/plain; name="select_window_norecord.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="select_window_norecord.diff" *** window.c.~1.631.~ 2008-10-29 10:29:14.718750000 +0100 --- window.c 2008-10-30 11:08:50.406250000 +0100 *************** *** 3643,3649 **** select_window_norecord (window) Lisp_Object window; { ! return Fselect_window (window, Qt); } =0C Lisp_Object --- 3643,3650 ---- select_window_norecord (window) Lisp_Object window; { ! return WINDOW_LIVE_P (window) ! ? Fselect_window (window, Qt) : selected_window; } =0C Lisp_Object --------------000408010302030800090607-- From monnier@iro.umontreal.ca Thu Oct 30 11:41:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Oct 2008 18:41:23 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9UIfKOB004856 for ; Thu, 30 Oct 2008 11:41:21 -0700 Received: from mail.gnu.org ([199.232.76.166]:58699 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KvcPb-0000mh-Ru for emacs-pretest-bug@gnu.org; Thu, 30 Oct 2008 14:38:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KvcSN-0002cK-CW for emacs-pretest-bug@gnu.org; Thu, 30 Oct 2008 14:41:20 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:3121 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KvcSN-0002cA-2d for emacs-pretest-bug@gnu.org; Thu, 30 Oct 2008 14:41:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkwFACOdCUlMCqyo/2dsb2JhbACBdss4g1GBDg X-IronPort-AV: E=Sophos;i="4.33,516,1220241600"; d="scan'208";a="29085770" Received: from 76-10-172-168.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 30 Oct 2008 14:41:02 -0400 Received: by pastel.home (Postfix, from userid 20848) id DD267800D; Thu, 30 Oct 2008 14:41:01 -0400 (EDT) From: Stefan Monnier To: martin rudalics Cc: 1276@debbugs.gnu.org, emacs-pretest-bug Subject: Re: bug#1276: 23.0.60; select_window_norecord chokes on dead window Message-ID: References: <49099D0E.8040008@gmx.at> Date: Thu, 30 Oct 2008 14:41:01 -0400 In-Reply-To: <49099D0E.8040008@gmx.at> (martin rudalics's message of "Thu, 30 Oct 2008 12:39:58 +0100") 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 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > martin, who thinks that `fit-window-to-buffer' shouldn't delete windows ... Yes, it looks like a bug. Stefan From rudalics@gmx.at Fri Oct 31 07:09:01 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1276-done) by emacsbugs.donarmstrong.com; 31 Oct 2008 14:09:01 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m9VE8vcd007200 for <1276-done@emacsbugs.donarmstrong.com>; Fri, 31 Oct 2008 07:08:58 -0700 Received: (qmail invoked by alias); 31 Oct 2008 14:08:50 -0000 Received: from 62-47-63-200.adsl.highway.telekom.at (EHLO [62.47.63.200]) [62.47.63.200] by mail.gmx.net (mp030) with SMTP; 31 Oct 2008 15:08:50 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19RITATeTVR8WfvtCtlfOYLLl+kGWu1D8qR9xsOoi jamsBmSRNHxi+i Message-ID: <490B112D.8010403@gmx.at> Date: Fri, 31 Oct 2008 15:07:41 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 1276-done@debbugs.gnu.org Subject: Re: bug#1276: 23.0.60; select_window_norecord chokes on dead window References: <49099D0E.8040008@gmx.at> In-Reply-To: <49099D0E.8040008@gmx.at> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.75 Fixed as 2008-10-31 Martin Rudalics * window.c [...] (select_window_norecord): Fix return value. (Bug#1276) martin From unknown Sat Jun 21 17:30:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 Nov 2008 15:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator