Today I heard that Emacs 30.1 is released. So here’s how I build emacs
wget https://ftpmirror.gnu.org/emacs/emacs-30.1.tar.xz
tar xf emacs-30.1.tar.xz
cd emacs-29.4/
mkdir build
cd build
../configure --with-pgtk --with-mailutils
sudo make -j4 install
If this is your first time building emacs, run these
sudo apt build-dep emacs
Maybe you’ll want to clean up older versions you’ve compiled
ls -l /usr/local/bin/emacs*