Upgrading Emacs

Build steps

 * Remove all other emacs versions from the system. Otherwise, you may get confused later on, when the wrong emacs version accidentally starts when double-clicking on some file.


 * Download:

wget http://ftp.gnu.org/gnu/emacs/emacs-24.4.tar.gz tar -xzf emacs-24.4.tar.gz  cd emacs-24.4


 * Install dependencies:

sudo apt-get install build-essential sudo apt-get build-dep emacs24
 * 1) Satisfy most dependencies automatically.

Apparently that does not satisfy the Xaw3d dependency: Does Emacs use -lXaw3d? no But I do not actually know what type of scroll bar or whatever that Xaw3d package is. If you know more, please drop me a line.


 * Build:

./configure --with-x-toolkit=gtk3 --prefix="$HOME/emacs-24.4-bin" make -j "$(( $(getconf _NPROCESSORS_ONLN) + 1 ))" make install


 * Adjust your system:
 * Change your $EDITOR shell variable.
 * Create a KDE shortcut like this: "$HOME/emacs-24.4-bin/bin/emacs" %F
 * The icon is here: $HOME/emacs-24.4-bin/share/icons/hicolor/scalable/apps
 * Configure double-click file opening like this: /home/ /emacs-24.4-bin/bin/emacsclient --no-wait
 * If you autostart emacs, adjust that too.
 * If you have any scripts that use emacs or emacsclient, adjust them too.

Unresolved issues

 * See unsatisfied dependency "Xaw3d" above.
 * With Ubuntu 14.04's emacs 24.3, you can drag-and-drop multiple files at once from a KDE Dolphin window. That does not work anymore. It could be a configuration issue.