Jan 18, 2018 12:24
Recently did a "yum upgrade" and had some problems with emacs menus not showing up properly. Lots of:
(emacs:21168): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: asser
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug
(emacs:21168): Gtk-WARNING **: Negative content width -11 (allocation 1, extentsItem)
...and general un-usability of emacs menus. I tracked it down to changes in the gtk3-3.22.10-4 package, but no emacs updates exist yet in the 7.4 repo to fix this issue. I use it for all of my general editing of code with the web-mode.el syntax highlighting and also other assorted text files, so I had to find a solution.
What fixed it was:
# get a copy of the newest emacs (27.0.50) and build/install it
# git clone git://git.sv.gnu.org/emacs.git
# make (generates configure sript)
# configure
# make (builds emacs)
# make install (installs)
Of course there were some libs that needed to be installed for compilation:
texinfo
libtiff-devel
gnutls-devel
libungif-devel
libjpeg-devel
All that needed to be done after that was to copy web-mode.el to /usr/local/share/emacs/27.0.50/lisp/progmodes/