Subject: Developers of Sympa
List archive
- From: IKEDA Soji <address@concealed>
- To: address@concealed
- Subject: [sympa-developpers] Modeline and $Id: ...$ line
- Date: Sun, 20 Oct 2013 11:57:38 +0900
Hi all,
Guillaume developped modeline for vi (vim) and emacs.
It may be revised according to currently suggested ~/.perltidyrc.
As a result, beginning of each file will be composed as below:
-------------------- >8 -------------------- >8 --------------------
#!--PERL--
# -*- indent-tabs-mode: nil; -*-
# vim:ft=perl:et:sw=4:textwidth=78:ts=8
# $Id$
# Sympa - SYsteme de Multi-Postage Automatique
<<Omitted below>>
-------------------- 8< -------------------- 8< --------------------
(Note: #! line will be omitted in module (*.pm) files.)
I'll make two proposal.
1. Modelines would be removed.
- It can support limited number of editors.
E.g.: Someone can wish the line for jEdit to be added.
- Programmers can "revise" them.
E.g.: I hesitated to or not to add "fenc=utf-8" into vim
line for a short time; someone can try to add complete settings
for cperl-mode (and perl-mode) on emacs.
We might rather present recommended configurations of editors
(Appendix C of PBP shows some examples) on developer page and remove
this line.
2. $Id$ line would be removed or replaced with the equivalents on git.
On git, "$Id$" will be replaced by hash of each file. Approximately
equivalent one to Subversion/CVS will be "$Format: %f %h %ci %cn$"
(export-subst have to be enabled: See section 7.2 in
<http://git-scm.com/book/>).
Or, this line would be simply removed.
Comments?
Regards,
--- Soji
-
[sympa-developpers] Modeline and $Id: ...$ line,
IKEDA Soji, 10/20/2013
- Re: [sympa-developpers] Modeline and $Id: ...$ line, Guillaume Rousse, 10/21/2013
Archive powered by MHonArc 2.6.19+.