From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: emacsclientw Date: Mon, 13 Nov 2006 17:19:07 +0100 Message-ID: <45589AFB.2040103@student.lu.se> References: <4557B756.2020701@gnu.org> <455859DA.5010402@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030601060602080608030907" X-Trace: sea.gmane.org 1163434782 6827 80.91.229.2 (13 Nov 2006 16:19:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2006 16:19:42 +0000 (UTC) Cc: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 13 17:19:40 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GjeX4-0004MG-LH for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2006 17:19:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjeX3-0004BZ-UZ for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2006 11:19:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GjeWh-00045e-7Q for emacs-devel@gnu.org; Mon, 13 Nov 2006 11:19:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GjeWf-00045I-Ro for emacs-devel@gnu.org; Mon, 13 Nov 2006 11:19:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjeWd-00044v-Ba; Mon, 13 Nov 2006 11:19:11 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GjeWc-0001tp-NO; Mon, 13 Nov 2006 11:19:11 -0500 Original-Received: from [83.254.145.24] (port=63679 helo=[192.168.123.121]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GjeWZ-0004tf-99; Mon, 13 Nov 2006 17:19:08 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: "emacs-pretest-bug@gnu.org" , emacs-devel@gnu.org In-Reply-To: X-Scan-Result: No virus found in message 1GjeWZ-0004tf-99. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1GjeWZ-0004tf-99 b7bd5eb206bffca93eae3e9cfbefbe0a 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:62224 gmane.emacs.pretest.bugs:15064 Archived-At: This is a multi-part message in MIME format. --------------030601060602080608030907 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Juanma Barranquero wrote: > On 11/13/06, Jason Rumney wrote: > >> Have you tested the emacsclientw.exe build with MSVC? > > No, I have not set up a build enviroment for MSVC. Did you try it? > > BTW, Lennart's got a bunch of changes to emacsclient that would allow > emacsclient's error messages to go to GUI message boxes when run as > emacsclientw.exe. I'm testing it right now. I have attached this patch. Neither Juanma nor I can test it on for example GNU/Linux. Can someone please do that? (It should in effect change nothing at all except on w32.) --------------030601060602080608030907 Content-Type: text/plain; name="emacsclient-messagebox.diff" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="emacsclient-messagebox.diff" SW5kZXg6IGVtYWNzY2xpZW50LmMNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09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ZXJyLCAiJXM6IGNvbm5lY3RlZCB0byByZW1vdGUgc29ja2V0 IGF0ICVzXG4iLA0KKyAgICBlcnJvcm1zZzIgKCIlczogY29ubmVjdGVkIHRvIHJlbW90ZSBz b2NrZXQgYXQgJXNcbiIsDQogICAgICAgICAgICAgIHByb2duYW1lLCBpbmV0X250b2EgKHNl cnZlci5zaW5fYWRkcikpOw0KIA0KICAgLyoNCkBAIC01NDMsOCArNjQ2LDggQEANCiAgICAq Lw0KICAgaWYgKChzID0gc29ja2V0IChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19U Q1ApKSA8IDApDQogICAgIHsNCi0gICAgICBmcHJpbnRmIChzdGRlcnIsICIlczogIiwgcHJv Z25hbWUpOw0KLSAgICAgIHBlcnJvciAoInNvY2tldCIpOw0KKyAgICAgIGVycm9ybXNnMiAo IiVzOiBzb2NrZXQ6ICVzXG4iLCBwcm9nbmFtZSwgc3RyZXJyb3IoZXJybm8pKTsNCisgICAg ICAvL3BlcnJvciAoInNvY2tldCIpOw0KICAgICAgIHJldHVybiBJTlZBTElEX1NPQ0tFVDsN CiAgICAgfQ0KIA0KQEAgLTU1Myw4ICs2NTYsOCBAQA0KICAgICovDQogICBpZiAoY29ubmVj dCAocywgKHN0cnVjdCBzb2NrYWRkciAqKSAmc2VydmVyLCBzaXplb2Ygc2VydmVyKSA8IDAp DQogICAgIHsNCi0gICAgICBmcHJpbnRmIChzdGRlcnIsICIlczogIiwgcHJvZ25hbWUpOw0K LSAgICAgIHBlcnJvciAoImNvbm5lY3QiKTsNCisgICAgICBlcnJvcm1zZzIgKCIlczogY29u bmVjdDogJXNcbiIsIHByb2duYW1lLCBzdHJlcnJvcihlcnJubykpOw0KKyAgICAgIC8vcGVy cm9yICgiY29ubmVjdCIpOw0KICAgICAgIHJldHVybiBJTlZBTElEX1NPQ0tFVDsNCiAgICAg fQ0KIA0KQEAgLTYwNiw4ICs3MDksOCBAQA0KIA0KICAgaWYgKChzID0gc29ja2V0I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udCByZXF1 aXJlZFxuVHJ5IGAlcyAtLWhlbHAnIGZvciBtb3JlIGluZm9ybWF0aW9uXG4iLA0KKyAgICAg ICAgICAgICAgcHJvZ25hbWUsIHByb2duYW1lKTsNCiAgICAgICBleGl0IChFWElUX0ZBSUxV UkUpOw0KICAgICB9DQogDQpAQCAtODE3LDEwICs5MjQsMTAgQEANCiAgICAgew0KICAgICAg IC8qIGdldHdkIHB1dHMgbWVzc2FnZSBpbiBTVFJJTkcgaWYgaXQgZmFpbHMuICAqLw0KICNp ZmRlZiBIQVZFX0dFVENXRA0KLSAgICAgIGZwcmludGYgKHN0ZGVyciwgIiVzOiAlcyAoJXMp XG4iLCBwcm9nbmFtZSwNCisgICAgICBlcnJvcm1zZzMgKCIlczogJXMgKCVzKVxuIiwgcHJv Z25hbWUsDQogCSAgICAgICAiQ2Fubm90IGdldCBjdXJyZW50IHdvcmtpbmcgZGlyZWN0b3J5 Iiwgc3RyZXJyb3IgKGVycm5vKSk7DQogI2Vsc2UNCi0gICAgICBmcHJpbnRmIChzdGRlcnIs ICIlczogJXMgKCVzKVxuIiwgcHJvZ25hbWUsIHN0cmluZywgc3RyZXJyb3IgKGVycm5vKSk7 DQorICAgICAgZXJyb3Jtc2czICgiJXM6ICVzICglcylcbiIsIHByb2duYW1lLCBzdHJpbmcs IHN0cmVycm9yIChlcnJubykpOw0KICNlbmRpZg0KICAgICAgIGZhaWwgKGFyZ2MsIGFyZ3Yp Ow0KICAgICB9DQo= --------------030601060602080608030907 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------030601060602080608030907--