| Summary: | rpm-spec-mode does unwanted insertions in an empty file | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
| Component: | emacs-prog-modes | Assignee: | 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 | ||
M-x package-install <RET> rpm-spec-mode <RET> |
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.