* Emacs version: 22.3.1 >>> Unpacking source... >>> Unpacking gentoo-syntax-1.13.tar.bz2 to /var/tmp/portage/app-emacs/gentoo-syntax-1.13/work >>> Source unpacked in /var/tmp/portage/app-emacs/gentoo-syntax-1.13/work >>> Compiling source in /var/tmp/portage/app-emacs/gentoo-syntax-1.13/work/gentoo-syntax-1.13 ... * Compiling GNU Emacs Elisp files ... In toplevel form: gentoo-syntax.el:109:1:Error: Invalid modifier in string * elisp-compile: batch-byte-compile failed [ !! ] * * ERROR: app-emacs/gentoo-syntax-1.13 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2493: Called elisp_src_compile * environment, line 913: Called die * The specific snippet of code: * elisp-compile *.el || die * The die message: * (no error message) Cause seems to be a "\s" in a string which should be a "\\s" instead. Fixing that issue allowed me to emerge the package successfully. Will attach patch.
Created attachment 204950 [details, diff] Fix \s in string
(In reply to comment #1) > Created an attachment (id=204950) [edit] > Fix \s in string This makes it compile, but it doesn't work. The following fix should be correct (in SVN r1422): - (while (re-search-forward "\\(\s-\\|#\\).*$" nil t) + (while (re-search-forward "\\([ \t]\\|#\\).*$" nil t)
Or, even shorter (r1424): - (while (re-search-forward "\\(\s-\\|#\\).*$" nil t) + (while (re-search-forward "[ \t#].*$" nil t) Fixed in gentoo-syntax-1.14. Thank you for reporting.