On Dec 18, 2006, at 1:57 AM, Paul Cochrane wrote:

Be aware that you cannot use the verbose form of Emacs settings at
the beginning of a file, unless the file is shorter than 3000 bytes.
See Perl::Critic::Policy::Editor::RequireEmacsFileVariables policy
for more details:

So this means we need to put the emacs and vim settings at the end of
the file.

No, it means that if you want to use the verbose form of Emacs file variables, then it has to be at the end of the file.

Vim sets a similar restriction in that its settings should
be in the first or last 5 lines.  The problem that I'm trying to solve
here is: how do we add the settings information to perl language files
such that it doesn't cause problems with __END__ and __DATA__ blocks,
is testable by perlcritic, emacs *and* vim pick up their settings
values, and it doesn't interfere with the visual structure of the
file.  I've hit a bit of a brick wall in trying to satisfy all these
conditions; any ideas as to how we can achieve this?

Not really...  The only elegany approach is:
   # -*- parrot -*-
and insist that parrot-mode.el be installed. That may annoy some people, but I don't see another way without crufting up the top of the file or requiring that you de-cruft <DATA> everywhere.

Chris

--
Chris Dolan, Software Developer, http://www.chrisdolan.net/
Public key: http://www.chrisdolan.net/public.key
vCard: http://www.chrisdolan.net/ChrisDolan.vcf



Reply via email to