* Re: EmacsClient: using both --eval and --alternate-editor, possible?
[not found] <56b87357-849d-4189-9c3e-abf96ae4064e@t7g2000vbj.googlegroups.com>
@ 2010-11-12 19:19 ` Pascal J. Bourguignon
2010-11-13 13:25 ` Richard Riley
2010-11-13 14:21 ` Elena
0 siblings, 2 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2010-11-12 19:19 UTC (permalink / raw)
To: help-gnu-emacs
Elena <egarrulo@gmail.com> writes:
> Hello,
>
> I think there is a conflict between --eval and --alternate-editor
> option in EmacsClient. If Emacs is not running and thus --eval fails,
> the EDITOR indicated with --alternate-editor is called instead.
> However, such EDITOR gets an ELisp expression, which it can't handle.
> Is there a way around this, other than wrapping EmacsClient into a
> script?
Obviously, you need to patch this other editor to make it understand
elisp. This is indeed an awful but that need immediate action. Either
you integrate elisp in that alternate editor, or you rm it.
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: EmacsClient: using both --eval and --alternate-editor, possible?
2010-11-12 19:19 ` EmacsClient: using both --eval and --alternate-editor, possible? Pascal J. Bourguignon
@ 2010-11-13 13:25 ` Richard Riley
2010-11-13 13:36 ` Pascal J. Bourguignon
2010-11-13 14:21 ` Elena
1 sibling, 1 reply; 4+ messages in thread
From: Richard Riley @ 2010-11-13 13:25 UTC (permalink / raw)
To: help-gnu-emacs
pjb@informatimago.com (Pascal J. Bourguignon) writes:
> Elena <egarrulo@gmail.com> writes:
>
>> Hello,
>>
>> I think there is a conflict between --eval and --alternate-editor
>> option in EmacsClient. If Emacs is not running and thus --eval fails,
>> the EDITOR indicated with --alternate-editor is called instead.
>> However, such EDITOR gets an ELisp expression, which it can't handle.
>> Is there a way around this, other than wrapping EmacsClient into a
>> script?
>
> Obviously, you need to patch this other editor to make it understand
> elisp. This is indeed an awful but that need immediate action. Either
> you integrate elisp in that alternate editor, or you rm it.
Or alternatively, and much more useful and helpful, if emacs uses the
alternative editor then it doesnt pass the eval statement to that other
editor since it knows the elisp eval statement is useless..
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: EmacsClient: using both --eval and --alternate-editor, possible?
2010-11-13 13:25 ` Richard Riley
@ 2010-11-13 13:36 ` Pascal J. Bourguignon
0 siblings, 0 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2010-11-13 13:36 UTC (permalink / raw)
To: help-gnu-emacs
Richard Riley <rileyrg@googlemail.com> writes:
> pjb@informatimago.com (Pascal J. Bourguignon) writes:
>
>> Elena <egarrulo@gmail.com> writes:
>>
>>> Hello,
>>>
>>> I think there is a conflict between --eval and --alternate-editor
>>> option in EmacsClient. If Emacs is not running and thus --eval fails,
>>> the EDITOR indicated with --alternate-editor is called instead.
>>> However, such EDITOR gets an ELisp expression, which it can't handle.
>>> Is there a way around this, other than wrapping EmacsClient into a
>>> script?
>>
>> Obviously, you need to patch this other editor to make it understand
>> elisp. This is indeed an awful but that need immediate action. Either
>> you integrate elisp in that alternate editor, or you rm it.
>
> Or alternatively, and much more useful and helpful, if emacs uses the
> alternative editor then it doesnt pass the eval statement to that other
> editor since it knows the elisp eval statement is useless..
This is silly. Obviously, the alternate editor is also an emacs.
For example:
/opt/local/bin/emacsclient --alternate-editor=/usr/bin/emacs -e '(emacs-version)'
if for some reason the X11 emacs provided by MacPorts is not available,
I fallback to the bare terminal emacs provided by Apple.
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: EmacsClient: using both --eval and --alternate-editor, possible?
2010-11-12 19:19 ` EmacsClient: using both --eval and --alternate-editor, possible? Pascal J. Bourguignon
2010-11-13 13:25 ` Richard Riley
@ 2010-11-13 14:21 ` Elena
1 sibling, 0 replies; 4+ messages in thread
From: Elena @ 2010-11-13 14:21 UTC (permalink / raw)
To: help-gnu-emacs
While looking for ways to cut out the Elisp code and passing just the
file-name, I found out that you can customize `server-*' functions and
variables, thus achieving the goal of moving the Elisp code from
EmacsClient's command line to Emacs itself.
Once again, Emacs had it sorted out already ^_^
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-13 14:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <56b87357-849d-4189-9c3e-abf96ae4064e@t7g2000vbj.googlegroups.com>
2010-11-12 19:19 ` EmacsClient: using both --eval and --alternate-editor, possible? Pascal J. Bourguignon
2010-11-13 13:25 ` Richard Riley
2010-11-13 13:36 ` Pascal J. Bourguignon
2010-11-13 14:21 ` Elena
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).