[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -DVERSION for emacsclient

From: Benjamin Riefenstahl
Subject: Re: -DVERSION for emacsclient
Date: Fri, 24 Nov 2006 18:10:00 +0100
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3.50 (gnu/linux)

Hi Eli,

Eli Zaretskii writes:
> You mean more portable than this:
>   sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' version.el

Wouldn't it be possible to make emacsclient depend on the Emacs binary
(if it isn't already) and use an Elisp script and "emacs -batch" to
put the value of emacs-version into emacsclient.c?

As an alternative, if you don't want to make that a strong dependency,
test if the Emacs binary is present and only call the Elisp script in
the common case that it has been made.

Just a thought,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]