From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpw@pobox.com (John Paul Wallington) Newsgroups: gmane.emacs.bugs Subject: bug#858: Conflict between ERC mode tracking and ibuffer window shrinking Date: Thu, 04 Sep 2008 23:48:46 +0100 Message-ID: <823akfwmr5.fsf@FILTH.SHOOTYBANGBANG.COM> References: <87wshuse77.fsf@cyd.mit.edu> <48BE5A91.2060302@gmx.at> <6fa54e4e0809040714x79114c9ajf63023dc0ae615c@mail.gmail.com> Reply-To: John Paul Wallington , 858@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1220569694 14315 80.91.229.12 (4 Sep 2008 23:08:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 23:08:14 +0000 (UTC) Cc: 858@emacsbugs.donarmstrong.com, mwolson@gnu.org, cyd@stupidchicken.com, keegan.csmith@gmail.com To: "Antoine Levitt" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 05 01:09:08 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 1KbNwq-0000my-EA for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 01:09:08 +0200 Original-Received: from localhost ([127.0.0.1]:46336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbNvr-0002ff-1d for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 19:08:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbNvN-0002Sc-7m for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 19:07:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbNvL-0002QC-5v for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 19:07:35 -0400 Original-Received: from [199.232.76.173] (port=45159 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbNvK-0002Q0-OJ for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 19:07:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44422) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbNvK-000082-3K for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 19:07:34 -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 m84N7Va2003560; Thu, 4 Sep 2008 16:07:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m84Mt4P8030601; Thu, 4 Sep 2008 15:55:05 -0700 X-Loop: don@donarmstrong.com Resent-From: jpw@pobox.com (John Paul Wallington) Resent-To: bug-submit-list@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: Original-Received: via spool by 858-submit@emacsbugs.donarmstrong.com id=B858.122056857128765 (code B ref 858); Thu, 04 Sep 2008 22:55:04 +0000 Original-Received: (at 858) by emacsbugs.donarmstrong.com; 4 Sep 2008 22:49:31 +0000 Original-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 Original-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) Original-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) Original-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 In-reply-to: <6fa54e4e0809040714x79114c9ajf63023dc0ae615c@mail.gmail.com> (smeuuh@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 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 04 Sep 2008 19:07:35 -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:20169 Archived-At: > 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)))))))