From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.devel Subject: Re: bug #18283 / change "Enable applescript in NextStep" Date: Wed, 25 Nov 2015 06:44:33 +0100 Message-ID: References: <7BDEFBAF-EB72-4B56-B807-AC93143340E3@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114405c6f4a633052556f30e X-Trace: ger.gmane.org 1448430294 26167 80.91.229.3 (25 Nov 2015 05:44:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 05:44:54 +0000 (UTC) Cc: Keith David Bershatsky , emacs-devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 25 06:44:52 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a1Ssr-0002Cr-GS for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 06:44:49 +0100 Original-Received: from localhost ([::1]:43102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Sss-0003Qr-ND for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 00:44:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Ssd-0003Po-N1 for emacs-devel@gnu.org; Wed, 25 Nov 2015 00:44:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1Ssc-0000kf-MV for emacs-devel@gnu.org; Wed, 25 Nov 2015 00:44:35 -0500 Original-Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:36298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Ssc-0000kW-HK for emacs-devel@gnu.org; Wed, 25 Nov 2015 00:44:34 -0500 Original-Received: by vkay187 with SMTP id y187so27896545vka.3 for ; Tue, 24 Nov 2015 21:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=O4oiUedKBal4pYPUum8NP05kjGUDKh6vDsE4+3X4ixw=; b=YUaSo+bXYeqAFLznWLXvdErnoJ+i6gTiHM6/R/dL5eeEDtFw3v7hx9Uh1Oroa1Kupq KO1gkq2Gjkh4bkef7OS1oLurzCU7HSz+s8VsxefXfGB1yuPxouKk6mOTVqnE4OyoFMH2 2RK/5zuU4O63Dj3Lw9IuuLslmVSmAIW865XmCXQGiKZtwu2/6YRnV83Oe+2ki/4rGl/h ITNnulw1Te/AGnj42IVWTfBrjUOB7a27QeLgGIfcyNPw9Vb9DXpA3QOP3EDkRugxPDRT cVANz3VGALhfK6XNZ3vkEA2A+5pgwjhEU1gw5gAxrtA4pzc+kebIkB2sPpTuPPBmgMGI Ml7A== X-Received: by 10.31.58.74 with SMTP id h71mr31302767vka.149.1448430273863; Tue, 24 Nov 2015 21:44:33 -0800 (PST) Original-Received: by 10.31.210.133 with HTTP; Tue, 24 Nov 2015 21:44:33 -0800 (PST) In-Reply-To: <7BDEFBAF-EB72-4B56-B807-AC93143340E3@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c05::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195203 Archived-At: --001a114405c6f4a633052556f30e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, This change allows applescripts like the following to work: tell application "Emacs" set the bounds of the first window to {100, 100, 500, 500} end tell Without the change, the following error message is issued: test.oas:23:89: execution error: Emacs got an error: Can=E2=80=99t set = bounds of window 1 to {100, 100, 500, 500}. (-10006) However, after the change, Emacs repositions and resizes its frame nicely. So, the reporter of bug #18283 literally requested this change, but I > think that may have just been a somewhat silly way to say: =E2=80=9CCan = you please > support AppleScript?=E2=80=9D > > But perhaps I=E2=80=99m misunderstanding all of this and there=E2=80=99s = a grand master > plan. > The original poster asked for this change in order to write automatic tests for the NextStep user interface. Concretely, it was used to verify that the recent problems with tool-bar-mode setting the wrong frame size was solved. I am absolutely sure that he did not implicitly expected a full AppleScript interface to be implemented. -- Anders Lindgren --001a114405c6f4a633052556f30e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

This change allows applescripts lik= e the following to work:

=C2=A0 =C2=A0 tell a= pplication "Emacs"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0se= t the bounds of the first window to {100, 100, 500, 500}
=C2=A0 = =C2=A0 end tell

Without the change, the foll= owing error message is issued:

=C2=A0 =C2=A0 test.= oas:23:89: execution error: Emacs got an error: Can=E2=80=99t set bounds of= window 1 to {100, 100, 500, 500}. (-10006)

Ho= wever, after the change, Emacs repositions and resizes its frame nicely.


So,=C2=A0 the reporter of bug #1= 8283 literally requested this change, but I think that may have just been a= somewhat silly way to say:=C2=A0 =E2=80=9CCan you please support AppleScri= pt?=E2=80=9D

But perhaps I=E2=80=99m misunderstanding all of this and there=E2=80=99s a = grand master plan.

The original poster = asked for this change in order to write automatic tests for the NextStep us= er interface. Concretely, it was used to verify that the recent problems wi= th tool-bar-mode setting the wrong frame size was solved. I am absolutely s= ure that he did not implicitly expected a full AppleScript interface to be = implemented.

=C2=A0 =C2=A0 -- Anders Lindgren

--001a114405c6f4a633052556f30e--