From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daimrod Newsgroups: gmane.emacs.bugs Subject: bug#17746: [O] bug#17746: 24.4.50; "byte-code: `recenter'ing a window that does not display current-buffer." when composing a message Date: Thu, 12 Jun 2014 19:12:12 +0900 Message-ID: <87zjhicu83.fsf@tanger.home> References: <837g4o1x3r.fsf@gnu.org> <87r42vlavi.fsf@geodiff-mac3.ulb.ac.be> <87ha3rxx79.fsf@bzg.ath.cx> <87ppifudvd.fsf@tanger.home> <878up24k6j.fsf@yahoo.fr> <878up2ec7z.fsf@tanger.home> <874mzqeaug.fsf@tanger.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402568027 30703 80.91.229.3 (12 Jun 2014 10:13:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2014 10:13:47 +0000 (UTC) Cc: Bastien , 17746@debbugs.gnu.org, David Griffiths To: Nicolas Richard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 12 12:13:39 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wv20k-0005wp-QV for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 12:13:35 +0200 Original-Received: from localhost ([::1]:52954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wv20g-00017d-7A for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 06:13:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wv20W-0000zj-C2 for bug-gnu-emacs@gnu.org; Thu, 12 Jun 2014 06:13:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wv20Q-0006WF-9V for bug-gnu-emacs@gnu.org; Thu, 12 Jun 2014 06:13:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wv20E-0006VB-Ed; Thu, 12 Jun 2014 06:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wv20E-0003Mk-4O; Thu, 12 Jun 2014 06:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daimrod Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Thu, 12 Jun 2014 10:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17746 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 17746-submit@debbugs.gnu.org id=B17746.140256795812884 (code B ref 17746); Thu, 12 Jun 2014 10:13:02 +0000 Original-Received: (at 17746) by debbugs.gnu.org; 12 Jun 2014 10:12:38 +0000 Original-Received: from localhost ([127.0.0.1]:45072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wv1zp-0003Lh-1f for submit@debbugs.gnu.org; Thu, 12 Jun 2014 06:12:37 -0400 Original-Received: from mail-pa0-f50.google.com ([209.85.220.50]:43564) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wv1zm-0003LR-0A for 17746@debbugs.gnu.org; Thu, 12 Jun 2014 06:12:34 -0400 Original-Received: by mail-pa0-f50.google.com with SMTP id fb1so863727pad.9 for <17746@debbugs.gnu.org>; Thu, 12 Jun 2014 03:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=w1EuvxUe0cmzbRBJF1cLNfRNVxJ3WPk5XmaJFj/VwVM=; b=HYEqCsOZ0FAR6DokkAjC7YT85w09ayCu2inJolFQAjuSl3BJzk9hhhkP50x67qFOB8 KXLkdbcUCl2nuQs0UYF/FtRDzTwj9P9PIFUTQPyQa2ZR39d/CB1g7Wc+vaE6G/2ICEBJ lbF5b9/i4hYW1Nv37hXWYXEJLx6iyrfJnpJgE+hC+Y34T7ay/gh633a3BXIIzEKK535b sAU57kfUvl5gECA4FKXvFXimk6NwWUgeetC/sxeo4+KsyFoSyPg8X+oMhryy+XtpnnDN yycSzmpRaHNl8WDi8i7YitL46Aba5HxVxR2CWShjFnzNZmOoCEYmXLQkfkPFyS5q6Gqx ksNQ== X-Received: by 10.67.21.205 with SMTP id hm13mr19974519pad.112.1402567947976; Thu, 12 Jun 2014 03:12:27 -0700 (PDT) Original-Received: from localhost ([150.100.253.2]) by mx.google.com with ESMTPSA id uj2sm3045092pab.14.2014.06.12.03.12.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jun 2014 03:12:26 -0700 (PDT) In-Reply-To: <874mzqeaug.fsf@tanger.home> (daimrod@gmail.com's message of "Thu, 12 Jun 2014 18:27:51 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90290 Archived-At: Daimrod writes: > Daimrod writes: > >> Nicolas Richard writes: >> >>> Daimrod writes: >>>>> PS: The change about throwing an error when recentering a window >>>>> that does not display the current buffer breaks ~37 tests in Org >>>>> master branch, even with this fix. I need to digg this further. >>>> >>>> Err, what's the rational behind this change? >>> >>> It is meant to catch cases where recenter acts on the wrong window. >>> Think of the cases where (recenter) is called from within a timer or a >>> process filter function. >>> >>> See the discussion entitled >>>> comint-preoutput-filter-functions and flickering redisplay in TTY >>> on emacs devel. >> >> Thanks! > > Okay, so is there another fix than `(when (eq (current-buffer) > (window-buffer)))' or removing the call? > > If not, why does it raise an error instead of doing nothing silently? I've read the fix in org-mode and I understand that it was a silly question. Please ignore it. Best, -- Daimrod/Greg