<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>29672</bug_id>
          
          <creation_ts>2013-12-28 00:27:28 +0400</creation_ts>
          <short_desc>rpm-spec-mode does unwanted insertions in an empty file</short_desc>
          <delta_ts>2014-01-03 13:55:54 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>emacs-prog-modes</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Evgenii Terechkov">evg</assigned_to>
          <cc>cas</cc>
    
    <cc>eugvv</cc>
    
    <cc>evg</cc>
    
    <cc>msp</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>144398</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2013-12-28 00:27:28 +0400</bug_when>
    <thetext>emacs-prog-modes-0.2-alt4

I&apos;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&apos;s command only.

Quick workaround: get rid of automatic rpm-spec-mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144435</commentid>
    <comment_count>1</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2014-01-03 13:55:54 +0400</bug_when>
    <thetext>M-x package-install &lt;RET&gt; rpm-spec-mode &lt;RET&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>