# Get emacs source
sudo apt-get install bzr
bzr branch bzr://bzr.savannah.gnu.org/emacs/trunk emacs
# some dependencies
sudo apt-get install libgtk-3-dev
sudo apt-get install libgif-dev libxpm-dev
# for makeinfo
sudo apt-get install texinfo
# configure complains about missing libtiff
sudo apt-get install libtiff4-dev
# configure and build (WARNING: This is to build with gtk3 as suggested in the original post)
cd emacs
./autogen.sh
./configure --with-x-toolkit=gtk3
make
src/emacs
And hurray !