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 18:27:51 +0900 Message-ID: <874mzqeaug.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402565380 29964 80.91.229.3 (12 Jun 2014 09:29:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2014 09:29:40 +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 11:29:30 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 1Wv1K6-0004oP-2P for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 11:29:30 +0200 Original-Received: from localhost ([::1]:52803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wv1K5-0003x6-KV for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 05:29:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wv1Jw-0003pQ-2V for bug-gnu-emacs@gnu.org; Thu, 12 Jun 2014 05:29:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wv1Jq-0006Qk-AZ for bug-gnu-emacs@gnu.org; Thu, 12 Jun 2014 05:29:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wv1Je-0006OF-IP; Thu, 12 Jun 2014 05:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wv1Jd-0001uy-UX; Thu, 12 Jun 2014 05:29: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 09:29:01 +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.14025652877267 (code B ref 17746); Thu, 12 Jun 2014 09:29:01 +0000 Original-Received: (at 17746) by debbugs.gnu.org; 12 Jun 2014 09:28:07 +0000 Original-Received: from localhost ([127.0.0.1]:45061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wv1Ik-0001t7-Li for submit@debbugs.gnu.org; Thu, 12 Jun 2014 05:28:07 -0400 Original-Received: from mail-pb0-f49.google.com ([209.85.160.49]:61530) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wv1Ih-0001sb-Ey for 17746@debbugs.gnu.org; Thu, 12 Jun 2014 05:28:04 -0400 Original-Received: by mail-pb0-f49.google.com with SMTP id jt11so804345pbb.36 for <17746@debbugs.gnu.org>; Thu, 12 Jun 2014 02:27:57 -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=FRV00EM/A2c+y1X2gOauDucaz985Nuv0D4Z/s7fyuk8=; b=sRaqRqf2CKeEIotkyHiK9DdVe0PPg5NcfIZlg/YiRssUdcb2hHvDp7cj5tP8pH1cxR UkZlH42feajnxg+7NimUqRAcn1GRle0r4D5hoLT8TN5ibQlQYM2UKT+oulJYiqqiNx84 UZ8LCfddp0aZIiStSggRL47Ow+0rJkdYrjBOkGUMfxfcLdbGRtaw1Po88CQpZZGd3hNs REIpjXQzfl1eZGuGWxC+8JskC/z4/WmYJicNg25WKMjjYrLtIE1nvo7tAll/4HBNMvaO es9EXbyEQFskNyMd7HdzokCkhKzs/LePhTj8DcrE2ATw3aRDYb/mCeDENnXh+kmuBQxO 0oOw== X-Received: by 10.67.3.229 with SMTP id bz5mr19628414pad.80.1402565277291; Thu, 12 Jun 2014 02:27:57 -0700 (PDT) Original-Received: from localhost ([150.100.253.2]) by mx.google.com with ESMTPSA id lq6sm2384016pab.48.2014.06.12.02.27.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jun 2014 02:27:56 -0700 (PDT) In-Reply-To: <878up2ec7z.fsf@tanger.home> (daimrod@gmail.com's message of "Thu, 12 Jun 2014 17:58:08 +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:90288 Archived-At: 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? Best, -- Daimrod/Greg