|
|
Up |
|
|
  |
Author: WillWill Date: May 1, 2007 06:15
Hi, there!
I'd like to use a shortcut on my desktop to start GNU Emacs with W32
bundle (patched, V1.46 - V1.50) so that my personal init-file is
evaluated at start-up, which is _not_ in my home directory. The
following commands however do not work (cf. Shortcut > Target):
"C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n -e
"Z:\00_Preferences\Emacs\.emacs"
"C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n --eval
"Z:\00_Preferences\Emacs\.emacs"
What am I doing wrong?
Thanks for help in advance,
Will
|
| |
|
| | 38 Comments |
|
  |
Author: Eli ZaretskiiEli Zaretskii Date: May 1, 2007 12:37
> From: Will
> Date: Tue, 01 May 2007 15:15:24 +0200
>
> I'd like to use a shortcut on my desktop to start GNU Emacs with W32
> bundle (patched, V1.46 - V1.50) so that my personal init-file is
> evaluated at start-up, which is _not_ in my home directory. The
> following commands however do not work (cf. Shortcut > Target):
>
> "C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n -e
> "Z:\00_Preferences\Emacs\.emacs"
>
> "C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n --eval
> "Z:\00_Preferences\Emacs\.emacs"
>
> What am I doing wrong?
Why do you make this so complicated? Why not
"C:\Program Files\Emacs\emacs\bin\runemacs.exe" --eval
"Z:\00_Preferences\Emacs\.emacs"
? why use emacsclientw?
|
| Show full article (1.23Kb) |
|
| | no comments |
|
  |
Author: Lennart Borgman (gmail)Lennart Borgman (gmail) Date: May 1, 2007 13:31
Eli Zaretskii wrote:
>> From: Will
>> Date: Tue, 01 May 2007 15:15:24 +0200
>>
>> I'd like to use a shortcut on my desktop to start GNU Emacs with W32
>> bundle (patched, V1.46 - V1.50) so that my personal init-file is
>> evaluated at start-up, which is _not_ in my home directory. The
>> following commands however do not work (cf. Shortcut > Target):
>>
>> "C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n -e
>> "Z:\00_Preferences\Emacs\.emacs"
>>
>> "C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n --eval
>> "Z:\00_Preferences\Emacs\.emacs"
>>
>> What am I doing wrong?
>
> Why do you make this so complicated? Why not
>
> "C:\Program Files\Emacs\emacs\bin\runemacs.exe" --eval ...
|
| Show full article (1.46Kb) |
| no comments |
|
  |
Author: Lennart Borgman (gmail)Lennart Borgman (gmail) Date: May 1, 2007 13:39
Lennart Borgman (gmail) wrote:
> emacsclientw.exe -n -e "load-file \"path-to-your-file\""
Eh, and that should be
emacsclientw.exe -n -e "(load-file \"c:/path/to/your/file\")"
and you should use FORWARD slashes in the file names.
|
| |
| no comments |
|
  |
Author: Eli ZaretskiiEli Zaretskii Date: May 1, 2007 20:00
> Date: Tue, 01 May 2007 22:31:18 +0200
> From: "Lennart Borgman (gmail)" gmail.com>
> CC: Eli Zaretskii gnu.org>, help-gnu-emacs@gnu.org
>
>>> "C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n --eval
>>> "Z:\00_Preferences\Emacs\.emacs"
>>>
>>> What am I doing wrong?
>>
>> Why do you make this so complicated? Why not
>>
>> "C:\Program Files\Emacs\emacs\bin\runemacs.exe" --eval
>> "Z:\00_Preferences\Emacs\.emacs"
>>
>> ? why use emacsclientw?
>
>
> That is good advice for the unpatched version of Emacs, but for the
> patched version that comes with Emacs+EmacsW32 it should be handled
> differently. ...
|
| Show full article (1.03Kb) |
| no comments |
|
  |
Author: Lennart Borgman (gmail)Lennart Borgman (gmail) Date: May 2, 2007 00:18
Eli Zaretskii wrote:
>> The reason is that with the patched version you do not have to start
>> Emacs server in your .emacs, it is started automatically by the first
>> invocation of emacsclient.
>
> So not only is your Emacs patched and behaves differently, it also
> teaches users habits that will prevent them from using the same .emacs
> on other systems? I find this disturbing.
You know very well, Eli, that we have discussed if Emacs server should
be started automatically when Emacs client is invoked. I have offered
the code that does so, but you are one of those that did not want that
code to be in Emacs at the moment.
I think it is one of the important features in the patched version that
makes it quite a bit easier to get started using Emacs for new users.
Not one single of the new users have complained about this.
|
| |
| no comments |
|
  |
Author: Juanma BarranqueroJuanma Barranquero Date: May 2, 2007 03:21
On 5/2/07, Lennart Borgman (gmail) gmail.com> wrote:
> You know very well, Eli, that we have discussed if Emacs server should
> be started automatically when Emacs client is invoked. I have offered
> the code that does so, but you are one of those that did not want that
> code to be in Emacs at the moment.
I'm obviously not Eli, but I think there were good reasons for not
wanting the code in Emacs at the present. For one, althought I like
the functionality, I think it could benefit from some more discussion;
also, I don't like the implementation.
> I think it is one of the important features in the patched version that
> makes it quite a bit easier to get started using Emacs for new users.
I don't think "quite a bit easier" is a fair description. We're
talking of the difficulty of starting Emacs as a server before using
emacsclient. Hardly rocket science.
> Not one single of the new users have complained about this.
Users who enter Emacs through your distribution don't know it is
currently supposed to be different. Why should they complain, unless
it causes problems (which is not the same that being better, of
course)? And I seem to remember at least a few bug reports...
|
| Show full article (1.23Kb) |
| no comments |
|
  |
Author: Lennart Borgman (gmail)Lennart Borgman (gmail) Date: May 2, 2007 06:28
Juanma Barranquero wrote:
> I'm obviously not Eli, but I think there were good reasons for not
> wanting the code in Emacs at the present. For one, althought I like
> the functionality, I think it could benefit from some more discussion;
> also, I don't like the implementation.
Yes, more discussion would be good. I really tried to open a discussion
about it, but I did not get much company.
>> Not one single of the new users have complained about this.
>
> Users who enter Emacs through your distribution don't know it is
> currently supposed to be different.
Did you read the download page for Emacs+EmacsW32? Did you read the
documentation on the web pages about the patches?
> And I seem to remember at least a few bug reports...
I am not aware of any bugs that have not been fixed. None of the
problems where related to the changes to Emacs client.
|
| |
| no comments |
|
  |
Author: Juanma BarranqueroJuanma Barranquero Date: May 2, 2007 07:18
On 5/2/07, Lennart Borgman (gmail) gmail.com> wrote:
> Yes, more discussion would be good. I really tried to open a discussion
> about it, but I did not get much company.
I'd say you're being unfair, but that would be far too nice. You seem
to have suddenly forgotten tens of messages (public and private) and
quite a few hours devoted to this and related issues. Once again I get
the feeling that you're very conservative with your time, and quite
liberal with other people's.
Also, the fact that your patches (for this issue) where not included
is not because "you did not get much company"; it is because they were
late, not convincing to some people (me included), and not deemed
urgent enough; and, to my knowledge, not agreeing with your assessment
of a problem's gravity/urgency is not a failure in the Emacs
development process. I'm sure you'll disagree.
> Did you read the download page for Emacs+EmacsW32? Did you read the
> documentation on the web pages about the patches?
Yes, Lennart, I did. Once. Fortunately, I'm not morally or
contractually obliged to memorize every single word you write.
> I am not aware of any bugs that have not been fixed.
|
| Show full article (1.74Kb) |
| no comments |
|
  |
|
|
  |
Author: Lennart Borgman (gmail)Lennart Borgman (gmail) Date: May 2, 2007 07:30
Juanma Barranquero wrote:
> On 5/2/07, Hadron gmail.com> wrote:
>
>> Is there a solid reason NOT to start the server automatically if someone
>> starts a client?
>
> Yes. You can read the discussions in the emacs-devel list (those that
> Lennart seems to think never happened). Basically, for the client to
> be able to start the server, either you put too much "inteligence" in
> the client, or you have a way to clearly specify how to pass that info
> from the client to the server. I'm quite sure there's a clean way to
> do that, and I'm also quite sure it's not the one in EmacsW32-*, at
> least the last time I took a look at it.
I am sure you know these things much better than me, I just wanted
something that worked now. You did the heroes work when you got Emacs
client to run on MS Windows. I only reorganized what you wrote and added
simple functions for user feedback.
I also added a switch
--server-file FILENAME
|
| Show full article (2.07Kb) |
| no comments |
|
|
|
|