From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.devel Subject: save-window-excursion and window-configuration-change-hook interaction Date: Mon, 17 May 2010 14:55:53 -0500 Message-ID: <87mxvy5mly.fsf@vh213601.truman.edu> Reply-To: jay.p.belanger@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274126149 23906 80.91.229.12 (17 May 2010 19:55:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 19:55:49 +0000 (UTC) Cc: jay.p.belanger@gmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 17 21:55:48 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OE6Pj-0003yR-6A for ged-emacs-devel@m.gmane.org; Mon, 17 May 2010 21:55:47 +0200 Original-Received: from localhost ([127.0.0.1]:42613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE6Pi-00023J-LM for ged-emacs-devel@m.gmane.org; Mon, 17 May 2010 15:55:46 -0400 Original-Received: from [140.186.70.92] (port=33491 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE6PX-0001yo-K6 for emacs-devel@gnu.org; Mon, 17 May 2010 15:55:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE6PP-0005cP-Tf for emacs-devel@gnu.org; Mon, 17 May 2010 15:55:35 -0400 Original-Received: from mail.truman.edu ([150.243.160.94]:35630 helo=uranium.truman.edu) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE6PP-0005bv-Pj for emacs-devel@gnu.org; Mon, 17 May 2010 15:55:27 -0400 Original-Received: from vh213601.truman.edu (vh213601.truman.edu [150.243.162.59]) by uranium.truman.edu (Postfix) with ESMTP id 662E01282FD; Mon, 17 May 2010 14:55:25 -0500 (CDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124871 Archived-At: I'm wondering if the following behavior is expected. Suppose I have two windows; say the top window is active and the bottom window (window WIN, buffer BUF) has === a b c === in it, with point before the "a". If I run the command aaa: (defun aaa () (interactive) (with-current-buffer BUF (save-window-excursion (select-window WIN) (search-forward "b")) (set-window-point WIN (point)))) then the point in the bottom window moves to after the "b", which is what I would expect. However, if the bottom window (with point again before the "a") has a non-nil window-configuration-change-hook, then running aaa does not move the point in the bottom window. I would expected the point in the bottom window to move as before. (To add the hook, with the bottom window active I did M-: (add-hook 'window-configuration-change-hook (lambda () ()) nil t) ) Thanks, Jay