Red Hat Bugzilla – Bug 466407
patch rpm-spec-mode.el to look only for fields at beginning of line
Last modified: 2008-11-10 22:54:42 EST
Created attachment 319972 [details]
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)
* Fri Oct 10 2008 Joe Packager <email@example.com> - %define gtk_binary_version %(pkg-config --variable=gtk_binary_version gtk+-2.0)}-4
* Fri Oct 10 2008 Joe Packager <firstname.lastname@example.org> - 0.1.1.20081006-4
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.