From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "find lulu" Newsgroups: gmane.emacs.bugs Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Date: Sun, 7 Sep 2008 18:01:21 -0400 Message-ID: <6bb3db200809071501g4464b661ycd649814a9609e83@mail.gmail.com> References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> Reply-To: find lulu , 890@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_80604_30444366.1220824881201" X-Trace: ger.gmane.org 1220826469 10183 80.91.229.12 (7 Sep 2008 22:27:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 22:27:49 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Stefan Monnier" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 00:28:44 2008 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.50) id 1KcSkO-0003eA-B4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 00:28:44 +0200 Original-Received: from localhost ([127.0.0.1]:45301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcSjO-00084M-4U for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Sep 2008 18:27:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcSjJ-00084D-Tx for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 18:27:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcSjI-00083d-Cp for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 18:27:37 -0400 Original-Received: from [199.232.76.173] (port=36560 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcSjI-00083a-6T for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 18:27:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48888) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcSjH-0007Kv-OP for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 18:27:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m87MRWuR007223; Sun, 7 Sep 2008 15:27:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m87MA5hE000882; Sun, 7 Sep 2008 15:10:05 -0700 X-Loop: don@donarmstrong.com Resent-From: "find lulu" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 07 Sep 2008 22:10:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122082489030394 (code B ref -1); Sun, 07 Sep 2008 22:10:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2008 22:01:30 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m87M1Qoq030388 for ; Sun, 7 Sep 2008 15:01:27 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcSJy-0002Bi-8i for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 18:01:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcSJu-0002BD-Io for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 18:01:25 -0400 Original-Received: from [199.232.76.173] (port=50143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcSJu-0002B9-BJ for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 18:01:22 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.230]:41929) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcSJt-000554-OZ for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 18:01:21 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s15so51346wxc.24 for ; Sun, 07 Sep 2008 15:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=xd2WEKKeJTRgtJjxNjvyRyAneM1437VBg1bg0mkr24I=; b=w9GJNPegP0G27ipWauNuK6SFRQeMow6z0juymOQ7PHGcoZfQI4nseSm3GI+bpESDTz ULTnEb97JeNgUYZkjjAWWMkCNeVbpmWDykhWQuc9axTfF8WsRN84B6EgHtBRx2EraXha 2dT0ChTi8Z25SDPLZZ11/xZ3uquNaQ2olAv6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=DOVhFCWlpHyNYGpYIP8FXL7gicu4AlGHfk+L9UMfgVUmoTt8D9zUKsLbOfEtmEGR5q wsQ1ED1spNzc6Hi4bSLZOerLqjlp1f3f6uFVW1SFxAVfj/6XObKWZ+TdeekRkxd170WZ jZU4PWwKMXuOzptWS7gKl9PwJHsmmWAgrLeJk= Original-Received: by 10.70.42.16 with SMTP id p16mr18064283wxp.78.1220824881181; Sun, 07 Sep 2008 15:01:21 -0700 (PDT) Original-Received: by 10.70.38.2 with HTTP; Sun, 7 Sep 2008 15:01:21 -0700 (PDT) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 07 Sep 2008 18:27:37 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:20329 Archived-At: ------=_Part_80604_30444366.1220824881201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have installed the newly announced EmacsW32, version 22.3 and attempted to start Emacs with the following command at the Cygwin `bash' prompt: $ mv ~/.emacs ~/keep.emacs # preserve init. file while testing $ emacsclient --version emacsclient 22.3 $ emacsclient --alternate-editor=emacs ~/.bashrc emacsclient.exe: connect: No connection could be made because the target machine actively refused it. However, despite the error message, Emacs starts as expected. Within Emacs, I ran the command M-x server-start to start the Emacs server. A subsequent `emacsclient' command works as expected: $ emacsclient --alternate-editor=emacs ~/keep.emacs Waiting for Emacs... If the changes I suggested earlier for Emacs 22's `lisp/server.el' are made, then the error message is not displayed after the initial invocation of `emacsclient'. The reason the error message is displayed is the same, namely, that when Emacs is shutting down and calls `(server-start -1)', the code in `server-start' does not remove the server file ~/.emacs.d/server/server. On Sat, Sep 6, 2008 at 3:41 PM, Stefan Monnier wrote: > >>> * I am attempting to use the shell script `emacs.bash' that is > provided* > >> Could you explain why you don't ust use emacsclient directly (together > >> with its -a argument)? > > Your question prompts the question "Why does `etc/emacs.bash' exist at > all?" > > Indeed, it's part of the question ;-) > IIUC emacs.bash was written before emacsclient got its -a argument and > it should either be removed or changed to use emacsclient's -a argument. > > But for that, we need someone (e.g. you) to test the replacement. > > > Stefan > ------=_Part_80604_30444366.1220824881201 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I have installed the newly announced EmacsW32, version 22.3 and attempted to start Emacs with the following command at the Cygwin `bash' prompt:

$ mv ~/.emacs ~/keep.emacs  # preserve init. file while testing

$ emacsclient --version
emacsclient 22.3

$ emacsclient --alternate-editor=emacs ~/.bashrc
emacsclient.exe: connect: No connection could be made because the target machine actively refused it.

However, despite the error message, Emacs starts as expected.  Within Emacs, I ran the command M-x server-start
to start the Emacs server.  A subsequent `emacsclient' command works as expected:

$ emacsclient --alternate-editor=emacs ~/keep.emacs
Waiting for Emacs...

If the changes I suggested earlier for Emacs 22's `lisp/server.el' are made, then the error message is not displayed after the initial invocation of `emacsclient'.  The reason the error message is displayed is the same, namely, that when Emacs is shutting down and calls `(server-start -1)', the code in `server-start' does not remove the server file ~/.emacs.d/server/server.


On Sat, Sep 6, 2008 at 3:41 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>>> * I am attempting to use the shell script `emacs.bash' that is provided*
>> Could you explain why you don't ust use emacsclient directly (together
>> with its -a argument)?
> Your question prompts the question "Why does `etc/emacs.bash' exist at all?"

Indeed, it's part of the question ;-)
IIUC emacs.bash was written before emacsclient got its -a argument and
it should either be removed or changed to use emacsclient's -a argument.

But for that, we need someone (e.g. you) to test the replacement.


       Stefan

------=_Part_80604_30444366.1220824881201--