Summary: | app-emacs/emacs-daemon should allow for setting up a proper environment | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tassilo Horn <tsdh> |
Component: | Current packages | Assignee: | Emacs project <emacs> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | Keywords: | InVCS |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Tassilo Horn
2008-11-12 07:57:14 UTC
It seems that point 2 doesn't work. I tried expanding my PATH using M-x setenv RET PATH RET $PATH:/home/horn/bin RET and M-x getenv shows that the value is just like I wanted, but when I hit RET on a link which should launch "conkeror" which is located in that directory, it won't be found. apply: Searching for program: no such file or directory, conkeror How about the following: We add a variable EMACS_LAUNCHER (any better suggestion for the name?) in conf.d/emacs, with an empty default value. The init script's start function would then call "start-stop-daemon --exec ${EMACS_LAUNCHER:-${EMACS}}". This should allow for maximum flexibility. As added bonus we could install a default start-emacs-daemon script (probably this should then go into /usr/libexec/) with the following contents: #!/bin/bash -l exec "${EMACS}" "$@" (In reply to comment #0) > Or maybe a conf.d/emacs.user would be better. This is called "multiplexing" and already working. I'll add a respective comment to conf.d/emacs. The EMACS_LAUNCHER option sounds just perfect! 2008-11-13 Ulrich Mueller <ulm@gentoo.org> * emacs.rc (start): Allow for a wrapper script specified by variable EMACS_START. Thanks to Tassilo Horn, bug 246460. * emacs.conf (EMACS_START): Document as a variable. * emacs-wrapper.sh: New file. * Makefile (DISTFILES): Add emacs-wrapper.sh. * emacs.conf: Add a comment about multiplexed configuration files. Using emacs-daemon-9999 the emacs-wrapper.sh is not installed. It should, see: http://overlays.gentoo.org/proj/emacs/changeset/1206 Did you re-sync the overlay? Ups, you're right. I forgot that. Now it works just beautiful. Thanks a lot! Fixed in emacs-daemon-0.6. Thank you for the suggestion. Just for info: The wrapper script is now called by default. I've also added a start timeout, in order to avoid a hanging runscript (which is quite nasty at boot time). It might be worthwhile to test this again, emacs-daemon-9999, in Emacs overlay. |