Changeset 38326


Ignore:
Timestamp:
Jul 15, 2008, 10:05:30 PM (11 years ago)
Author:
simon@…
Message:

doc-new: Fixed description of use of modeline, closes #15406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/guide/xml/portfiledev.xml

    r37464 r38326  
    8989    <orderedlist>
    9090      <listitem>
     91        <para>Modeline</para>
     92
     93        <para>This should be the first line of a Portfile. It sets the correct
     94        editing options for vim and emacs. See <link
     95        linkend="development.practices.portstyle">Port Style</link> for more
     96        information. Its use is optional and up to the port maintainer.</para>
     97
     98        <programlisting># -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4</programlisting>
     99      </listitem>
     100
     101      <listitem>
    91102        <para>Subversion ID tag line</para>
    92103
    93         <para>The first line of a new Portfile must be set as shown. When a
    94         port is committed to subversion, ID tags are expanded to include the
    95         last person to commit and the commit time.</para>
     104        <para>This must be the second line (or if the modeline is not used the
     105        first) in a Portfile. When a port is committed to subversion, ID tags
     106        are expanded to include the last person to commit and the commit
     107        time.</para>
    96108
    97109        <programlisting># $Id$</programlisting>
Note: See TracChangeset for help on using the changeset viewer.