From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: The window-pub branch Date: Tue, 7 Dec 2010 07:38:49 -0800 Message-ID: <0AC0EE7C394E4356B0D6A3E25A26B470@us.oracle.com> References: <4CE56872.6050502@gmx.de><4CE6A9C3.5060400@gmx.de> <4CE792B7.7090406@gmx.at><4CE7DEAB.8030401@gmx.de> <4CE80D77.10801@gmx.at><4CE83A6B.6090904@gmx.de> <4CE8EB28.3060607@gmx.at><4CE91FED.9060705@gmx.de> <4CE95C04.1090905@gmx.at> <4CEA3A75.50100@gmx.at><4CEA514F.2030901@gmx.de> <4CEA53A5.9080009@gmx.at><4CEA575E.5020607@gmx.de> <4CEA78DB.6010107@gmx.at> <4CEAA8C5.6080503@gmx.at> <4CEB703A.4070309@gmx.at> <4CEBDE5B.1070904@gmx.at><4CEBF770.6080309@gmx.at> <4CFA8432.5000708@gmx.de><4CFB7B30.9030309@gmx.at> <4CFBF5CE.9090200@gmx.de><4CFCAB94.5010208@gmx.at> <4CFD20DF.4000701@gmx.de><4CFD3C78.8050102@gmx.at> <4CFD671B.5010502@gmx.de> <4CFDEDD2.6060402@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291736364 30344 80.91.229.12 (7 Dec 2010 15:39:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Dec 2010 15:39:24 +0000 (UTC) Cc: 'Stefan Monnier' , emacs-devel@gnu.org To: "'martin rudalics'" , "'grischka'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 07 16:39:19 2010 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 1PPzdO-0006Pd-2j for ged-emacs-devel@m.gmane.org; Tue, 07 Dec 2010 16:39:18 +0100 Original-Received: from localhost ([127.0.0.1]:44587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPzdN-0008Rt-FU for ged-emacs-devel@m.gmane.org; Tue, 07 Dec 2010 10:39:17 -0500 Original-Received: from [140.186.70.92] (port=35519 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPzdE-0008QN-8s for emacs-devel@gnu.org; Tue, 07 Dec 2010 10:39:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPzdC-0005VL-BY for emacs-devel@gnu.org; Tue, 07 Dec 2010 10:39:08 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:50024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPzdC-0005Ut-3O for emacs-devel@gnu.org; Tue, 07 Dec 2010 10:39:06 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oB7Fd0HZ003021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 7 Dec 2010 15:39:02 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oB77BtYP016817; Tue, 7 Dec 2010 15:38:56 GMT Original-Received: from abhmt014.oracle.com by acsmt354.oracle.com with ESMTP id 852193521291736332; Tue, 07 Dec 2010 07:38:52 -0800 Original-Received: from dradamslap1 (/10.159.219.164) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 07 Dec 2010 07:38:51 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4CFDEDD2.6060402@gmx.at> Thread-Index: AcuV51xgWivLtA87RKuXYQ2shIy74wAOygoA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 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:133497 Archived-At: >> Open a second frame, show *scratch*, go to the first frame, show >> some file, type M-: (select-window (get-buffer-window "*scratch*" t)) >> type some more chars. >> >> For me, chars go to file (GTK and MS-Windows). > > A clear bug IMHO. The command loop must switch focus here. A clear bug? Why? It all depends what the intention (design) of `M-:' is. It sounds like you are trying to redesign it. Yes, Lisp evaluation can have side effects, but AFAIK this behavior for `M-:' was intentional. `M-:' was meant to evaluate a sexp in a one-off operation, but keep the input focus etc. where it was. I think it has behaved this way since Day One, and the behavior makes sense, to me at least. IMO this has nothing to do with your surrounding window discussion; this part is only about the interactive behavior of command `eval-expression'. (But I admit that I don't even use `eval-expression' for `M-:' - I use `pp-eval-expression' instead (or something similar) for `M-:'.)