help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: emacsclient with emacs-23.0.60


From: Thierry Volpiatto
Subject: Re: emacsclient with emacs-23.0.60
Date: Mon, 29 Oct 2007 22:15:54 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.60 (gnu/linux)

Peter Dyballa <address@hidden> 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:
>
>       #!<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.


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!!

CLASSPATH=.
CONFIG_PROTECT_MASK=/etc/env.d/java/ /etc/udev/rules.d /etc/terminfo 
/etc/texmf/web2c /etc/revdep-rebuild /etc/splash
CONFIG_PROTECT=/usr/share/X11/xkb
CVS_RSH=ssh
DESKTOP_STARTUP_ID=~|bin|calendar_tk.py/~|bin|calendar_tk.py/26032-7-thievol_TIME0
DISPLAY=:0
EDITOR=/usr/local/bin/editeur.sh
G_BROKEN_FILENAMES=1
GCC_PATH=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
GCC_SPECS=
GDK_USE_XFT=1
GENERATION=2
G_FILENAME_ENCODING=UTF-8
HOME=/home/thierry
HUSHLOGIN=FALSE
INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-23-unicode:/home/thierry/elisp/info
JAVAC=/etc/java-config-2/current-system-vm/bin/javac
JAVA_HOME=/etc/java-config-2/current-system-vm
JDK_HOME=/etc/java-config-2/current-system-vm
LANG=fr_FR.UTF-8
address@hidden
LC_ALL=fr_FR.UTF-8
LDPATH=/usr/local/lib://usr/lib32/opengl/nvidia/lib://usr/lib64/opengl/nvidia/lib:/lib:/usr/lib:/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/usr/x86_64-pc-linux-gnu/lib:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/32:/usr/lib64/nspr:/usr/lib64/nss:/usr/lib/openmotif-2.2:/usr/lib32/openmotif-2.2:/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/:/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/native_threads/:/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/classic/:/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/server/:/usr/qt/3/lib:/usr/qt/3/lib64:/usr/qt/3/lib32:/usr/games/lib:/usr/games/lib64
LEDGER_CACHE=/home/thierry/finance/.ledger-cache
LEDGER_FILE=/home/thierry/finance/ledger.dat
LEDGER_PRICEDB=/home/thierry/finance/.pricedb
LESSOPEN=|lesspipe.sh %s
LESS=-R -M --shift 5
LOGNAME=thierry
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
MAIL=/home/thierry/incoming
MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/opt/blackdown-jdk-1.4.2.03/man:/etc/java-config/system-vm/man/:/usr/qt/3/doc/man
OPENGL_PROFILE=nvidia
PAGER=/usr/bin/less
PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/usr/games/bin:/home/thierry/bin
PKG_CONFIG_PATH=/usr/qt/3/lib64/pkgconfig
PRELINK_PATH_MASK=/usr/lib64/klibc
PWD=/home/thierry
PYTHONDOCS=/usr/share/doc/python-docs-2.4.4/html/lib
PYTHONPATH=/usr/lib64/portage/pym
QMAKESPEC=linux-g++
QTDIR=/usr/qt/3
SANE_CONFIG_DIR=/etc/sane.d
SANE_DEFAULT_DEVICE=snapscan:libusb:002:004
SHELL=/bin/bash
SHLVL=7
SSH_AGENT_PID=5583
SSH_AUTH_SOCK=/tmp/ssh-uUfRKE5582/agent.5582
TERM=linux
USB_DEVFS_PATH=/dev/bus/usb
USER=thierry
_=/usr/bin/env
VMHANDLE=blackdown-jdk-1.4.2
WINDOWPATH=7
XAUTHORITY=/home/thierry/.Xauthority
CLASSPATH=.
COLUMNS=184
CONFIG_PROTECT_MASK=/etc/env.d/java/ /etc/udev/rules.d /etc/terminfo 
/etc/texmf/web2c /etc/revdep-rebuild /etc/splash
CONFIG_PROTECT=/usr/share/X11/xkb
CVS_RSH=ssh
DISPLAY=:0.0
EDITOR=/usr/local/bin/editeur.sh
EMACS=t
G_BROKEN_FILENAMES=1
GCC_PATH=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
GCC_SPECS=
GDK_USE_XFT=1
GENERATION=2
G_FILENAME_ENCODING=UTF-8
HOME=/home/thierry
HUSHLOGIN=FALSE
INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-23-unicode:/home/thierry/elisp/info:/home/thierry/elisp/info
INSIDE_EMACS=23.0.60.1,comint
JAVAC=/etc/java-config-2/current-system-vm/bin/javac
JAVA_HOME=/etc/java-config-2/current-system-vm
JDK_HOME=/etc/java-config-2/current-system-vm
LANG=fr_FR.UTF-8
address@hidden
LC_ALL=fr_FR.UTF-8
LDPATH=/usr/local/lib://usr/lib32/opengl/nvidia/lib://usr/lib64/opengl/nvidia/lib:/lib:/usr/lib:/lib64:/usr/lib64:/usr/local/lib64:/lib32:/usr/lib32:/usr/local/lib32:/usr/x86_64-pc-linux-gnu/lib:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/32:/usr/lib64/nspr:/usr/lib64/nss:/usr/lib/openmotif-2.2:/usr/lib32/openmotif-2.2:/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/:/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/native_threads/:/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/classic/:/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/server/:/usr/qt/3/lib:/usr/qt/3/lib64:/usr/qt/3/lib32:/usr/games/lib:/usr/games/lib64
LEDGER_CACHE=/home/thierry/finance/.ledger-cache
LEDGER_FILE=/home/thierry/finance/ledger.dat
LEDGER_PRICEDB=/home/thierry/finance/.pricedb
LESSOPEN=|lesspipe.sh %s
LESS=-R -M --shift 5
LOGNAME=thierry
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
MAIL=/home/thierry/incoming
MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/opt/blackdown-jdk-1.4.2.03/man:/etc/java-config/system-vm/man/:/usr/qt/3/doc/man
OPENGL_PROFILE=nvidia
PAGER=/usr/bin/less
PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/usr/games/bin:/home/thierry/bin:/home/thierry/bin
PKG_CONFIG_PATH=/usr/qt/3/lib64/pkgconfig
PRELINK_PATH_MASK=/usr/lib64/klibc
PS1=\[\033[01;address@hidden;34m\] \w \$\[\033[00m\] 
PWD=/home/thierry
PYTHONDOCS=/usr/share/doc/python-docs-2.4.4/html/lib
PYTHONPATH=/usr/lib64/portage/pym
QMAKESPEC=linux-g++
QTDIR=/usr/qt/3
SANE_CONFIG_DIR=/etc/sane.d
SANE_DEFAULT_DEVICE=snapscan:libusb:002:004
SHELL=/bin/bash
SHLVL=5
SSH_AGENT_PID=5583
SSH_AUTH_SOCK=/tmp/ssh-uUfRKE5582/agent.5582
TERMCAP=
TERM=dumb
USB_DEVFS_PATH=/dev/bus/usb
USER=thierry
_=/usr/bin/env
VMHANDLE=blackdown-jdk-1.4.2
WINDOWPATH=7
XAUTHORITY=/home/thierry/.Xauthority
-- 
A + Thierry
pubkey: http://pgp.mit.edu/

reply via email to

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