GNU bug report logs - #890
Problem using `etc/emacs.bash' with EmacsW32

Previous Next

Package: emacs;

Reported by: Anonymous Sender <anonymous <at> remailer.metacolo.com>

Date: Thu, 4 Sep 2008 20:05:07 UTC

Severity: normal

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 890 in the body.
You can then email your comments to 890 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Anonymous Sender <anonymous <at> remailer.metacolo.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Anonymous Sender <anonymous <at> remailer.metacolo.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Problem using `etc/emacs.bash' with EmacsW32
Date: Thu,  4 Sep 2008 19:55:05 +0000 (UTC)
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






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Anonymous Sender <anonymous <at> remailer.metacolo.com>
Cc: 890 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Thu, 04 Sep 2008 23:55:22 -0400
> 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





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "find lulu" <tpeplt <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "find lulu" <tpeplt <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Fri, 5 Sep 2008 11:39:52 -0400
[Message part 1 (text/plain, 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.
[Message part 2 (text/html, inline)]

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #25 received at 890 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
To: find lulu <tpeplt <at> gmail.com>, 890 <at> debbugs.gnu.org
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sat, 06 Sep 2008 14:53:26 +0200
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?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #30 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: find lulu <tpeplt <at> gmail.com>
Cc: 890 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sat, 06 Sep 2008 15:41:13 -0400
>>> * 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





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #40 received at 890 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>, 890 <at> debbugs.gnu.org
Cc: find lulu <tpeplt <at> gmail.com>
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sat, 06 Sep 2008 22:11:52 +0200
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.)




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Juanma Barranquero" <lekktu <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #45 received at 890 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Juanma Barranquero" <lekktu <at> gmail.com>
To: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>,
        890 <at> debbugs.gnu.org
Cc: "Stefan Monnier" <monnier <at> iro.umontreal.ca>,
        "find lulu" <tpeplt <at> gmail.com>
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sat, 6 Sep 2008 22:33:42 +0200
On Sat, Sep 6, 2008 at 22:11, Lennart Borgman (gmail)
<lennart.borgman <at> gmail.com> 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




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #50 received at 890 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>, 890 <at> debbugs.gnu.org
Cc: find lulu <tpeplt <at> gmail.com>
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sat, 06 Sep 2008 23:20:27 +0200
> 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




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #55 received at 890 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 890 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>,
        find lulu <tpeplt <at> gmail.com>
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sat, 06 Sep 2008 23:46:50 +0200
Juanma Barranquero wrote:
> On Sat, Sep 6, 2008 at 22:11, Lennart Borgman (gmail)
> <lennart.borgman <at> gmail.com> 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?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Juanma Barranquero" <lekktu <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #60 received at 890 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Juanma Barranquero" <lekktu <at> gmail.com>
To: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
Cc: 890 <at> debbugs.gnu.org,
        "Stefan Monnier" <monnier <at> iro.umontreal.ca>,
        "find lulu" <tpeplt <at> gmail.com>
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sun, 7 Sep 2008 00:06:21 +0200
On Sat, Sep 6, 2008 at 23:46, Lennart Borgman (gmail)
<lennart.borgman <at> gmail.com> 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




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "find lulu" <tpeplt <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #65 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "find lulu" <tpeplt <at> gmail.com>
To: "martin rudalics" <rudalics <at> gmx.at>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sun, 7 Sep 2008 00:03:52 -0400
[Message part 1 (text/plain, 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.
[Message part 2 (text/html, inline)]
[ChangeLog (application/octet-stream, attachment)]
[emacs.bash.patch (application/octet-stream, attachment)]
[ChangeLog (application/octet-stream, attachment)]
[server.el.patch (application/octet-stream, attachment)]

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #70 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: find lulu <tpeplt <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sun, 07 Sep 2008 11:37:39 +0200
> 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






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#890; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "find lulu" <tpeplt <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #75 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "find lulu" <tpeplt <at> gmail.com>
To: "Stefan Monnier" <monnier <at> iro.umontreal.ca>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sun, 7 Sep 2008 18:01:21 -0400
[Message part 1 (text/plain, 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 <at> 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
>
[Message part 2 (text/html, inline)]

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 03 Mar 2011 06:46:02 GMT) Full text and rfc822 format available.

Notification sent to Anonymous Sender <anonymous <at> remailer.metacolo.com>:
bug acknowledged by developer. (Thu, 03 Mar 2011 06:46:02 GMT) Full text and rfc822 format available.

Message #80 received at 890-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 890-done <at> debbugs.gnu.org
Subject: Re: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Thu, 03 Mar 2011 01:45:01 -0500
Version: 24.1

etc/emacs.bash has been removed for 24.1.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 31 Mar 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 136 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.