From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#6078: 23.1.90; switch-to-buffer does not redisplay until an event occurs Date: Mon, 03 May 2010 19:17:07 +0200 Message-ID: <4BDF0513.40803@gmx.at> References: <4BDDCB1D.2080909@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272910766 22511 80.91.229.12 (3 May 2010 18:19:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 May 2010 18:19:26 +0000 (UTC) Cc: Dimitri Fontaine , 6078@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 03 20:19:25 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O90Dl-0004qY-Kx for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 May 2010 20:19:24 +0200 Original-Received: from localhost ([127.0.0.1]:56596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O904D-0001R2-0T for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 May 2010 14:08:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8zPH-0003Hz-TJ for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 13:26:11 -0400 Original-Received: from [140.186.70.92] (port=57318 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8zPC-0003Hi-2v for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 13:26:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8zP5-0002z2-Cj for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 13:26:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37639) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8zP5-0002yu-Au for bug-gnu-emacs@gnu.org; Mon, 03 May 2010 13:25:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O8zHN-0004S0-Qg; Mon, 03 May 2010 13:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2010 17:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6078 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6078-submit@debbugs.gnu.org id=B6078.127290704317099 (code B ref 6078); Mon, 03 May 2010 17:18:01 +0000 Original-Received: (at 6078) by debbugs.gnu.org; 3 May 2010 17:17:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8zGl-0004Rk-DG for submit@debbugs.gnu.org; Mon, 03 May 2010 13:17:23 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O8zGh-0004Rf-Ub for 6078@debbugs.gnu.org; Mon, 03 May 2010 13:17:22 -0400 Original-Received: (qmail invoked by alias); 03 May 2010 17:17:13 -0000 Original-Received: from 62-47-44-153.adsl.highway.telekom.at (EHLO [62.47.44.153]) [62.47.44.153] by mail.gmx.net (mp017) with SMTP; 03 May 2010 19:17:13 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+m4Iw9jB6mEKQsYuPuz+arHH7KhWdA646Zk77iQK ripBw3JQbcKkry User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.69999999999999996 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 03 May 2010 13:18:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:36662 Archived-At: >> (BTW, you need neither the `select-window' nor the `switch-to-buffer' >> in your code, `set-window-buffer' is sufficient.) > > OTOH, you'll want to pay attention to dedicated windows > (i.e. save&restore the window-dedicated-p value). Dimitri already saves and restores the window configuration. This should handle "weakly" dedicated windows. If he also wants to handle strongly dedicated windows, `set-window-buffer' will barf anyway - he has to reset the status manually for each window and have the restore step take care of setting it again. martin