Peter Dyballa writes: > 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: > > #! > 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. I did that and i have two files now: - One done with replacing emacsclient by the command line you gave me in my script that is launched as $EDITOR in .mailcap - One with your command line runned in the shell of emacs (not eshell) I have 2 list of environnement variable but it's don't "talk me a lot!" I attach them, if you have the time to have a look. 6915==>from my python app 7619==>from shell The problem is now repeated in all my emacs-cvs (22 and 23) The problem with "svn-status-ediff-with-revision" also I think the problem is related to my $EDITOR value but i am not sure. Only the "emacs22 no cvs" is working. And added to that, (it's a bad day :) ) since the update of my system this morning , /su::/... with tramp is not working anymore (authentification fail) I think it's from the update of pwdb and pam the problem come. Thank you for your help, i try hard to understand your advices!!