From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32 Date: Sat, 06 Sep 2008 14:53:26 +0200 Message-ID: <48C27D46.6010407@gmail.com> References: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> Reply-To: "Lennart Borgman \(gmail\)" , 890@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220706469 5504 80.91.229.12 (6 Sep 2008 13:07:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Sep 2008 13:07:49 +0000 (UTC) To: find lulu , 890@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 06 15:08:42 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 1KbxWr-00083p-Mq for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Sep 2008 15:08:41 +0200 Original-Received: from localhost ([127.0.0.1]:38687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbxVs-0001CG-1T for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Sep 2008 09:07:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbxVn-0001Bt-RK for bug-gnu-emacs@gnu.org; Sat, 06 Sep 2008 09:07:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbxVm-0001Bh-15 for bug-gnu-emacs@gnu.org; Sat, 06 Sep 2008 09:07:35 -0400 Original-Received: from [199.232.76.173] (port=45004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbxVl-0001Be-S5 for bug-gnu-emacs@gnu.org; Sat, 06 Sep 2008 09:07:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47645) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbxVl-000593-Pu for bug-gnu-emacs@gnu.org; Sat, 06 Sep 2008 09:07:34 -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 m86D7Voj014677; Sat, 6 Sep 2008 06:07:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m86D03l7010937; Sat, 6 Sep 2008 06:00:03 -0700 X-Loop: don@donarmstrong.com Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@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: Original-Received: via spool by 890-submit@emacsbugs.donarmstrong.com id=B890.12207056189069 (code B ref 890); Sat, 06 Sep 2008 13:00:03 +0000 Original-Received: (at 890) by emacsbugs.donarmstrong.com; 6 Sep 2008 12:53:38 +0000 Original-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 Original-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 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 In-Reply-To: <6bb3db200809050839l4e90bd50q80eefe4938144df5@mail.gmail.com> X-Enigmail-Version: 0.95.7 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 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 06 Sep 2008 09:07:35 -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:20230 Archived-At: 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?