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#17769: 24.4.50; [PATCH] rcirc-omit-mode: `recenter'ing a window that does not display current-buffer. Date: Fri, 13 Jun 2014 18:54:04 +0900 Message-ID: <87r42tb0eb.fsf@tanger.home> References: <87ioo5cn1m.fsf@tanger.home> <8338f9xldz.fsf@gnu.org> <8738f9cgta.fsf@tanger.home> <83zjhhw3m8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402653323 24731 80.91.229.3 (13 Jun 2014 09:55:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 09:55:23 +0000 (UTC) Cc: 17769@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 11:55:16 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 1WvOCZ-0000Ta-Hd for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 11:55:15 +0200 Original-Received: from localhost ([::1]:57832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvOCZ-0001kl-3Q for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 05:55:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvOCR-0001hV-G6 for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 05:55:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvOCM-0002hb-M4 for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 05:55:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvOCM-0002hR-Iv for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 05:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WvOCM-0001TV-5V for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 05:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daimrod Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jun 2014 09:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17769 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 17769-submit@debbugs.gnu.org id=B17769.14026532605593 (code B ref 17769); Fri, 13 Jun 2014 09:55:02 +0000 Original-Received: (at 17769) by debbugs.gnu.org; 13 Jun 2014 09:54:20 +0000 Original-Received: from localhost ([127.0.0.1]:46213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvOBe-0001S8-Ru for submit@debbugs.gnu.org; Fri, 13 Jun 2014 05:54:19 -0400 Original-Received: from mail-pd0-f176.google.com ([209.85.192.176]:60885) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvOBc-0001Rk-7M for 17769@debbugs.gnu.org; Fri, 13 Jun 2014 05:54:17 -0400 Original-Received: by mail-pd0-f176.google.com with SMTP id p10so1947698pdj.7 for <17769@debbugs.gnu.org>; Fri, 13 Jun 2014 02:54:10 -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=ToOoDRxUkdakt28nl3/1Y2h5eMkCUhZ5Qk8D9QXwOPA=; b=nfIBV2nEKx0IQZzIwPYhLYRPmfl7ABHbCD7GNMOQ+odyVeYem/gFCiqCTFskvngZOH 5eS2PUhL8z0Cv+lfJGE9Bw02yMl+ozTONcd2bkw3LDcNaF/uKs5B7JEi0KZRr5nLmuqP ZdUdAawVHV7WqS6Lq+R7qfeLcbrkr7rwOeiV/sth6vYF91AjtfSLBsoCeoJ8ZEmk+dHC YILZMRw9BheIYF85go4yLAOWC1Kq7gjugze081jzbZJFQPXAEjrExeE8erOzGjdmTVsq LYB+OmQ2Vzr4GuPKKJ2siEPXJ7m6A7RSmhgUAYRZwAO+fFTo5KxgJ/z9Yed9MxHd6BOa gDdQ== X-Received: by 10.66.227.33 with SMTP id rx1mr1747531pac.133.1402653249993; Fri, 13 Jun 2014 02:54:09 -0700 (PDT) Original-Received: from localhost ([2001:2f8:200:1:e206:e6ff:fecb:5a]) by mx.google.com with ESMTPSA id gw8sm2663997pbc.28.2014.06.13.02.54.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jun 2014 02:54:09 -0700 (PDT) In-Reply-To: <83zjhhw3m8.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Jun 2014 12:38:55 +0300") 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:90318 Archived-At: Eli Zaretskii writes: >> From: Daimrod >> Cc: 17769@debbugs.gnu.org >> Date: Fri, 13 Jun 2014 18:14:09 +0900 >> >> > This doesn't sound like the right fix to me. Instead, the code should >> > momentarily switch to the right window, and call recenter there. >> > That's surely what the author of this code intended, AFAIU. >> >> But the buffer might not be displayed in any window. > > Then with-current-buffer is your friend, I think. IIUC the goal isn't to recenter the window-buffer but the current-buffer, but that cannot be done because it is not displayed on any windows. So, I with-current-buffer won't help, I would need to use with-current-buffer-window. Or did I misundertand you? -- Daimrod/Greg