From Bugzilla Helper: User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-13 i586) Description of problem: Example: open iptables.spec in emacs on a color X display. The Requires(post,postun) is not highlighted. In file rpm-spec-mode.el http://www.tihlde.org/~stigb/rpm-spec-mode.el rpm-spec-font-lock-keywords second pattern needs to allow comma inside parens. Version-Release number of selected component (if applicable): /mnt/enigma-SRPMS-disc1/SRPMS/emacs-20.7-41.src.rpm rpm-spec-mode.el version 0.11g How reproducible: Always Steps to Reproduce: 1. emacs /usr/src/redhat/SPECS/iptables.spec 2. look at the Requires(post,postun) statement 3. Actual Results: The statement is not fontified. Expected Results: Requires should be blue, (post,postun) should be red. Additional info: rpm-spec-font-lock-keywords second pattern needs to allow comma inside parens. The change has been tested and it works. - ("^\\([a-zA-Z0-9]+\\)\\(\([a-zA-Z0-9]+\)\\):" + ("^\\([a-zA-Z0-9]+\\)\\(\([a-zA-Z0-9,]+\)\\):" Patch is attached
Created attachment 38684 [details] Tested patch to fix problem
I've mailed the author about it, and I'll wait for his comments before applying it.
It's been added to rpm-spec-mode for emacs-21.1-1