From unknown Tue Jun 17 20:26:47 2025 X-Loop: don@donarmstrong.com Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Reply-To: "Antoine Levitt" , 858@debbugs.gnu.org Resent-From: "Antoine Levitt" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 01 Sep 2008 23:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 858 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122031161930906 (code B ref -1); Mon, 01 Sep 2008 23:35:03 +0000 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=-3.5 required=4.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Sep 2008 23:26:59 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m81NQtbn030900 for ; Mon, 1 Sep 2008 16:26:56 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaInO-0006SF-Sw for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 19:26:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaInO-0006S1-Eo for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 19:26:54 -0400 Received: from [199.232.76.173] (port=43476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaInO-0006Ry-A9 for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 19:26:54 -0400 Received: from ey-out-1920.google.com ([74.125.78.146]:42946) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KaInN-0006Da-Vj for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 19:26:54 -0400 Received: by ey-out-1920.google.com with SMTP id 4so801548eyg.24 for ; Mon, 01 Sep 2008 16:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=EGr/0fVL+fP2hTacsoIGx/0uRnfGb3b+HLdJ3qgiYlw=; b=cDEeVIOwoSaL4J2gPey4rC0NUX/Fw4XzwTSZyMK6+ygXlcKfV5On4HJ7nVK+SkG6JP J2T7JQpodt1qHkJReeeTfTMehq9ODuInr0kbvLvCsSu41futFUJEbTwj+bUoUIQ2hO04 4Sh/LlZIA2ALAm0ioNPMuItmttulNqprs6dzk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=avF8q3Uvotg1n6UDzNpfVi1uB53fchUDcoWzkhNrraBKQps52UlhQP5HDHf5+bRPBN nK2uVOymhCn6cDmbJn0WT49vrfv0b+YLv7J6ihl4DmWE4TbSRylefO7wuFB4T9RI+arX Oy+je0afdPzdzADTGloVhEKP0C0AUm6X4y3Cg= Received: by 10.210.42.20 with SMTP id p20mr7295257ebp.73.1220311612198; Mon, 01 Sep 2008 16:26:52 -0700 (PDT) Received: by 10.210.141.18 with HTTP; Mon, 1 Sep 2008 16:26:52 -0700 (PDT) Message-ID: <6fa54e4e0809011626h5f200906w83f2f03179b22148@mail.gmail.com> Date: Tue, 2 Sep 2008 01:26:52 +0200 From: "Antoine Levitt" To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_56566_23114664.1220311612198" X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) ------=_Part_56566_23114664.1220311612198 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, There is a bug when using conjointly these two features. Here are the relevant portions of configuration : ;;make ibuffer resize itself to its buffer size (setq ibuffer-use-other-window t) (setq ibuffer-default-shrink-to-minimum-size t) No specific configuration for erc, just enabling tracker is enough. Then, run erc, and, in any erc buffer, call ibuffer. The screen briefly flashes as an ERC window opens then disappears, and the ibuffer window is reduced to a much smaller size than what it would be outside ERC. I think the issue is erc's hook to window-configuration-change somehow messing with ibuffer, but I'm not experienced enough to find where the bug is. Antoine Levitt ------=_Part_56566_23114664.1220311612198 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
There is a bug when using conjointly these two features. Here are the relevant portions of configuration :
;;make ibuffer resize itself to its buffer size
(setq ibuffer-use-other-window t)
(setq ibuffer-default-shrink-to-minimum-size t)

No specific configuration for erc, just enabling tracker is enough.
Then, run erc, and, in any erc buffer, call ibuffer. The screen briefly flashes as an ERC window opens then disappears, and the ibuffer window is reduced to a much smaller size than what it would be outside ERC. I think the issue is erc's hook to window-configuration-change somehow messing with ibuffer, but I'm not experienced enough to find where the bug is.

Antoine Levitt
------=_Part_56566_23114664.1220311612198-- From unknown Tue Jun 17 20:26:47 2025 X-Loop: don@donarmstrong.com Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Reply-To: Chong Yidong , 858@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Sep 2008 16:35:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 858 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 858-submit@emacsbugs.donarmstrong.com id=B858.122037288230134 (code B ref 858); Tue, 02 Sep 2008 16:35:04 +0000 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=-3.7 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 858) by emacsbugs.donarmstrong.com; 2 Sep 2008 16:28:02 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82GRxvf030128 for <858@emacsbugs.donarmstrong.com>; Tue, 2 Sep 2008 09:28:00 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 50D7257E337; Tue, 2 Sep 2008 12:30:20 -0400 (EDT) To: John Paul Wallington , Michael Olson Cc: "Antoine Levitt" , 858@debbugs.gnu.org From: Chong Yidong Date: Tue, 02 Sep 2008 12:30:20 -0400 Message-ID: <87wshuse77.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi guys, Could you take a look at this bug report? I'm not sure whether ERC or ibuffer needs fixing. > There is a bug when using conjointly these two features. Here are the > relevant portions of configuration : > > ;;make ibuffer resize itself to its buffer size > (setq ibuffer-use-other-window t) > (setq ibuffer-default-shrink-to-minimum-size t) > > No specific configuration for erc, just enabling tracker is enough. > Then, run erc, and, in any erc buffer, call ibuffer. The screen > briefly flashes as an ERC window opens then disappears, and the > ibuffer window is reduced to a much smaller size than what it would be > outside ERC. I think the issue is erc's hook to > window-configuration-change somehow messing with ibuffer, but I'm not > experienced enough to find where the bug is. From unknown Tue Jun 17 20:26:47 2025 X-Loop: don@donarmstrong.com Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Reply-To: "Antoine Levitt" , 858@debbugs.gnu.org Resent-From: "Antoine Levitt" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Sep 2008 16:55:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 858 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 858-submit@emacsbugs.donarmstrong.com id=B858.12203739884619 (code B ref 858); Tue, 02 Sep 2008 16:55:03 +0000 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=-2.5 required=4.0 tests=BAYES_00,HTML_MESSAGE autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 858) by emacsbugs.donarmstrong.com; 2 Sep 2008 16:46:28 +0000 Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.179]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82GkJcv004613 for <858@emacsbugs.donarmstrong.com>; Tue, 2 Sep 2008 09:46:20 -0700 Received: by ik-out-1112.google.com with SMTP id c21so1148315ika.1 for <858@emacsbugs.donarmstrong.com>; Tue, 02 Sep 2008 09:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=QudIVxn0XSkkdxtfyAq583ZRdT/C/xubRupBtAv/22Y=; b=jATm3Q29xMOolB1NfAcCDF/bfpwhLkZ4xVUyv6RcC6MLaASpbKqzZ/XmsHrFa8mYh/ aEt2gWRexhUc3XnSZd1C/DVgi8QmI8UdGwuPsO+LcBc+ttG6qch7kusTrhIWYNVOs/S/ WSvqz1v4TFCy201mO6LrxGYaGSOJuwZURkGWA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=XZS/GWB8Qyg8s2vE/9Lp0U9/wymYBm7Mmvp59qDuSeUO5VbXfGzmgDKSwV7W0dCXNg qTnJMARu40QbEWERqDAtf15OBXVXCz1YXg3EzkY7hHgX1alp8B6FJszHZLDKY1zj/RWz 9kg9vofrp08ugsYb7aVJ8cNuT0ujiqzl6QTPM= Received: by 10.210.122.5 with SMTP id u5mr8536228ebc.142.1220373978715; Tue, 02 Sep 2008 09:46:18 -0700 (PDT) Received: by 10.210.141.18 with HTTP; Tue, 2 Sep 2008 09:46:18 -0700 (PDT) Message-ID: <6fa54e4e0809020946p30656504u8909221affce9f19@mail.gmail.com> Date: Tue, 2 Sep 2008 18:46:18 +0200 From: "Antoine Levitt" To: "Chong Yidong" Cc: "John Paul Wallington" , "Michael Olson" , 858@debbugs.gnu.org In-Reply-To: <87wshuse77.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13266_18880030.1220373978702" References: <87wshuse77.fsf@cyd.mit.edu> ------=_Part_13266_18880030.1220373978702 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Another related problem (fixing one will probably fix the other, but I'm posting just in case) : doing the same manipulation resets the count of unseen messages 2008/9/2 Chong Yidong > Hi guys, > > Could you take a look at this bug report? I'm not sure whether ERC or > ibuffer needs fixing. > > > There is a bug when using conjointly these two features. Here are the > > relevant portions of configuration : > > > > ;;make ibuffer resize itself to its buffer size > > (setq ibuffer-use-other-window t) > > (setq ibuffer-default-shrink-to-minimum-size t) > > > > No specific configuration for erc, just enabling tracker is enough. > > Then, run erc, and, in any erc buffer, call ibuffer. The screen > > briefly flashes as an ERC window opens then disappears, and the > > ibuffer window is reduced to a much smaller size than what it would be > > outside ERC. I think the issue is erc's hook to > > window-configuration-change somehow messing with ibuffer, but I'm not > > experienced enough to find where the bug is. > ------=_Part_13266_18880030.1220373978702 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Another related problem (fixing one will probably fix the other, but I'm posting just in case) : doing the same manipulation resets the count of unseen messages
2008/9/2 Chong Yidong <cyd@stupidchicken.com>
Hi guys,

Could you take a look at this bug report?  I'm not sure whether ERC or
ibuffer needs fixing.

> There is a bug when using conjointly these two features. Here are the
> relevant portions of configuration :
>
> ;;make ibuffer resize itself to its buffer size
> (setq ibuffer-use-other-window t)
> (setq ibuffer-default-shrink-to-minimum-size t)
>
> No specific configuration for erc, just enabling tracker is enough.
> Then, run erc, and, in any erc buffer, call ibuffer. The screen
> briefly flashes as an ERC window opens then disappears, and the
> ibuffer window is reduced to a much smaller size than what it would be
> outside ERC. I think the issue is erc's hook to
> window-configuration-change somehow messing with ibuffer, but I'm not
> experienced enough to find where the bug is.

------=_Part_13266_18880030.1220373978702-- From unknown Tue Jun 17 20:26:47 2025 X-Loop: don@donarmstrong.com Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Reply-To: martin rudalics , 858@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 03 Sep 2008 09:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 858 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 858-submit@emacsbugs.donarmstrong.com id=B858.122043475632287 (code B ref 858); Wed, 03 Sep 2008 09:45:03 +0000 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,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 858) by emacsbugs.donarmstrong.com; 3 Sep 2008 09:39:16 +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 m839d772032281 for <858@emacsbugs.donarmstrong.com>; Wed, 3 Sep 2008 02:39:09 -0700 Received: (qmail invoked by alias); 03 Sep 2008 09:39:01 -0000 Received: from 62-47-37-141.adsl.highway.telekom.at (EHLO [62.47.37.141]) [62.47.37.141] by mail.gmx.net (mp055) with SMTP; 03 Sep 2008 11:39:01 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX192XVkNWJB26XOtkne7XnXdGWW5tQ0O8H+aAkj+PI 9kMKSaPZk8LwuT Message-ID: <48BE5A91.2060302@gmx.at> Date: Wed, 03 Sep 2008 11:36:17 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Chong Yidong , 858@debbugs.gnu.org CC: John Paul Wallington , Michael Olson , Keegan Carruthers-Smith References: <87wshuse77.fsf@cyd.mit.edu> In-Reply-To: <87wshuse77.fsf@cyd.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.63 CC-ing Keegan because Bug #466 describes another problem with ERC and windows. >> There is a bug when using conjointly these two features. Here are the >> relevant portions of configuration : >> >> ;;make ibuffer resize itself to its buffer size >> (setq ibuffer-use-other-window t) >> (setq ibuffer-default-shrink-to-minimum-size t) >> >> No specific configuration for erc, just enabling tracker is enough. >> Then, run erc, and, in any erc buffer, call ibuffer. The screen >> briefly flashes as an ERC window opens then disappears, and the >> ibuffer window is reduced to a much smaller size than what it would be >> outside ERC. I think the issue is erc's hook to >> window-configuration-change somehow messing with ibuffer, but I'm not >> experienced enough to find where the bug is. Can't offer much insight but processing window-configuration-change hooks has changed with Emacs 23. So this (defun erc-track-modified-channels () "Hook function for `erc-insert-post-hook' to check if the current buffer should be added to the modeline as a hidden, modified channel. Assumes it will only be called when current-buffer is in `erc-mode'." (let ((this-channel (or (erc-default-target) (buffer-name (current-buffer))))) ... might have been broken for some reason. To verify, someone would have to try with Emacs 22 and 23 inserting just before the `let' something like (unless (eq major-mode 'erc-mode) (message "Not in erc-mode ...")) and look whether it triggers. martin From unknown Tue Jun 17 20:26:47 2025 X-Loop: don@donarmstrong.com Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Reply-To: "Antoine Levitt" , 858@debbugs.gnu.org Resent-From: "Antoine Levitt" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 14:20:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 858 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 858-submit@emacsbugs.donarmstrong.com id=B858.122053765810128 (code B ref 858); Thu, 04 Sep 2008 14:20:04 +0000 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=-4.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, HTML_MESSAGE autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 858) by emacsbugs.donarmstrong.com; 4 Sep 2008 14:14:18 +0000 Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84EE9oO010122 for <858@emacsbugs.donarmstrong.com>; Thu, 4 Sep 2008 07:14:10 -0700 Received: by ey-out-2122.google.com with SMTP id 4so1429639eyf.13 for <858@emacsbugs.donarmstrong.com>; Thu, 04 Sep 2008 07:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=+O6pER7q4zbghVezDxZSrqXvi55HTwTAFfwQsC3QPgY=; b=bwCXi0Ksy7ORumzE8HbROkP1GBbBDUgEjep1Ba5KLmw5gdbG3C8bleCI+z05asX+/a EjDIzfWekUKvBtBswAeyrfioLwAvjnFY23ry2jJ5K6nsAV8KrRUkRGVjOdGpybRftmD3 vCHxAiqKKXPKyZLMaQ/OGMPnZZfHlz9PHWvYo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=axYAH5iX9OoXBRTmf+2DqQ1UEfQWsyoGyhNRDJrtq5SjA1OwrWUAwv/sTj5gPj/Shf VpAH/L7UXNfxOzlcn05Ta+3duT/S9wZ+eEqqcH7gvhpwE+H8oHSff/oIuN9RXNYiJWvd TPlWZGsw4sQajxVtHEd6H3n7vnh3upNu6C2Qk= Received: by 10.210.109.20 with SMTP id h20mr3494476ebc.129.1220537648512; Thu, 04 Sep 2008 07:14:08 -0700 (PDT) Received: by 10.210.141.18 with HTTP; Thu, 4 Sep 2008 07:14:08 -0700 (PDT) Message-ID: <6fa54e4e0809040714x79114c9ajf63023dc0ae615c@mail.gmail.com> Date: Thu, 4 Sep 2008 16:14:08 +0200 From: "Antoine Levitt" To: "martin rudalics" , 858@debbugs.gnu.org Cc: "Chong Yidong" , "Keegan Carruthers-Smith" , "Michael Olson" , "John Paul Wallington" In-Reply-To: <48BE5A91.2060302@gmx.at> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_44478_9410640.1220537648503" References: <87wshuse77.fsf@cyd.mit.edu> <48BE5A91.2060302@gmx.at> ------=_Part_44478_9410640.1220537648503 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I did some testing, and the bug was not in tracker as I suspected, it's in scrolltobottom, in erc-goodies.el. This should be much easier for you to debug: it's only a few lines long. I strongly suspect the part following this comment is responsible : ;; Temporarily bind resize-mini-windows to nil so that users who have it ;; set to a non-nil value will not suffer from premature minibuffer ;; shrinkage due to the below recenter call. I have no idea why this ;; works, but it solves the problem, and has no negative side effects. ;; (Fran Litterio, 2003/01/07) Looks like it does have side effects after all :-) 2008/9/3 martin rudalics > CC-ing Keegan because Bug #466 describes another problem with ERC and > windows. > > >> There is a bug when using conjointly these two features. Here are the > >> relevant portions of configuration : > >> > >> ;;make ibuffer resize itself to its buffer size > >> (setq ibuffer-use-other-window t) > >> (setq ibuffer-default-shrink-to-minimum-size t) > >> > >> No specific configuration for erc, just enabling tracker is enough. > >> Then, run erc, and, in any erc buffer, call ibuffer. The screen > >> briefly flashes as an ERC window opens then disappears, and the > >> ibuffer window is reduced to a much smaller size than what it would be > >> outside ERC. I think the issue is erc's hook to > >> window-configuration-change somehow messing with ibuffer, but I'm not > >> experienced enough to find where the bug is. > > Can't offer much insight but processing window-configuration-change > hooks has changed with Emacs 23. So this > > (defun erc-track-modified-channels () > "Hook function for `erc-insert-post-hook' to check if the current > buffer should be added to the modeline as a hidden, modified > channel. Assumes it will only be called when current-buffer > is in `erc-mode'." > (let ((this-channel (or (erc-default-target) > (buffer-name (current-buffer))))) > ... > > might have been broken for some reason. To verify, someone would have > to try with Emacs 22 and 23 inserting just before the `let' something > like > > (unless (eq major-mode 'erc-mode) > (message "Not in erc-mode ...")) > > and look whether it triggers. > > martin > > > > > > ------=_Part_44478_9410640.1220537648503 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
I did some testing, and the bug was not in tracker as I suspected, it's in scrolltobottom, in erc-goodies.el. This should be much easier for you to debug: it's only a few lines long. I strongly suspect the part following this comment is responsible :
      ;; Temporarily bind resize-mini-windows to nil so that users who have it
      ;; set to a non-nil value will not suffer from premature minibuffer
      ;; shrinkage due to the below recenter call.  I have no idea why this
      ;; works, but it solves the problem, and has no negative side effects.
      ;; (Fran Litterio, 2003/01/07)

Looks like it does have side effects after all :-)
2008/9/3 martin rudalics <rudalics@gmx.at>
CC-ing Keegan because Bug #466 describes another problem with ERC and
windows.


>> There is a bug when using conjointly these two features. Here are the
>> relevant portions of configuration :
>>
>> ;;make ibuffer resize itself to its buffer size
>> (setq ibuffer-use-other-window t)
>> (setq ibuffer-default-shrink-to-minimum-size t)
>>
>> No specific configuration for erc, just enabling tracker is enough.
>> Then, run erc, and, in any erc buffer, call ibuffer. The screen
>> briefly flashes as an ERC window opens then disappears, and the
>> ibuffer window is reduced to a much smaller size than what it would be
>> outside ERC. I think the issue is erc's hook to
>> window-configuration-change somehow messing with ibuffer, but I'm not
>> experienced enough to find where the bug is.

Can't offer much insight but processing window-configuration-change
hooks has changed with Emacs 23.  So this

(defun erc-track-modified-channels ()
 "Hook function for `erc-insert-post-hook' to check if the current
buffer should be added to the modeline as a hidden, modified
channel.  Assumes it will only be called when current-buffer
is in `erc-mode'."
 (let ((this-channel (or (erc-default-target)
                         (buffer-name (current-buffer)))))
   ...                

might have been broken for some reason.  To verify, someone would have
to try with Emacs 22 and 23 inserting just before the `let' something
like

(unless (eq major-mode 'erc-mode)
 (message "Not in erc-mode ..."))

and look whether it triggers.

martin






------=_Part_44478_9410640.1220537648503-- From unknown Tue Jun 17 20:26:47 2025 X-Loop: don@donarmstrong.com Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Reply-To: jpw@pobox.com (John Paul Wallington), 858@debbugs.gnu.org Resent-From: jpw@pobox.com (John Paul Wallington) Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 22:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 858 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 858-submit@emacsbugs.donarmstrong.com id=B858.122056857128765 (code B ref 858); Thu, 04 Sep 2008 22:55:04 +0000 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=-4.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER, RCVD_IN_SBLXBL,RCVD_IN_SBLXBL_CBL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 858) by emacsbugs.donarmstrong.com; 4 Sep 2008 22:49:31 +0000 Received: from sasl.smtp.pobox.com (a-sasl-quonix.sasl.smtp.pobox.com [208.72.237.25]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84MnRjT028758 for <858@emacsbugs.donarmstrong.com>; Thu, 4 Sep 2008 15:49:28 -0700 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 0D889741B9; Thu, 4 Sep 2008 18:49:26 -0400 (EDT) Received: from FILTH (unknown [149.254.192.208]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 0946A741A3; Thu, 4 Sep 2008 18:49:16 -0400 (EDT) Received: from localhost (HELO FILTH.SHOOTYBANGBANG.COM) [127.0.0.1] by FILTH (10.206.145.4) with ESMTP (Classic Hamster Vr. 2.1 Build 2.1.0.11) ; Thu, 04 Sep 2008 23:48:46 +0100 Date: Thu, 04 Sep 2008 23:48:46 +0100 Message-Id: <823akfwmr5.fsf@FILTH.SHOOTYBANGBANG.COM> From: jpw@pobox.com (John Paul Wallington) To: "Antoine Levitt" CC: rudalics@gmx.at, 858@debbugs.gnu.org, cyd@stupidchicken.com, keegan.csmith@gmail.com, mwolson@gnu.org In-reply-to: <6fa54e4e0809040714x79114c9ajf63023dc0ae615c@mail.gmail.com> (smeuuh@gmail.com) References: <87wshuse77.fsf@cyd.mit.edu> <48BE5A91.2060302@gmx.at> <6fa54e4e0809040714x79114c9ajf63023dc0ae615c@mail.gmail.com> X-URL: http://www.shootybangbang.com/ X-Attribution: JPW X-NSA-Fodder: monarchist Jiang Zemin diwn KGB Jyllandsposten sweep X-Tom-Swifty: "I'm sorry I broke your window," Tom said painfully. X-Face: #uahb@^mo@bA"{q'"a4y[w$n3/V:haD\;YenWcT7)kXYx3/>#[DD9ExVe};9FG6X`l!Dm"V peub=u!&&?}s~{TOPtGdH)KA}/qCr;d"Gr*'9_V1PE@+K'tk2/Iq@PBKtJ+]&,CP9_Fl8'*R]LCR0| 6q;Xey'`:DX+)S.]p[KP^sNe`8B\W6(Nw{o5i)y+I!h=0bU5L`Tj`~Q0!G"t(s7o7eh)J\>P>,!~/w $$jGEVa%H%8(jTv X-Pobox-Relay-ID: B98959CC-7AD3-11DD-AFF6-3113EBD4C077-02562057!a-sasl-quonix.pobox.com > Hi, Hi Antoine, > I did some testing, and the bug was not in tracker as I suspected, it's in > scrolltobottom, in erc-goodies.el. This should be much easier for you to > debug: it's only a few lines long. I strongly suspect the part following > this comment is responsible : > ;; Temporarily bind resize-mini-windows to nil so that users who have > it > ;; set to a non-nil value will not suffer from premature minibuffer > ;; shrinkage due to the below recenter call. I have no idea why this > ;; works, but it solves the problem, and has no negative side effects. > ;; (Fran Litterio, 2003/01/07) > > Looks like it does have side effects after all :-) Sorry, I'm having difficulties reproducing the bug. Could you try getting rid of the code that binds `resize-mini-windows', perhaps using the function below, and test whether your suspicion is correct? (defun erc-scroll-to-bottom (window display-start) "Changed to see whether not let binding `resize-mini-windows' to nil doesn't cause the bug." (if (window-live-p window) (erc-with-selected-window window (save-restriction (widen) (when (and erc-insert-marker ;; we're editing a line. Scroll. (> (point) erc-insert-marker)) (save-excursion (goto-char (point-max)) (recenter (or erc-input-line-position -1)) (sit-for 0))))))) From unknown Tue Jun 17 20:26:47 2025 X-Loop: don@donarmstrong.com Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Reply-To: "Antoine Levitt" , 858@debbugs.gnu.org Resent-From: "Antoine Levitt" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 23:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 858 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 858-submit@emacsbugs.donarmstrong.com id=B858.12205697833818 (code B ref 858); Thu, 04 Sep 2008 23:15:03 +0000 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=-3.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, HTML_MESSAGE,MDO_CABLE_TV3 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 858) by emacsbugs.donarmstrong.com; 4 Sep 2008 23:09:43 +0000 Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84N9cxj003812 for <858@emacsbugs.donarmstrong.com>; Thu, 4 Sep 2008 16:09:40 -0700 Received: by ik-out-1112.google.com with SMTP id c21so155932ika.1 for <858@emacsbugs.donarmstrong.com>; Thu, 04 Sep 2008 16:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=NFpCBWjzV9IMIoatld/FPPXUzvRTN/aicjAufIMlKPE=; b=gdETcrOCRG8QiB+4nFaoHgqZx2Fg46XHR7kE4K+qG6yW4BA4Z8qtpOV4VG5fNSdu9K F7iL35JfuAyU/YRXnKI4alxvUd0+XmGegYvpIaL/J9Pyr4jPGdCjLLWkGvch7kjJcu7T QbkYTXlKQMHmHegFuDw1hmwuFNmpcuvD6zXNY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=Z9dX+F4A5t3tc/ZLkqy+2LYFmg7lJQkJISVBdtw75cI/EQzv/oKjSP8ORJs7CGXszV 7TEvn89WSHjmOQgm0K6xweArrzjn5rCXE0eZPbG5fdzfbA1UzODCHkwXIPA5/X/YU4j+ kyQ9v1mz2zfhGfo+R83EraAcG3T7kzdwc8600= Received: by 10.210.65.17 with SMTP id n17mr12675133eba.80.1220569777956; Thu, 04 Sep 2008 16:09:37 -0700 (PDT) Received: by 10.210.141.18 with HTTP; Thu, 4 Sep 2008 16:09:37 -0700 (PDT) Message-ID: <6fa54e4e0809041609t1f38bc9ava23a69d455af50a9@mail.gmail.com> Date: Fri, 5 Sep 2008 01:09:37 +0200 From: "Antoine Levitt" To: "John Paul Wallington" Cc: rudalics@gmx.at, 858@debbugs.gnu.org, cyd@stupidchicken.com, keegan.csmith@gmail.com, mwolson@gnu.org In-Reply-To: <823akfwmr5.fsf@FILTH.SHOOTYBANGBANG.COM> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_53328_21812674.1220569777940" References: <87wshuse77.fsf@cyd.mit.edu> <48BE5A91.2060302@gmx.at> <6fa54e4e0809040714x79114c9ajf63023dc0ae615c@mail.gmail.com> <823akfwmr5.fsf@FILTH.SHOOTYBANGBANG.COM> ------=_Part_53328_21812674.1220569777940 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline My suspicion was wrong, the binding doesn't change anything. I just said that by looking at the comment, but didn't try. Sorry about that. However, (defun erc-scroll-to-bottom (window display-start) nil) removes the bug. The bug should be reproducable with emacs -Q, the ibuffer configuration lines I gave in the first bug report, and scroll-to-bottom mode on. I'm using latest CVS, the bug also happens with a build from july. Best of luck Antoine 2008/9/5 John Paul Wallington > > Hi, > > Hi Antoine, > > > I did some testing, and the bug was not in tracker as I suspected, it's > in > > scrolltobottom, in erc-goodies.el. This should be much easier for you to > > debug: it's only a few lines long. I strongly suspect the part following > > this comment is responsible : > > ;; Temporarily bind resize-mini-windows to nil so that users who > have > > it > > ;; set to a non-nil value will not suffer from premature minibuffer > > ;; shrinkage due to the below recenter call. I have no idea why > this > > ;; works, but it solves the problem, and has no negative side > effects. > > ;; (Fran Litterio, 2003/01/07) > > > > Looks like it does have side effects after all :-) > > Sorry, I'm having difficulties reproducing the bug. > > Could you try getting rid of the code that binds > `resize-mini-windows', perhaps using the function below, and test > whether your suspicion is correct? > > > (defun erc-scroll-to-bottom (window display-start) > "Changed to see whether not let binding `resize-mini-windows' to nil > doesn't cause the bug." > (if (window-live-p window) > (erc-with-selected-window window > (save-restriction > (widen) > (when (and erc-insert-marker > ;; we're editing a line. Scroll. > (> (point) erc-insert-marker)) > (save-excursion > (goto-char (point-max)) > (recenter (or erc-input-line-position -1)) > (sit-for 0))))))) > ------=_Part_53328_21812674.1220569777940 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
My suspicion was wrong, the binding doesn't change anything. I just said that by looking at the comment, but didn't try. Sorry about that.
However, (defun erc-scroll-to-bottom (window display-start) nil) removes the bug.
The bug should be reproducable with emacs -Q, the ibuffer configuration lines I gave in the first bug report, and scroll-to-bottom mode on. I'm using latest CVS, the bug also happens with a build from july.
Best of luck
Antoine
2008/9/5 John Paul Wallington <jpw@pobox.com>
> Hi,

Hi Antoine,

> I did some testing, and the bug was not in tracker as I suspected, it's in
> scrolltobottom, in erc-goodies.el. This should be much easier for you to
> debug: it's only a few lines long. I strongly suspect the part following
> this comment is responsible :
>       ;; Temporarily bind resize-mini-windows to nil so that users who have
> it
>       ;; set to a non-nil value will not suffer from premature minibuffer
>       ;; shrinkage due to the below recenter call.  I have no idea why this
>       ;; works, but it solves the problem, and has no negative side effects.
>       ;; (Fran Litterio, 2003/01/07)
>
> Looks like it does have side effects after all :-)

Sorry, I'm having difficulties reproducing the bug.

Could you try getting rid of the code that binds
`resize-mini-windows', perhaps using the function below, and test
whether your suspicion is correct?


(defun erc-scroll-to-bottom (window display-start)
 "Changed to see whether not let binding `resize-mini-windows' to nil
doesn't cause the bug."
 (if (window-live-p window)
     (erc-with-selected-window window
       (save-restriction
         (widen)
         (when (and erc-insert-marker
                    ;; we're editing a line. Scroll.
                    (> (point) erc-insert-marker))
           (save-excursion
             (goto-char (point-max))
             (recenter (or erc-input-line-position -1))
             (sit-for 0)))))))

------=_Part_53328_21812674.1220569777940-- From unknown Tue Jun 17 20:26:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Antoine Levitt" Subject: bug#858 closed by Michael Olson (Re: Conflict between ERC mode tracking and ibuffer window shrinking) Message-ID: References: <87wsgjznd7.fsf@grepfind.mwolson.org> <6fa54e4e0809011626h5f200906w83f2f03179b22148@mail.gmail.com> X-Emacs-PR-Message: they-closed 858 X-Emacs-PR-Package: emacs Reply-To: 858@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1223442903-10156-1" This is a multi-part message in MIME format... ------------=_1223442903-10156-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #858: Conflict between ERC mode tracking and ibuffer window shrinking It has been closed by Michael Olson . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Michael Olson by replying to this email. --=20 858: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D858 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1223442903-10156-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From mwolson@grepfind.mwolson.org Tue Oct 7 22:07:17 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=-5.4 required=4.0 tests=AWL,BAYES_00,FOURLA autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 858-done) by emacsbugs.donarmstrong.com; 8 Oct 2008 05:07:17 +0000 Received: from deleuze.hcoop.net (Debian-exim@deleuze.hcoop.net [69.90.123.67]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9857EQY008912 for <858-done@emacsbugs.donarmstrong.com>; Tue, 7 Oct 2008 22:07:15 -0700 Received: from cpe-75-84-154-172.socal.res.rr.com ([75.84.154.172] helo=grepfind.mwolson.org ident=mwolson) by deleuze.hcoop.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KnRGO-0002t8-Gx; Wed, 08 Oct 2008 01:07:09 -0400 Received: from mwolson by grepfind.mwolson.org with local (Exim 4.69) (envelope-from ) id 1KnRGH-0008Q2-1d; Tue, 07 Oct 2008 22:07:01 -0700 X-Hashcash: 1:20:081008:858-done@emacsbugs.donarmstrong.com::SAHelfDcl+ftGc38:000000000000000000000000006HtQ From: Michael Olson To: Chong Yidong Cc: John Paul Wallington , "Antoine Levitt" , 858-done@debbugs.gnu.org Subject: Re: Conflict between ERC mode tracking and ibuffer window shrinking References: <87wshuse77.fsf@cyd.mit.edu> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEU1QytIVTlZY0dqc1N6 hGGJl3qZpZCtuKXsjxzFAAACW0lEQVR42l2UXXrqIBCGk67Aoe29Ac4CTPDcGwZ73wLdQDOuQLP9 8wHG9hT1Mc6bb/5jp7Xed92TVrqeCYfKRVc+XdfDbqbJ8TixG1UDu2a3xkf2H+z+A6Qn7Xk71AA8 kdJmZg4xpcTshgr2JQSurAswhwDFYQN9r4yxx1BIQqBTBbvqahw9hxRSLOBdFVA89TTOvgSoMaLf ABTWOg5Z8lLRNyD7x4WSVHU1DZurThn2HI9Oa561JhTSDUWxq64YqRlmrcdhA73y3rmJY1okotDT NzDO2XNGZPnS7A4b6NQ8foQFN2eJmEBR7Du1Q/DRh7R4O50BrGmu0F8i49Iya+ScvtDNqkADB8zD pwU9wTu9c8msdNYOO0JvYYyREd9xBOh7zSNc2WMZUYzIDHOpU0Kxe5o9o0eccsr5mNLcwHhC8DoM SQkJ5wbUxAdlbDELEpDbclc8sT2gV2HJIrj/si7hDgzPpY4sqxTV+pWkgt7EGesDIFWUnGuK7pkn erZoieCVZPGcG3jCJimLwS7IVZY4R3mvoNfzoCfOF0mIG1nna+TadAxzgF5u0b3JTaxcmZtCF1dn WSOv63oNl4U3BQCLXOQKWZIHUBWcUci6iuTL7eMOelVAKfp+NkA0kOElN3BbV26AiGZsXEqfa0EQ NtATvTAKCeHh7AEEi4knM6S3HwB2eo1zeZQ5fDbgNkCpbEwh8HUTqYDqwUhIG2NQ/k2WH+CVB9LK aINy0EeAvgF6KRK0wIaPiX8CioRNpQF7X/8EOnoAPpUvrX8DED7t8B/Bv8ErfnpSfxv4B9rx7BDd lxXRAAAAAElFTkSuQmCC Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEU2MSswMT5cXXJlX1CC hJObl4TMw7br49UydvpeAAACIUlEQVR42oXTTXObMBAG4FWJ7xKpczaYSa84fJw9doKvJLKUq6fA 8gtAf7+7CPwxnU537IsevYtWxmD+UfB/qAEEwN9Qg+KS8hFqkEqokEmIO6hBSHWrG0xtQhWG/FVy vUAtpo1RFHNFU2QCXg9jX8l7slVrD5/UKVLxIY4PySFOOOOBAlEYJ7R4oNUkiXdyAe4zA22hxIrh K4y4TfLOD474FLGHmvbQIgWug4g1w552HvhAtwklMKQJJ6K7yZWYYJPQER/WlZpAJA9tbokwmbfT LdG1y40QSjDA0icUAgQVoWS4NvixA7kD2JHAPchQQIDVB+7p13kAgI/eja3BDTwkxJPpnRuzoNqL O5CibNE5N+SNvYC4Szw3kFPC2aG/yNUVpCyDrOBWBM0EXx5+6ny0FHDd2/eFpzOfHl7ey7FiQDND 6uE0VGPufHmg+Rm+3bkzMzQTvPH1KHFyXcWHcv2SOJNIBad5t8MlYfQWpIyvYPs5Qa9JSvddLQF6 kJ7hnFLk1wwjPakO5nc320JQLkCf/Sqb/wbFRr66aw1p0HjQZg9PfrGz/fgbVjPkRstsGmKgi0Sd 5lgwZJk9gj/WaNC1Ji3wyFBoazIo7HJerF89lNq2KRQGJ2gLrEsseXLKdEf50hlLNGiLumoqBtsV qKFEnI6uES9lawkK2+XYyQJZMmtKbKoWGRA1tukzchXYldhhQ0A98UwPDCbQqKkn5vgHawMQkYJi arwAAAAASUVORK5CYII= X-Hashcash: 1:20:081008:smeuuh@gmail.com::76YtJwXKog0CwZ6U:01qOY X-Hashcash: 1:20:081008:cyd@stupidchicken.com::Sv7W24XEj90noL3B:00000000000000000000000000000000000000003SOS X-Hashcash: 1:20:081008:jpw@gnu.org::IjSpeFzNkbra5KvG:0000004lFe X-Hashcash: 1:20:081008:858@emacsbugs.donarmstrong.com::bbJHwGHdWoSPK5op:00000000000000000000000000000003tgC Date: Tue, 07 Oct 2008 22:07:00 -0700 In-Reply-To: <87wshuse77.fsf@cyd.mit.edu> (Chong Yidong's message of "Tue, 02 Sep 2008 12:30:20 -0400") Message-ID: <87wsgjznd7.fsf@grepfind.mwolson.org> 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 Chong Yidong writes: > Hi guys, > > Could you take a look at this bug report? I'm not sure whether ERC or > ibuffer needs fixing. The problem was that just before fit-window-to-buffer was called in `ibuffer-shrink-to-fit', the display was showing a split frame with both windows displaying the same ERC buffer, even though the current buffer was actually *Ibuffer*. I added a (redisplay t) call to force the display to be up-to-date before fit-window-to-buffer is called, which fixes the problem. -- | Michael Olson | FSF Associate Member #652 | | http://mwolson.org/ | Hobbies: Lisp, HCoop | | Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner | `-------------------------------------------------------' ------------=_1223442903-10156-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From smeuuh@gmail.com Mon Sep 1 16:26:58 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=-3.5 required=4.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Sep 2008 23:26:59 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m81NQtbn030900 for ; Mon, 1 Sep 2008 16:26:56 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaInO-0006SF-Sw for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 19:26:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaInO-0006S1-Eo for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 19:26:54 -0400 Received: from [199.232.76.173] (port=43476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaInO-0006Ry-A9 for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 19:26:54 -0400 Received: from ey-out-1920.google.com ([74.125.78.146]:42946) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KaInN-0006Da-Vj for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 19:26:54 -0400 Received: by ey-out-1920.google.com with SMTP id 4so801548eyg.24 for ; Mon, 01 Sep 2008 16:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=EGr/0fVL+fP2hTacsoIGx/0uRnfGb3b+HLdJ3qgiYlw=; b=cDEeVIOwoSaL4J2gPey4rC0NUX/Fw4XzwTSZyMK6+ygXlcKfV5On4HJ7nVK+SkG6JP J2T7JQpodt1qHkJReeeTfTMehq9ODuInr0kbvLvCsSu41futFUJEbTwj+bUoUIQ2hO04 4Sh/LlZIA2ALAm0ioNPMuItmttulNqprs6dzk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=avF8q3Uvotg1n6UDzNpfVi1uB53fchUDcoWzkhNrraBKQps52UlhQP5HDHf5+bRPBN nK2uVOymhCn6cDmbJn0WT49vrfv0b+YLv7J6ihl4DmWE4TbSRylefO7wuFB4T9RI+arX Oy+je0afdPzdzADTGloVhEKP0C0AUm6X4y3Cg= Received: by 10.210.42.20 with SMTP id p20mr7295257ebp.73.1220311612198; Mon, 01 Sep 2008 16:26:52 -0700 (PDT) Received: by 10.210.141.18 with HTTP; Mon, 1 Sep 2008 16:26:52 -0700 (PDT) Message-ID: <6fa54e4e0809011626h5f200906w83f2f03179b22148@mail.gmail.com> Date: Tue, 2 Sep 2008 01:26:52 +0200 From: "Antoine Levitt" To: bug-gnu-emacs@gnu.org Subject: Conflict between ERC mode tracking and ibuffer window shrinking MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_56566_23114664.1220311612198" X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) ------=_Part_56566_23114664.1220311612198 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, There is a bug when using conjointly these two features. Here are the relevant portions of configuration : ;;make ibuffer resize itself to its buffer size (setq ibuffer-use-other-window t) (setq ibuffer-default-shrink-to-minimum-size t) No specific configuration for erc, just enabling tracker is enough. Then, run erc, and, in any erc buffer, call ibuffer. The screen briefly flashes as an ERC window opens then disappears, and the ibuffer window is reduced to a much smaller size than what it would be outside ERC. I think the issue is erc's hook to window-configuration-change somehow messing with ibuffer, but I'm not experienced enough to find where the bug is. Antoine Levitt ------=_Part_56566_23114664.1220311612198 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
There is a bug when using conjointly these two features. Here are the relevant portions of configuration :
;;make ibuffer resize itself to its buffer size
(setq ibuffer-use-other-window t)
(setq ibuffer-default-shrink-to-minimum-size t)

No specific configuration for erc, just enabling tracker is enough.
Then, run erc, and, in any erc buffer, call ibuffer. The screen briefly flashes as an ERC window opens then disappears, and the ibuffer window is reduced to a much smaller size than what it would be outside ERC. I think the issue is erc's hook to window-configuration-change somehow messing with ibuffer, but I'm not experienced enough to find where the bug is.

Antoine Levitt
------=_Part_56566_23114664.1220311612198-- ------------=_1223442903-10156-1--