Upgrading Emacs

Build steps under Linux

 * Remove or rename 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 and unpack:

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


 * Install dependencies. This works under Ubuntu:

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.


 * Configure:

./configure --with-x-toolkit=gtk3 --prefix="$HOME/emacs-24.5-bin"


 * Now you can take a look at the configuration table at the end of the configuration log and see if everything looks alright.

make -j "$(( $(getconf _NPROCESSORS_ONLN) + 1 ))" && make install
 * Build and install


 * Adjust your system:
 * Change your $EDITOR shell variable.
 * Create a KDE shortcut like this: "$HOME/emacs-24.5-bin/bin/emacs" %F
 * The icon is here: $HOME/emacs-24.5-bin/share/icons/hicolor/scalable/apps
 * Configure double-click file opening like this: /home/ /emacs-24.5-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

 * When configuring the build, 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 build configuration issue.