[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does cperl-mode slaughter my formatting?
From: |
Joe Casadonte |
Subject: |
Re: Why does cperl-mode slaughter my formatting? |
Date: |
01 Feb 2003 23:51:15 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
On Sat, 01 Feb 2003, Harry Putnam wrote:
> Do we have the same version?
> C-h v <RET> cperl-version<RET>
> cperl-version's value is "4.32"
>
> Version of IZ-supported CPerl package this file is based on.
I have that version and indenting for me looks OK:
open(FILE, "<./rcfile");
while (<FILE>) {
if (/^<DIR>/) {
$save_dir = 'TRUE';
}
if (/^<\/DIR>/) {
$save_dir = "";
}
if ($save_dir) {
push @directories,$_;
}
if (/^<HEADER_RE>/) {
$save_hre = "TRUE";
}
if (/^<\/HEADER_RE>/) {
$save_hre = "";
}
if ($save_hre) {
push @header_re,$_;
}
if (/^<BODY_RE>/) {
$save_bre = "TRUE";
}
if (/^<\/BODY_RE>/) {
$save_bre = "";
}
if ($save_bre) {
push @body_re,$_;
}
}
The only cperl indentation customization that I have that is not at
the standard setting is:
Cperl Continued Statement Offset: 4
I do have every "electric" & "hairy" option turned off, when possible.
In fact, outside of the font-lock stuff, I would love to turn ALL of
cperl off -- it can be quite annoying at times.....
--
Regards,
joe
Joe Casadonte
jcasadonte@northbound-train.com
------------------------------------------------------------------------------
Llama Fresh Farms => http://www.northbound-train.com
Gay Media Resource List => http://www.northbound-train.com/gaymedia.html
Perl for Win32 => http://www.northbound-train.com/perlwin32.html
Emacs Stuff => http://www.northbound-train.com/emacs.html
Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
Live Free, that's the message!
------------------------------------------------------------------------------