From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Thierry Volpiatto <tvolpiatt@neuf.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacsclient with emacs-23.0.60
Date: Mon, 29 Oct 2007 11:29:28 +0100 [thread overview]
Message-ID: <7A5D163B-DB94-42A0-974A-6913F7F6F725@Web.DE> (raw)
In-Reply-To: <87wst6731l.fsf@thievol.homelinux.org>
Am 29.10.2007 um 09:12 schrieb Thierry Volpiatto:
> is not working only in this special case:
>
> when i call it from my python app throught the mailcap module.
Could be there is something with missing environment variables ...
A simple 'strings `which emacsclient`' reveals:
ALTERNATE_EDITOR
DISPLAY
EMACS_SERVER_FILE
HOME
LOGNAME
TERM
USER
USER, LOGNAME, DISPLAY are important. Can you launch a simple shell
script instead of emacsclient that just records the environment
variables it sees inside Python? Like:
#!<path to your login shell>
env | sort -o /tmp/EnvironmentAsSeenFromWithinPython$$
Then compare this with that which a regular shell or GNU Emacs'
*shell* buffer has.
And in the next round: make that shell script replace the utility
that would be determined by the mailcap file – I have no idea why you
mention this, because mailcap names a "proxy" to handle a particular
data type. Does this "proxy" application launch and for which data
type does it launch? Or do you mean that you have extended mailcap to
use emacsclient for some data type(s)? Then it would be easy to
substitute "emacsclient" with "shell script name" for a test and all
is done.
--
Greetings
Pete
There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence.
- Jeremy S. Anderson
next prev parent reply other threads:[~2007-10-29 10:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-28 9:43 emacsclient with emacs-23.0.60 Thierry Volpiatto
2007-10-28 10:51 ` Peter Dyballa
2007-10-28 11:27 ` Thierry Volpiatto
2007-10-28 22:53 ` Thierry Volpiatto
2007-10-28 23:31 ` Peter Dyballa
2007-10-29 3:14 ` Xiao-Yong Jin
2007-10-29 8:12 ` Thierry Volpiatto
2007-10-29 10:29 ` Peter Dyballa [this message]
2007-10-29 21:15 ` Thierry Volpiatto
2007-10-29 23:36 ` Peter Dyballa
2007-10-30 22:59 ` Thierry Volpiatto
2007-10-30 23:59 ` Peter Dyballa
2007-10-29 9:40 ` Peter Dyballa
2007-10-29 10:22 ` Thierry Volpiatto
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7A5D163B-DB94-42A0-974A-6913F7F6F725@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=tvolpiatt@neuf.fr \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.