From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: Anonymous Sender , 890@debbugs.gnu.org Resent-From: Anonymous Sender Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 20:05:07 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12205581151304 (code B ref -1); Thu, 04 Sep 2008 20:05:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Sep 2008 19:55:15 +0000 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 m84JtBwB001122 for ; Thu, 4 Sep 2008 12:55:12 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbKv8-0003SG-Se for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:55:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbKv8-0003S4-BY for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:55:10 -0400 Received: from [199.232.76.173] (port=35721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbKv8-0003S1-59 for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:55:10 -0400 Received: from remailer.metacolo.com ([193.111.87.9]:52598) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbKv7-0007Gm-Il for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:55:09 -0400 Received: by remailer.metacolo.com (Postfix, from userid 1003) id 36FFEFD06D; Thu, 4 Sep 2008 19:55:05 +0000 (UTC) From: Anonymous Sender Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at . To: bug-gnu-emacs@gnu.org Message-ID: <7a35a674aab1ec84bd2f5f9108195042@remailer.metacolo.com> Date: Thu, 4 Sep 2008 19:55:05 +0000 (UTC) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' I am attempting to use the shell script `emacs.bash' that is provided in the `etc' directory of the GNU Emacs distribution. This script defines the shell function named 'edit' to provide a single, consistent command for starting Emacs and subsequently, for calling Emacs via `emacsclient', if `server-start' has been invoked via either the initialization file or M-x server-start. After sourcing the script, the command 'edit [filename]' starts Emacs as expected. However, subsequent calls to `edit' do not result in `emacsclient' being invoked. Instead, new instances of `emacs' are started. The reason for this is that the script contains the following test, which fails for EmacsW32: if [ -e "${HOME}/.emacs_server" -o -e "/tmp/emacs${UID}/server" ]; then Neither of these files is created by EmacsW32. Instead, the file ${HOME}/.emacs.d/server/server is created, by default, when `server-start' is invoked from EmacsW32. I would like to suggest that `etc/emacs.bash' be changed to include that server file in its test for starting `emacsclient', that is, change the test, above, to: if [ -e "${HOME}/.emacs.d/server/server" -o -e "${HOME}/.emacs_server" -o -e "/tmp/emacs${UID}/server" ]; then With this change, the shell function `edit' then appropriately calls `emacsclient' after Emacs has started its server. A second problem occurs after Emacs has been stopped ("killed"). The next time `edit' is called, the code in `etc/emacs.bash' calls `emacsclient' even though Emacs and its server are not running. The reason for this appears to be that the function `server-start' in `lisp/server.el' does not remove ${HOME}/.emacs.d/server/server when it is called when Emacs is killed via C-x C-c (that is, `save-buffers-kill-emacs'). Here is the sequence of calls: - When `(server-start)' is invoked, the following code in `lisp/server.el' adds an anonymous function to `kill-emacs-hook': (add-hook 'kill-emacs-hook (lambda () (server-mode -1))) ;Cleanup upon exit. - When emacs is exited via C-x C-c, the function `save-buffers-kill-emacs' is called. - The function `save-buffers-kill-emacs' calls the function `kill-emacs', which, in turn, calls the list of functions in `kill-emacs-hook'. - `server-mode' includes the form: (server-start (not server-mode)) - When the function `server-start' is called with its optional parameter `leave-dead' set to nil, the code in the following the condition in the form: (unless leave-dead ...) is not executed. This includes the code to remove the server file that was created when `server-start' was originally called, namely, (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) (server-file (expand-file-name server-name server-dir))) ;; Make sure there is a safe directory in which to place the socket. (server-ensure-safe-dir server-dir) ;; Remove any leftover socket or authentication file (ignore-errors (delete-file server-file)) ...)) ; `let' and `unless' A possible solution to this problem is to move the `(unless leave-dead)' form inside the `(let* ...)' form after the form: (ignore-errors (delete-file server-file)) I have made this change in my copy of `lisp/server.el' and confirmed that `edit' works correctly for EmacsW32, that is, it starts `emacs' if there is no instance of `emacs' running, and starts `emacsclient' if emacs's server is running. ; End of report From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: Stefan Monnier , 890@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Sep 2008 04:00: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: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12205869295786 (code B ref -1); Fri, 05 Sep 2008 04:00:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Sep 2008 03:55:29 +0000 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 m853tQvN005760 for ; Thu, 4 Sep 2008 20:55:27 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbSPt-0000ua-S5 for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 23:55:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbSPs-0000uG-6D for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 23:55:25 -0400 Received: from [199.232.76.173] (port=45527 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbSPs-0000uD-2r for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 23:55:24 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:11385) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbSPs-0002h3-44 for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 23:55:24 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhoFAHRKwEhFxJRU/2dsb2JhbACBZbVIgWWBBg X-IronPort-AV: E=Sophos;i="4.32,320,1217822400"; d="scan'208";a="26376647" Received: from 69-196-148-84.dsl.teksavvy.com (HELO ceviche.home) ([69.196.148.84]) by ironport2-out.teksavvy.com with ESMTP; 04 Sep 2008 23:55:23 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 01945B405D; Thu, 4 Sep 2008 23:55:22 -0400 (EDT) From: Stefan Monnier To: Anonymous Sender Cc: 890@debbugs.gnu.org, bug-gnu-emacs@gnu.org Message-ID: References: <7a35a674aab1ec84bd2f5f9108195042@remailer.metacolo.com> Date: Thu, 04 Sep 2008 23:55:22 -0400 In-Reply-To: <7a35a674aab1ec84bd2f5f9108195042@remailer.metacolo.com> (Anonymous Sender's message of "Thu, 4 Sep 2008 19:55:05 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 > 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)? Stefan From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: "find lulu" , 890@debbugs.gnu.org Resent-From: "find lulu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Sep 2008 15:50:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122062920721992 (code B ref -1); Fri, 05 Sep 2008 15:50:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.5 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER, HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Sep 2008 15:40:07 +0000 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 m85FdxOn021744 for ; Fri, 5 Sep 2008 08:40:01 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbdPj-0004ZT-2c for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 11:39:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbdPi-0004Z9-Cu for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 11:39:58 -0400 Received: from [199.232.76.173] (port=50870 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbdPi-0004Z2-8D for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 11:39:58 -0400 Received: from ag-out-0708.google.com ([72.14.246.250]:50633) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbdPh-0008Pz-8s for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 11:39:58 -0400 Received: by ag-out-0708.google.com with SMTP id 31so1060417agc.10 for ; Fri, 05 Sep 2008 08:39:53 -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:mime-version:content-type; bh=a2VwOLmIw8f4UZDUkntD/73Sxvx7qMmnAHFu1oRPBiA=; b=qQseH8yaSRkQHVkOn1Did4sPdzScU6nbpPjB/KtBRLcsUNR02xyP/Xc9CPmhm5xHzv 1tu+Wszk4dRBxG7w3pAOTMZqIYFU2rWu8r8nSK4GiiTeS+wZ0hHoPyuZpmzi89JMJ9/G BpY549Oz7ViQDpo7nq+pP3kWcmxVj36ZVmzaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=jDa2L7eQdZ+1rKqi9xqhuJEBJXxjZlr3VJZCnvAMqpREPaAvMhCTRTamE6vOtjcEFn 1bUFmvQpovX/fjvQzMkQDO0FM+m1iMVgvGrOfDKhseP4hgBRBYFO7c8lpHzd6xKVe0aH dXex3m6tsFe5lUOerkCNNIOrDGy0iko9qZBHo= Received: by 10.100.197.7 with SMTP id u7mr12785239anf.27.1220629193065; Fri, 05 Sep 2008 08:39:53 -0700 (PDT) Received: by 10.70.20.7 with HTTP; Fri, 5 Sep 2008 08:39:52 -0700 (PDT) Message-ID: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> Date: Fri, 5 Sep 2008 11:39:52 -0400 From: "find lulu" To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33896_1723022.1220629192776" X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) ------=_Part_33896_1723022.1220629192776 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline >>* 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?" The reason for `emacs.bash' to exist is to provide a single, consistent command for editing a file from the bash shell prompt, namely, 'edit'. It is certainly possible to use alternatives to avoid the problems described, but if `etc/emacs.bash' is to be included in the Emacs distribution then it should work for that distribution. In brief, here are the two problems restated (for EmacsW32): 1. `etc/emacs.bash' does not check for the file `~/.emacs.d/server/server' that is created when `server-start' is invoked from EmacsW32. As a result, `emacsclient' is not invoked by the shell function `edit' that is created when `etc/emacs.bash' is sourced. 2. When `server-start' (in `lisp/server.el') is invoked during the Emacs shutdown process, it does not remove the file `~/.emacs.d/server/server' that it created when it was initially invoked. Consequently, additional calls to the shell function 'edit' do not work properly -- namely, `edit' should invoke `emacs' instead of `emacsclient' when there is no instance of the emacs's server running. These problems should be fixed so that `edit' works for EmacsW32 as it does for Emacs on other platforms. Some possible fixes were suggested in the original problem report. ------=_Part_33896_1723022.1220629192776 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
>> 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?"

The reason for `emacs.bash' to exist is to provide a single, consistent
command for editing a file from the bash shell prompt, namely, 'edit'.

It is certainly possible to use alternatives to avoid the problems described,
but if `etc/emacs.bash' is to be included in the Emacs distribution then it
should work for that distribution.

In brief, here are the two problems restated (for EmacsW32):

1. `etc/emacs.bash' does not check for the file `~/.emacs.d/server/server'
that is created when `server-start' is invoked from EmacsW32. As a result,
`emacsclient' is not invoked by the shell function `edit' that is created
when `etc/emacs.bash' is sourced.

2. When `server-start' (in `lisp/server.el') is invoked during the Emacs
shutdown process, it does not remove the file `~/.emacs.d/server/server'
that it created when it was initially invoked. Consequently, additional
calls to the shell function 'edit' do not work properly -- namely, `edit'
should invoke `emacs' instead of `emacsclient' when there is no instance
of the emacs's server running.

These problems should be fixed so that `edit' works for EmacsW32 as it does
for Emacs on other platforms. Some possible fixes were suggested in the
original problem report.

------=_Part_33896_1723022.1220629192776-- From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: "Lennart Borgman (gmail)" , 890@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Sep 2008 13:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 890-submit@emacsbugs.donarmstrong.com id=B890.12207056189069 (code B ref 890); Sat, 06 Sep 2008 13:00:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 890) by emacsbugs.donarmstrong.com; 6 Sep 2008 12:53:38 +0000 Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m86CrY7r009063 for <890@emacsbugs.donarmstrong.com>; Sat, 6 Sep 2008 05:53:35 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:62039 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KbxID-0001Yk-42; Sat, 06 Sep 2008 14:53:33 +0200 Message-ID: <48C27D46.6010407@gmail.com> Date: Sat, 06 Sep 2008 14:53:26 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: find lulu , 890@debbugs.gnu.org References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> In-Reply-To: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080905-0, 2008-09-05), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KbxID-0001Yk-42. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KbxID-0001Yk-42 42016e3db8e1c719316a4dc349c832cc find lulu 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?" > > The reason for `emacs.bash' to exist is to provide a single, consistent > command for editing a file from the bash shell prompt, namely, 'edit'. > > > It is certainly possible to use alternatives to avoid the problems described, > but if `etc/emacs.bash' is to be included in the Emacs distribution then it > should work for that distribution. > > In brief, here are the two problems restated (for EmacsW32): > > > 1. `etc/emacs.bash' does not check for the file `~/.emacs.d/server/server' > that is created when `server-start' is invoked from EmacsW32. As a result, > `emacsclient' is not invoked by the shell function `edit' that is created > > when `etc/emacs.bash' is sourced. > > 2. When `server-start' (in `lisp/server.el') is invoked during the Emacs > shutdown process, it does not remove the file `~/.emacs.d/server/server' > that it created when it was initially invoked. Consequently, additional > > calls to the shell function 'edit' do not work properly -- namely, `edit' > should invoke `emacs' instead of `emacsclient' when there is no instance > of the emacs's server running. > > > These problems should be fixed so that `edit' works for EmacsW32 as it does > for Emacs on other platforms. Some possible fixes were suggested in the > original problem report. Is there anything here that is specific to Emacs+EmacsW32? From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: Stefan Monnier , 890@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Sep 2008 19:50:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122073008321956 (code B ref -1); Sat, 06 Sep 2008 19:50:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Sep 2008 19:41:23 +0000 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 m86JfHPO021940 for ; Sat, 6 Sep 2008 12:41:21 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kc3en-00017Q-9L for bug-gnu-emacs@gnu.org; Sat, 06 Sep 2008 15:41:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kc3el-00015L-Ir for bug-gnu-emacs@gnu.org; Sat, 06 Sep 2008 15:41:16 -0400 Received: from [199.232.76.173] (port=40682 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kc3el-000154-DF for bug-gnu-emacs@gnu.org; Sat, 06 Sep 2008 15:41:15 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:5954 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kc3el-0006HI-2U for bug-gnu-emacs@gnu.org; Sat, 06 Sep 2008 15:41:15 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAEF5wkhFxJRU/2dsb2JhbACBZbEDgWaBBw X-IronPort-AV: E=Sophos;i="4.32,346,1217822400"; d="scan'208";a="26458366" Received: from 69-196-148-84.dsl.teksavvy.com (HELO ceviche.home) ([69.196.148.84]) by ironport2-out.teksavvy.com with ESMTP; 06 Sep 2008 15:41:13 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 717EAB405D; Sat, 6 Sep 2008 15:41:13 -0400 (EDT) From: Stefan Monnier To: find lulu Cc: 890@debbugs.gnu.org, bug-gnu-emacs@gnu.org Message-ID: References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> Date: Sat, 06 Sep 2008 15:41:13 -0400 In-Reply-To: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> (find lulu's message of "Fri, 5 Sep 2008 11:39:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 >>> * 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 From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: "Lennart Borgman (gmail)" , 890@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Sep 2008 20:20: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: Received: via spool by 890-submit@emacsbugs.donarmstrong.com id=B890.1220731920459 (code B ref 890); Sat, 06 Sep 2008 20:20:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 890) by emacsbugs.donarmstrong.com; 6 Sep 2008 20:12:00 +0000 Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m86KBunO000453 for <890@emacsbugs.donarmstrong.com>; Sat, 6 Sep 2008 13:11:58 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:60693 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Kc48R-0006EY-5S; Sat, 06 Sep 2008 22:11:55 +0200 Message-ID: <48C2E408.6090606@gmail.com> Date: Sat, 06 Sep 2008 22:11:52 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Stefan Monnier , 890@debbugs.gnu.org CC: find lulu References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080906-0, 2008-09-06), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Kc48R-0006EY-5S. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Kc48R-0006EY-5S 5ca81ace6c98bd15a68160012fc0725f 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. Or, in the a bit longer perspective perhaps, emacsclient should be enhanced to start Emacs itself when needed. (As you know there is code for this available.) From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: "Juanma Barranquero" , 890@debbugs.gnu.org Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Sep 2008 20:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 890-submit@emacsbugs.donarmstrong.com id=B890.12207332267476 (code B ref 890); Sat, 06 Sep 2008 20:40:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.1 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 890) by emacsbugs.donarmstrong.com; 6 Sep 2008 20:33:46 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m86KXhkx007468 for <890@emacsbugs.donarmstrong.com>; Sat, 6 Sep 2008 13:33:44 -0700 Received: by an-out-0708.google.com with SMTP id b20so181193ana.9 for <890@emacsbugs.donarmstrong.com>; Sat, 06 Sep 2008 13:33:42 -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 :content-transfer-encoding:content-disposition:references; bh=q6orhn0U4jYJB3EK80Xe4OvHwvd1vMw1cUb7d66EVsU=; b=jW4RPaUAxqFf2Rr2HLSt3KGkWfcA5LzS+8dz/96ZujHuBDiiDIXG00vcPza5Kuuxnp pBZ7b3eCcR86z8lpTu6qtwCOEgl1gdKqEivYBGsghlwCWuQCaOyr0YfHAosD5FpSJz3C QpBEbDiKKvXF/znCZWUur4jWABejZjQ/e2yFM= 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:content-transfer-encoding:content-disposition :references; b=Ck2rLJxr4UCPP4jqgJy0SCpcVU6WHYE9tAn/t3iymIXdiXZN+zUqNSD0nFTsbEVqg9 3tqRbdfdNEWNruCpdUjM/sRmUJOVRnEW+FMlK8QwjBNimFFYKPfJ+Fv6YrSCu5xiPMAr PdIZPF1wLLF2QeClimOneXMh7UbLQ2fiTMEZ8= Received: by 10.100.232.13 with SMTP id e13mr13983190anh.140.1220733222735; Sat, 06 Sep 2008 13:33:42 -0700 (PDT) Received: by 10.100.194.19 with HTTP; Sat, 6 Sep 2008 13:33:42 -0700 (PDT) Message-ID: Date: Sat, 6 Sep 2008 22:33:42 +0200 From: "Juanma Barranquero" To: "Lennart Borgman (gmail)" , 890@debbugs.gnu.org Cc: "Stefan Monnier" , "find lulu" In-Reply-To: <48C2E408.6090606@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> <48C2E408.6090606@gmail.com> On Sat, Sep 6, 2008 at 22:11, Lennart Borgman (gmail) wrote: > Or, in the a bit longer perspective perhaps, emacsclient should be > enhanced to start Emacs itself when needed. (As you know there is code > for this available.) No, Lennart, as we've discussed a few times, there is no "code for this available". There is a very different emacsclient (yours) with that capability. If you were to take the time to send a patch against the trunk, we'd be glad to review it. Juanma From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: martin rudalics , 890@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Sep 2008 21:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 890-submit@emacsbugs.donarmstrong.com id=B890.122073617825005 (code B ref 890); Sat, 06 Sep 2008 21:30:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 890) by emacsbugs.donarmstrong.com; 6 Sep 2008 21:22:58 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m86LMrpn024999 for <890@emacsbugs.donarmstrong.com>; Sat, 6 Sep 2008 14:22:55 -0700 Received: (qmail invoked by alias); 06 Sep 2008 21:22:47 -0000 Received: from 62-47-54-15.adsl.highway.telekom.at (EHLO [62.47.54.15]) [62.47.54.15] by mail.gmx.net (mp016) with SMTP; 06 Sep 2008 23:22:47 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18Qsnob8sUQOm+llKJN4Ff4vU1wQuNuYWctouPGGM FADhoL3Wp4iMmI Message-ID: <48C2F41B.1080106@gmx.at> Date: Sat, 06 Sep 2008 23:20:27 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Stefan Monnier , 890@debbugs.gnu.org CC: find lulu References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.83 > But for that, we need someone (e.g. you) to test the replacement. Since the original report is IMHO the most accurately written one to ever appear on this list, we should maybe ask its author to provide patches for the replacements he suggested ;-) martin From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: "Lennart Borgman (gmail)" , 890@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Sep 2008 21:55: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: Received: via spool by 890-submit@emacsbugs.donarmstrong.com id=B890.1220737631999 (code B ref 890); Sat, 06 Sep 2008 21:55:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 890) by emacsbugs.donarmstrong.com; 6 Sep 2008 21:47:11 +0000 Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m86Ll60q000993 for <890@emacsbugs.donarmstrong.com>; Sat, 6 Sep 2008 14:47:08 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:60889 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Kc5cY-0001gS-6i; Sat, 06 Sep 2008 23:47:06 +0200 Message-ID: <48C2FA4A.9010200@gmail.com> Date: Sat, 06 Sep 2008 23:46:50 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Juanma Barranquero CC: 890@debbugs.gnu.org, Stefan Monnier , find lulu References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> <48C2E408.6090606@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080906-0, 2008-09-06), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1Kc5cY-0001gS-6i. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Kc5cY-0001gS-6i 1f6e57d35968ca20a5572a27c12cc3e7 Juanma Barranquero wrote: > On Sat, Sep 6, 2008 at 22:11, Lennart Borgman (gmail) > wrote: > >> Or, in the a bit longer perspective perhaps, emacsclient should be >> enhanced to start Emacs itself when needed. (As you know there is code >> for this available.) > > No, Lennart, as we've discussed a few times, there is no "code for > this available". There is a very different emacsclient (yours) with > that capability. If you were to take the time to send a patch against > the trunk, we'd be glad to review it. Ok, 1-1 in excaggerations ;-) The problem is not the code, the problem is the merging. I have rearranged the code quite a bit to make it fit for starting Emacs when it is not already running. That makes it hard to see what is happening when we try to merge - and that is why you and I gave up last time. I suppose it might be my fault because I did not very clearly say what is needed. Here is how I think it can be done: - Before actually merging the code try to merge the primitives (ie the function) used for giving messages and error handling. That will make it much easier to merge later because it will be much less output from the diff command. After this test that everything is working. - Rearrange a bit in next step for the same reason. Now test again so we did not do something stupid. - Then actually do the merge of the code that might fail. Now we have a much smaller diff to wade through if something unexpectedly goes wrong. What do you say, Juanma? And when can we do it? From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: "Juanma Barranquero" , 890@debbugs.gnu.org Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Sep 2008 22:15:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 890-submit@emacsbugs.donarmstrong.com id=B890.12207387868449 (code B ref 890); Sat, 06 Sep 2008 22:15:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.1 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 890) by emacsbugs.donarmstrong.com; 6 Sep 2008 22:06:26 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m86M6Me1008443 for <890@emacsbugs.donarmstrong.com>; Sat, 6 Sep 2008 15:06:24 -0700 Received: by an-out-0708.google.com with SMTP id b20so184613ana.9 for <890@emacsbugs.donarmstrong.com>; Sat, 06 Sep 2008 15:06: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 :content-transfer-encoding:content-disposition:references; bh=1AxOpwe/p3dkF6U7O4QKFQCOljUMd/nkFaZzXr5q+v0=; b=wFxnDin/C7AxKd1Bi7BEHA6Wm4xeePAiuHmTee2JmEL4gxUlzfbJ+pgOAoElW5SoU0 HUcdwo9uWFyj0jtyv1QXaixcLBEr3vSqI/+GAl2Fn4caPZ3Qc7Z/JnQAbtO1sHKTp+vD De8hfmyHePGb7YKgSNSIjq4T3kW8IweVlQpi0= 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:content-transfer-encoding:content-disposition :references; b=bclfNBR94p/GUGRLpIVeRZwd+FjQ1Dozvz+m/RojHYcd4j9vT2vwYgtfLVsNAT1qi3 jzuFdwWgUPHE15oEHAriBdxB6RvvukLA7X0nNz3tXa/Kn844dcHkF2TBPpk8HdjDuLot 1EITkZivGrYo8HdaWLnMpjsMtaH1vpivKvokw= Received: by 10.100.128.20 with SMTP id a20mr13998604and.153.1220738781522; Sat, 06 Sep 2008 15:06:21 -0700 (PDT) Received: by 10.100.13.13 with HTTP; Sat, 6 Sep 2008 15:06:21 -0700 (PDT) Message-ID: Date: Sun, 7 Sep 2008 00:06:21 +0200 From: "Juanma Barranquero" To: "Lennart Borgman (gmail)" Cc: 890@debbugs.gnu.org, "Stefan Monnier" , "find lulu" In-Reply-To: <48C2FA4A.9010200@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> <48C2E408.6090606@gmail.com> <48C2FA4A.9010200@gmail.com> On Sat, Sep 6, 2008 at 23:46, Lennart Borgman (gmail) wrote: > What do you say, Juanma? No problem, as long as you do the patches... > And when can we do it? Start sending them at your convenience. Juanma From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: "find lulu" , 890@debbugs.gnu.org Resent-From: "find lulu" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 07 Sep 2008 04: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: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12207602392605 (code B ref -1); Sun, 07 Sep 2008 04:10:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.5 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER, HTML_MESSAGE,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2008 04:03:59 +0000 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 m8743s1I002599 for ; Sat, 6 Sep 2008 21:03:57 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcBVC-0001N2-GQ for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 00:03:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcBVB-0001L5-Rg for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 00:03:53 -0400 Received: from [199.232.76.173] (port=38979 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcBVB-0001Ko-Io for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 00:03:53 -0400 Received: from wr-out-0506.google.com ([64.233.184.236]:50146) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcBVA-0002ab-W7 for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 00:03:53 -0400 Received: by wr-out-0506.google.com with SMTP id c30so1100739wra.14 for ; Sat, 06 Sep 2008 21:03:52 -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=Wn+r8ygzLTlK/B9ZFua2aaX61Pat1Uv3kVqJXK0E0/Q=; b=S8CbLRiC92Pr3EVre7ePlvKQ/eWsE8B8ZAnaxfWLi/566BWFE4D49DFAlZpRggIqzX +E8E/KPmAe4SRm2xnIcIC35sI9y5qIAFATQuz9Fw2ZhSdkvBa+Ava4ic4RdAjTffvxgY 39Y/ahgoWSk3YmiJH3BWleIGl/9jqCCpd2EuM= 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=stjrbytYcOAj8cFjhNxcDvxxkj9U3BtCd5XglXbVoRnmOSFyvMzJEg+kacy35SRbOS jnuosx7Ff2nXm6+uwkxpTNgXsjDvwJA/u64zndBmxiPdi3zBnWgQrsExCuCv1MbP7xiL fCYD6qDEPLmSl6YSKi+dD/K/yWZDZq3QDZ/cI= Received: by 10.70.26.4 with SMTP id 4mr16931890wxz.19.1220760232139; Sat, 06 Sep 2008 21:03:52 -0700 (PDT) Received: by 10.70.20.7 with HTTP; Sat, 6 Sep 2008 21:03:52 -0700 (PDT) Message-ID: <6bb3db200809062103t2d79cc76v21cadd95c0808386@mail.gmail.com> Date: Sun, 7 Sep 2008 00:03:52 -0400 From: "find lulu" To: "martin rudalics" Cc: bug-gnu-emacs@gnu.org In-Reply-To: <48C2F41B.1080106@gmx.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_48484_19643303.1220760232162" References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> <48C2F41B.1080106@gmx.at> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) ------=_Part_48484_19643303.1220760232162 Content-Type: multipart/alternative; boundary="----=_Part_48485_5270796.1220760232162" ------=_Part_48485_5270796.1220760232162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline If these are not moot, here are suggested patch files and ChangeLog entries for `emacs/etc/emacs.bash' and `emacs/lisp/server.el' for the latest revisions on the CVS branch EMACS_22_BASE. ------=_Part_48485_5270796.1220760232162 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
If these are not moot, here are suggested patch files and ChangeLog entries for `emacs/etc/emacs.bash' and `emacs/lisp/server.el' for the latest revisions on the CVS branch EMACS_22_BASE.

------=_Part_48485_5270796.1220760232162-- ------=_Part_48484_19643303.1220760232162 Content-Type: application/octet-stream; name=ChangeLog Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkt4w7l40 Content-Disposition: attachment; filename=ChangeLog MjAwOC0wOS0wNiAgPHRwZXBsdEBnbWFpbC5jb20+CgoJKiBlbWFjcy5iYXNoOiBBZGRlZCBhIHRl c3QgZm9yIHRoZSBzZXJ2ZXIgZmlsZSBjcmVhdGVkIGJ5IEVtYWNzVzMyCgl0byB0aGUgY29uZGl0 aW9uYWwgZm9yIGludm9raW5nIGBlbWFjc2NsaWVudCcuCg== ------=_Part_48484_19643303.1220760232162 Content-Type: application/octet-stream; name=emacs.bash.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkt4x6rr1 Content-Disposition: attachment; filename=emacs.bash.patch KioqIGVtYWNzL2V0Yy9lbWFjcy5iYXNoLTEuNS4yLjIJU2F0IFNlcCAgNiAyMToyMjoyMCAyMDA4 Ci0tLSBlbWFjcy9ldGMvZW1hY3MuYmFzaC5uZXcJU2F0IFNlcCAgNiAyMToyMzoxNyAyMDA4Cioq KioqKioqKioqKioqKgoqKiogNDYsNTIgKioqKgogICBpZiBbIC1uICIke3dpbmRvd3N5czorc2V0 fSIgXTsgdGhlbgogICAgICAjIERvIG5vdCBqdXN0IHRlc3QgaWYgdGhlc2UgZmlsZXMgYXJlIHNv Y2tldHMuICBPbiBzb21lIHN5c3RlbXMKICAgICAgIyBvcmRpbmFyeSBmaWxlcyBvciBmaWZvcyBh cmUgdXNlZCBpbnN0ZWFkLiAgSnVzdCBzZWUgaWYgdGhleSBleGlzdC4KISAgICAgaWYgWyAtZSAi JHtIT01FfS8uZW1hY3Nfc2VydmVyIiAtbyAtZSAiL3RtcC9lbWFjcyR7VUlEfS9zZXJ2ZXIiIF07 IHRoZW4KICAgICAgICAgZW1hY3NjbGllbnQgIiRAIgogICAgICAgICByZXR1cm4gJD8KICAgICAg ZWxzZQotLS0gNDYsNTIgLS0tLQogICBpZiBbIC1uICIke3dpbmRvd3N5czorc2V0fSIgXTsgdGhl bgogICAgICAjIERvIG5vdCBqdXN0IHRlc3QgaWYgdGhlc2UgZmlsZXMgYXJlIHNvY2tldHMuICBP biBzb21lIHN5c3RlbXMKICAgICAgIyBvcmRpbmFyeSBmaWxlcyBvciBmaWZvcyBhcmUgdXNlZCBp bnN0ZWFkLiAgSnVzdCBzZWUgaWYgdGhleSBleGlzdC4KISAgICAgaWYgWyAtZSAiJHtIT01FfS8u ZW1hY3MuZC9zZXJ2ZXIvc2VydmVyIiAtbyAtZSAiJHtIT01FfS8uZW1hY3Nfc2VydmVyIiAtbyAt ZSAiL3RtcC9lbWFjcyR7VUlEfS9zZXJ2ZXIiIF07IHRoZW4KICAgICAgICAgZW1hY3NjbGllbnQg IiRAIgogICAgICAgICByZXR1cm4gJD8KICAgICAgZWxzZQo= ------=_Part_48484_19643303.1220760232162 Content-Type: application/octet-stream; name=ChangeLog Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkt521mx2 Content-Disposition: attachment; filename=ChangeLog MjAwOC0wOS0wNiAgPHRwZXBsdEBnbWFpbC5jb20+CgoJKiBzZXJ2ZXIuZWwgKHNlcnZlci1zdGFy dCk6IE1vdmVkIHRoZSBjb2RlIHRoYXQgcmVtb3ZlcyBhbnkKCWxlZnRvdmVyIHNvY2tldCBvciBh dXRoZW50aWNhdGlvbiBmaWxlIGJlZm9yZSAoYW5kIG91dHNpZGUpIHRoZQoJY29uZGl0aW9uIHRo YXQgY2hlY2tzIHRvIHNlZSB3aGV0aGVyIHRoZSBzZXJ2ZXIgc2hvdWxkIGJlIGxlZnQKCXNodXQg ZG93bi4gIFRoaXMgZW5zdXJlcyB0aGF0IHRoZSBzZXJ2ZXIncyBzb2NrZXQgb3IKCWF1dGhlbnRp Y2F0aW9uIGZpbGUgaXMgYWxzbyByZW1vdmVkIHdoZW4gRW1hY3MgaXMgc2h1dCBkb3duLAoJaW5z dGVhZCBvZiBvbmx5IHByaW9yIHRvIHJlc3RhcnRpbmcgdGhlIHNlcnZlci4K ------=_Part_48484_19643303.1220760232162 Content-Type: application/octet-stream; name=server.el.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkt53bv13 Content-Disposition: attachment; filename=server.el.patch KioqIGVtYWNzL2xpc3Avc2VydmVyLmVsLTEuMTI3LjIuNglTYXQgU2VwICA2IDIyOjA5OjUxIDIw MDgKLS0tIGVtYWNzL2xpc3Avc2VydmVyLmVsLm5ldwlTYXQgU2VwICA2IDIyOjE5OjU5IDIwMDgK KioqKioqKioqKioqKioqCioqKiAzMjMsMzM1ICoqKioKICAgICAgKGxldCAoKGJ1ZmZlciAobnRo IDEgKGNhciBzZXJ2ZXItY2xpZW50cykpKSkKICAgICAgICAoc2VydmVyLWJ1ZmZlci1kb25lIGJ1 ZmZlcikpKQogICAgOzsgTm93IGFueSBwcmV2aW91cyBzZXJ2ZXIgaXMgcHJvcGVybHkgc3RvcHBl ZC4KISAgICh1bmxlc3MgbGVhdmUtZGVhZAohICAgICAobGV0KiAoKHNlcnZlci1kaXIgKGlmIHNl cnZlci11c2UtdGNwIHNlcnZlci1hdXRoLWRpciBzZXJ2ZXItc29ja2V0LWRpcikpCiEgICAgICAg ICAgICAoc2VydmVyLWZpbGUgKGV4cGFuZC1maWxlLW5hbWUgc2VydmVyLW5hbWUgc2VydmVyLWRp cikpKQohICAgICAgIDs7IE1ha2Ugc3VyZSB0aGVyZSBpcyBhIHNhZmUgZGlyZWN0b3J5IGluIHdo aWNoIHRvIHBsYWNlIHRoZSBzb2NrZXQuCiEgICAgICAgKHNlcnZlci1lbnN1cmUtc2FmZS1kaXIg c2VydmVyLWRpcikKISAgICAgICA7OyBSZW1vdmUgYW55IGxlZnRvdmVyIHNvY2tldCBvciBhdXRo ZW50aWNhdGlvbiBmaWxlLgohICAgICAgIChpZ25vcmUtZXJyb3JzIChkZWxldGUtZmlsZSBzZXJ2 ZXItZmlsZSkpCiAgICAgICAgKHdoZW4gc2VydmVyLXByb2Nlc3MKICAgICAgICAgIChzZXJ2ZXIt bG9nIChtZXNzYWdlICJSZXN0YXJ0aW5nIHNlcnZlciIpKSkKICAgICAgICAobGV0ZiAoKChkZWZh dWx0LWZpbGUtbW9kZXMpID9cNzAwKSkKLS0tIDMyMywzMzUgLS0tLQogICAgICAobGV0ICgoYnVm ZmVyIChudGggMSAoY2FyIHNlcnZlci1jbGllbnRzKSkpKQogICAgICAgIChzZXJ2ZXItYnVmZmVy LWRvbmUgYnVmZmVyKSkpCiAgICA7OyBOb3cgYW55IHByZXZpb3VzIHNlcnZlciBpcyBwcm9wZXJs eSBzdG9wcGVkLgohICAgKGxldCogKChzZXJ2ZXItZGlyIChpZiBzZXJ2ZXItdXNlLXRjcCBzZXJ2 ZXItYXV0aC1kaXIgc2VydmVyLXNvY2tldC1kaXIpKQohICAgICAgICAgIChzZXJ2ZXItZmlsZSAo ZXhwYW5kLWZpbGUtbmFtZSBzZXJ2ZXItbmFtZSBzZXJ2ZXItZGlyKSkpCiEgICAgIDs7IE1ha2Ug c3VyZSB0aGVyZSBpcyBhIHNhZmUgZGlyZWN0b3J5IGluIHdoaWNoIHRvIHBsYWNlIHRoZSBzb2Nr ZXQuCiEgICAgIChzZXJ2ZXItZW5zdXJlLXNhZmUtZGlyIHNlcnZlci1kaXIpCiEgICAgIDs7IFJl bW92ZSBhbnkgbGVmdG92ZXIgc29ja2V0IG9yIGF1dGhlbnRpY2F0aW9uIGZpbGUuCiEgICAgIChp Z25vcmUtZXJyb3JzIChkZWxldGUtZmlsZSBzZXJ2ZXItZmlsZSkpCiEgICAgICh1bmxlc3MgbGVh dmUtZGVhZAogICAgICAgICh3aGVuIHNlcnZlci1wcm9jZXNzCiAgICAgICAgICAoc2VydmVyLWxv ZyAobWVzc2FnZSAiUmVzdGFydGluZyBzZXJ2ZXIiKSkpCiAgICAgICAgKGxldGYgKCgoZGVmYXVs dC1maWxlLW1vZGVzKSA/XDcwMCkpCg== ------=_Part_48484_19643303.1220760232162-- From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: martin rudalics , 890@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 07 Sep 2008 09:45:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 890 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122078040925895 (code B ref -1); Sun, 07 Sep 2008 09:45:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2008 09:40:09 +0000 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 m879e5JI025623 for ; Sun, 7 Sep 2008 02:40:06 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcGkW-0003rG-I5 for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 05:40:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcGkV-0003q2-A6 for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 05:40:03 -0400 Received: from [199.232.76.173] (port=59972 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcGkU-0003pq-SI for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 05:40:02 -0400 Received: from mail.gmx.net ([213.165.64.20]:56562) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KcGkU-00050U-7L for bug-gnu-emacs@gnu.org; Sun, 07 Sep 2008 05:40:02 -0400 Received: (qmail invoked by alias); 07 Sep 2008 09:40:00 -0000 Received: from 62-47-37-223.adsl.highway.telekom.at (EHLO [62.47.37.223]) [62.47.37.223] by mail.gmx.net (mp006) with SMTP; 07 Sep 2008 11:40:00 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+TW8AxD4yTl/XeNzIApxURtW6esG64sYqxqHjcx8 XYdWEwANjYXLql Message-ID: <48C3A0E3.9010800@gmx.at> Date: Sun, 07 Sep 2008 11:37:39 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: find lulu CC: bug-gnu-emacs@gnu.org References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> <48C2F41B.1080106@gmx.at> <6bb3db200809062103t2d79cc76v21cadd95c0808386@mail.gmail.com> In-Reply-To: <6bb3db200809062103t2d79cc76v21cadd95c0808386@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.77 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. > If these are not moot, here are suggested patch files and ChangeLog entries > for `emacs/etc/emacs.bash' and `emacs/lisp/server.el' for the latest > revisions on the CVS branch EMACS_22_BASE. Emacs 22 is not going to change any more. Can you provide patches and test them for Emacs 23? martin From unknown Fri Aug 15 03:57:19 2025 X-Loop: don@donarmstrong.com Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Reply-To: "find lulu" , 890@debbugs.gnu.org Resent-From: "find lulu" Resent-To: bug-submit-list@lists.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: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122082489030394 (code B ref -1); Sun, 07 Sep 2008 22:10:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.4 required=4.0 tests=BAYES_00,FOURLA, HAS_BUG_NUMBER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2008 22:01:30 +0000 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 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 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 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 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 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= Received: by 10.70.42.16 with SMTP id p16mr18064283wxp.78.1220824881181; Sun, 07 Sep 2008 15:01:21 -0700 (PDT) Received: by 10.70.38.2 with HTTP; Sun, 7 Sep 2008 15:01:21 -0700 (PDT) Message-ID: <6bb3db200809071501g4464b661ycd649814a9609e83@mail.gmail.com> Date: Sun, 7 Sep 2008 18:01:21 -0400 From: "find lulu" To: "Stefan Monnier" Cc: bug-gnu-emacs@gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_80604_30444366.1220824881201" References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) ------=_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-- From unknown Fri Aug 15 03:57:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Anonymous Sender Subject: bug#890: closed (Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32) Message-ID: References: <7a35a674aab1ec84bd2f5f9108195042@remailer.metacolo.com> X-Gnu-PR-Message: they-closed 890 X-Gnu-PR-Package: emacs Reply-To: 890@debbugs.gnu.org Date: Thu, 03 Mar 2011 06:46:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1299134762-32702-1" This is a multi-part message in MIME format... ------------=_1299134762-32702-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #890: Problem using `etc/emacs.bash' with EmacsW32 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 890@debbugs.gnu.org. --=20 890: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D890 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1299134762-32702-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 890-done) by debbugs.gnu.org; 3 Mar 2011 06:45:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pv2Hc-0007uk-Ty for submit@debbugs.gnu.org; Thu, 03 Mar 2011 01:45:09 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pv2Hb-0007iT-5i for 890-done@debbugs.gnu.org; Thu, 03 Mar 2011 01:45:07 -0500 Received: from localhost ([127.0.0.1]:42319) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv2HV-0006uL-LL; Thu, 03 Mar 2011 01:45:01 -0500 From: Glenn Morris To: 890-done@debbugs.gnu.org Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32 References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> <48C2E408.6090606@gmail.com> <48C2FA4A.9010200@gmail.com> X-Spook: beanpole offensive information warfare supercomputer X-Ran: H:+N!*:p3%]8DbdXx3yXG.~vb4@wETv8~s-s.5!@(&!+XQl?5f^u]y8CofF7QMR,!+ML-i X-Hue: blue X-Attribution: GM Date: Thu, 03 Mar 2011 01:45:01 -0500 In-Reply-To: (Juanma Barranquero's message of "Sun, 7 Sep 2008 00:06:21 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 890-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Version: 24.1 etc/emacs.bash has been removed for 24.1. ------------=_1299134762-32702-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From mix@remailer.metacolo.com Thu Sep 4 12:55:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Sep 2008 19:55:15 +0000 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 m84JtBwB001122 for ; Thu, 4 Sep 2008 12:55:12 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbKv8-0003SG-Se for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:55:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbKv8-0003S4-BY for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:55:10 -0400 Received: from [199.232.76.173] (port=35721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbKv8-0003S1-59 for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:55:10 -0400 Received: from remailer.metacolo.com ([193.111.87.9]:52598) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbKv7-0007Gm-Il for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 15:55:09 -0400 Received: by remailer.metacolo.com (Postfix, from userid 1003) id 36FFEFD06D; Thu, 4 Sep 2008 19:55:05 +0000 (UTC) From: Anonymous Sender Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at . To: bug-gnu-emacs@gnu.org Subject: Problem using `etc/emacs.bash' with EmacsW32 Message-ID: <7a35a674aab1ec84bd2f5f9108195042@remailer.metacolo.com> Date: Thu, 4 Sep 2008 19:55:05 +0000 (UTC) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' I am attempting to use the shell script `emacs.bash' that is provided in the `etc' directory of the GNU Emacs distribution. This script defines the shell function named 'edit' to provide a single, consistent command for starting Emacs and subsequently, for calling Emacs via `emacsclient', if `server-start' has been invoked via either the initialization file or M-x server-start. After sourcing the script, the command 'edit [filename]' starts Emacs as expected. However, subsequent calls to `edit' do not result in `emacsclient' being invoked. Instead, new instances of `emacs' are started. The reason for this is that the script contains the following test, which fails for EmacsW32: if [ -e "${HOME}/.emacs_server" -o -e "/tmp/emacs${UID}/server" ]; then Neither of these files is created by EmacsW32. Instead, the file ${HOME}/.emacs.d/server/server is created, by default, when `server-start' is invoked from EmacsW32. I would like to suggest that `etc/emacs.bash' be changed to include that server file in its test for starting `emacsclient', that is, change the test, above, to: if [ -e "${HOME}/.emacs.d/server/server" -o -e "${HOME}/.emacs_server" -o -e "/tmp/emacs${UID}/server" ]; then With this change, the shell function `edit' then appropriately calls `emacsclient' after Emacs has started its server. A second problem occurs after Emacs has been stopped ("killed"). The next time `edit' is called, the code in `etc/emacs.bash' calls `emacsclient' even though Emacs and its server are not running. The reason for this appears to be that the function `server-start' in `lisp/server.el' does not remove ${HOME}/.emacs.d/server/server when it is called when Emacs is killed via C-x C-c (that is, `save-buffers-kill-emacs'). Here is the sequence of calls: - When `(server-start)' is invoked, the following code in `lisp/server.el' adds an anonymous function to `kill-emacs-hook': (add-hook 'kill-emacs-hook (lambda () (server-mode -1))) ;Cleanup upon exit. - When emacs is exited via C-x C-c, the function `save-buffers-kill-emacs' is called. - The function `save-buffers-kill-emacs' calls the function `kill-emacs', which, in turn, calls the list of functions in `kill-emacs-hook'. - `server-mode' includes the form: (server-start (not server-mode)) - When the function `server-start' is called with its optional parameter `leave-dead' set to nil, the code in the following the condition in the form: (unless leave-dead ...) is not executed. This includes the code to remove the server file that was created when `server-start' was originally called, namely, (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) (server-file (expand-file-name server-name server-dir))) ;; Make sure there is a safe directory in which to place the socket. (server-ensure-safe-dir server-dir) ;; Remove any leftover socket or authentication file (ignore-errors (delete-file server-file)) ...)) ; `let' and `unless' A possible solution to this problem is to move the `(unless leave-dead)' form inside the `(let* ...)' form after the form: (ignore-errors (delete-file server-file)) I have made this change in my copy of `lisp/server.el' and confirmed that `edit' works correctly for EmacsW32, that is, it starts `emacs' if there is no instance of `emacs' running, and starts `emacsclient' if emacs's server is running. ; End of report ------------=_1299134762-32702-1--