From: Xavier Maillard <xma@gnu.org>
To: Christian Couder <chriscool@tuxfamily.org>
Cc: junkio@cox.net, pascal@obry.net, nanako3@bluebottle.com,
git@vger.kernel.org
Subject: Re: [PATCH 1/2] help: add "man.viewer" config var to use "woman" or "konqueror"
Date: Fri, 29 Feb 2008 03:00:18 +0100 [thread overview]
Message-ID: <200802290200.m1T20I7Z018030@localhost.localdomain> (raw)
In-Reply-To: <20080228051956.2f36edf0.chriscool@tuxfamily.org> (message from Christian Couder on Thu, 28 Feb 2008 05:19:56 +0100)
Hi (again),
Note that "emacsclient" is used with option "-e" to launch "woman"
on emacs and this works only on versions >= 22.
Here are more clues concerning emacsclient I found out when
trying to understand why it worked for you with >=22 and not for
me with a 23.x version.
+
+ /* emacsclient prints its version number on stderr */
As commented into another post, here the version is displayed on
stdout which is confirmed by reading the source code:
/* Display a normal or error message.
On Windows, use a message box if compiled as a Windows app. */
FILE *f = is_error ? stderr : stdout;
fputs (msg, f);
fflush (f);
is_error is a boolean parameter to the function message.
+ /*
+ * Don't bother checking return value, because "emacsclient --version"
+ * seems to always exits with code 1.
+ */
Almost, in fact, in emacsclient.c, we can read
case 'V':
message (FALSE, "emacsclient %s\n", VERSION);
exit (EXIT_SUCCESS);
break;
So it always returns 0.
Regards
Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org
prev parent reply other threads:[~2008-02-29 2:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-28 4:19 [PATCH 1/2] help: add "man.viewer" config var to use "woman" or "konqueror" Christian Couder
2008-02-29 2:00 ` Xavier Maillard
2008-02-29 7:14 ` Christian Couder
2008-02-29 7:46 ` Junio C Hamano
2008-03-01 1:00 ` Xavier Maillard
2008-03-03 7:20 ` Christian Couder
2008-03-01 1:00 ` [PATCH AMENDED] " Xavier Maillard
2008-03-01 2:14 ` Junio C Hamano
2008-03-03 7:38 ` Christian Couder
2008-03-03 7:42 ` Jakub Narebski
2008-03-03 19:07 ` Christian Couder
2008-02-29 2:00 ` Xavier Maillard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200802290200.m1T20I7Z018030@localhost.localdomain \
--to=xma@gnu.org \
--cc=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=nanako3@bluebottle.com \
--cc=pascal@obry.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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).