From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Date: Wed, 03 Sep 2008 11:36:17 +0200 Message-ID: <48BE5A91.2060302@gmx.at> References: <87wshuse77.fsf@cyd.mit.edu> Reply-To: martin rudalics , 858@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220436136 2374 80.91.229.12 (3 Sep 2008 10:02:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 10:02:16 +0000 (UTC) Cc: Keegan Carruthers-Smith , Michael Olson , John Paul Wallington To: Chong Yidong , 858@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 12:03:10 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KapCf-0001kF-Ca for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 12:03:09 +0200 Original-Received: from localhost ([127.0.0.1]:35649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KapBf-0000or-Mm for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 06:02:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kaoxb-00030n-Qk for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 05:47:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaoxZ-00030G-Nw for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 05:47:34 -0400 Original-Received: from [199.232.76.173] (port=48294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaoxZ-00030A-GE for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 05:47:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38662) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KaoxZ-0007O2-7K for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 05:47:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m839lUvG002978; Wed, 3 Sep 2008 02:47:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m839j3qv001643; Wed, 3 Sep 2008 02:45:03 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@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: Original-Received: via spool by 858-submit@emacsbugs.donarmstrong.com id=B858.122043475632287 (code B ref 858); Wed, 03 Sep 2008 09:45:03 +0000 Original-Received: (at 858) by emacsbugs.donarmstrong.com; 3 Sep 2008 09:39:16 +0000 Original-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 Original-Received: (qmail invoked by alias); 03 Sep 2008 09:39:01 -0000 Original-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 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <87wshuse77.fsf@cyd.mit.edu> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.63 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 03 Sep 2008 05:47:34 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20082 Archived-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