Bug 29672 - rpm-spec-mode does unwanted insertions in an empty file
Summary: rpm-spec-mode does unwanted insertions in an empty file
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: emacs-prog-modes (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Evgenii Terechkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-28 00:27 MSK by Ivan Zakharyaschev
Modified: 2014-01-03 13:55 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>