Created attachment 319972 [details] emacs-rpm-mode-field.patch Description of problem: Here is a small patch to rpm-spec-mode to make it look for fields at the beginnings of lines. Otherwise it may catch macro definitions with the field name in them instead of the actual field. Steps to Reproduce: 1. Open ibus.spec from fedora package cvs 2. Add a changelog entry (C-c C-e) Actual results: * Fri Oct 10 2008 Joe Packager <packager> - %define gtk_binary_version %(pkg-config --variable=gtk_binary_version gtk+-2.0)}-4 - Expected results: * Fri Oct 10 2008 Joe Packager <packager> - 0.1.1.20081006-4 - Additional info: I sent this patch upstream to scop too already but cc'ing him here too if he has comments.
The patch is good, and applied now in XEmacs CVS, along with a similar fix to rpm-increase-release-with-macros (rpm-spec-mode-version 0.12.2x).
Should get fixed in emacs-22.3-1.fc11.