From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: set_window_buffer Date: Fri, 12 Sep 2008 23:23:21 +0200 Message-ID: <48CADDC9.5080607@gmx.at> References: <48CAAF4F.7060703@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: ger.gmane.org 1221254775 9060 80.91.229.12 (12 Sep 2008 21:26:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2008 21:26:15 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 12 23:27:11 2008 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.50) id 1KeGAX-0001ru-MR for ged-emacs-devel@m.gmane.org; Fri, 12 Sep 2008 23:27:09 +0200 Original-Received: from localhost ([127.0.0.1]:45083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeG9X-0008QX-6W for ged-emacs-devel@m.gmane.org; Fri, 12 Sep 2008 17:26:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KeG9L-0008Ge-30 for emacs-devel@gnu.org; Fri, 12 Sep 2008 17:25:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KeG9K-0008FG-42 for emacs-devel@gnu.org; Fri, 12 Sep 2008 17:25:54 -0400 Original-Received: from [199.232.76.173] (port=44647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeG9K-0008F5-0B for emacs-devel@gnu.org; Fri, 12 Sep 2008 17:25:54 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:43160) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KeG9J-0005iq-BN for emacs-devel@gnu.org; Fri, 12 Sep 2008 17:25:53 -0400 Original-Received: (qmail invoked by alias); 12 Sep 2008 21:25:51 -0000 Original-Received: from 62-47-43-39.adsl.highway.telekom.at (EHLO [62.47.43.39]) [62.47.43.39] by mail.gmx.net (mp042) with SMTP; 12 Sep 2008 23:25:51 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18k0rspCiUkLuWbEAx0kPR1dzEKkQqOqUY+qJ8dQ3 H6Srep2yBYeuzv User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 X-detected-kernel: by monty-python.gnu.org: 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:103860 Archived-At: >> IMHO we should mention it in NEWS. I suppose a couple of applications >> not distributed with Emacs might rely on the faulty behavior. > > I'd be really impressed if that's the case. I probably can't impress you but in one routine I originally wrote for Emacs 21 I found ;;; (defsubst set-window-buffer-only (window buffer &optional keep-margins) ;;; "As `set-window-buffer' but don't change current buffer." ;;; (let ((current-buffer (current-buffer))) ;;; (set-window-buffer window buffer keep-margins) ;;; (set-buffer current-buffer))) so this already was a problem for me. Later I apparently changed my mind, used `set-window-buffer' instead, and had to fix this today again. I recall a similar problem with `save-selected-window' which in certain cases refused to restore the current buffer. martin