Bug 29672

Summary: rpm-spec-mode does unwanted insertions in an empty file
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: emacs-prog-modesAssignee: Evgenii Terechkov <evg>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: cas, eugvv, evg, msp, sbolshakov, viy
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2013-12-28 00:27:28 MSK
emacs-prog-modes-0.2-alt4

I've discovered this when calling emerge on spec files (from git mergetool).

For some reason, it starts rpm-spec-mode in an empty buffer with the spec file, and rpm-spec-mode does some unwanted insertions by calling rpm-spec-initialize:

  (if (= (buffer-size) 0)
      (rpm-spec-initialize))

It would be more convenient, if rpm-spec-initialize would be called with a user's command only.

Quick workaround: get rid of automatic rpm-spec-mode.
Comment 1 Evgenii Terechkov 2014-01-03 13:55:54 MSK
M-x package-install <RET> rpm-spec-mode <RET>