Comment 4 for bug 513450

Revision history for this message
Ryan Thompson (rct86) wrote :

This is still an issue in 12.04. The bug is important if you want to have multiple versions of emacs available, and you want to use daemon mode.

Suppose you have both emacs23 and emacs-snapshot installed, and /etc/alternatives/emacs points to /usr/bin/emacs23. In this case, any of the following commands will start an Emacs daemon using emacs23:

1. emacsclient -a "" -c
2. emacsclient.emacs23 -a "" -c
3. emacsclient.emacs-snapshot -a "" -c

Arguably, command number 3 should use emacs-snapshot to start the daemon. But instead all of them start /usr/bin/emacs, which points to /etc/alternatives/emacs, which points to /usr/bin/emacs23. To fix this, each version of emacs would have to be patched to use its own version-specific executable to start the daemon. This would ensure that the correct emacs version is always used to start the daemon.