aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/perl-mode.el
diff options
context:
space:
mode:
authorDan Nicolaescu <[email protected]>2007-08-25 21:29:48 +0000
committerDan Nicolaescu <[email protected]>2007-08-25 21:29:48 +0000
commitf152a8982d18caf558a53019134ba899ecb73c4f (patch)
treeef286ac44601b2bcce83459d7327901c063e5736 /lisp/progmodes/perl-mode.el
parent8837a213a2a7212fb99a31d49ff8da131bc69be1 (diff)
* progmodes/cperl-mode.el (cperl-indent-level): Autoload the
safe-local-variable setting. * progmodes/perl-mode.el (perl-indent-level): Likewise.
Diffstat (limited to 'lisp/progmodes/perl-mode.el')
-rw-r--r--lisp/progmodes/perl-mode.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el
index f2feff595b..809ed7a9f3 100644
--- a/lisp/progmodes/perl-mode.el
+++ b/lisp/progmodes/perl-mode.el
@@ -399,7 +399,14 @@ The expansion is entirely correct because it uses the C preprocessor."
"*Indentation of Perl statements with respect to containing block."
:type 'integer
:group 'perl)
-(put 'perl-indent-level 'safe-local-variable 'integerp)
+
+;; Is is not unusual to put both perl-indent-level and
+;; cperl-indent-level in the local variable section of a file. If only
+;; one of perl-mode and cperl-mode is in use, a warning will be issued
+;; about the variable. Autoload this here, so that no warning is
+;; issued when using either perl-mode or cperl-mode.
+;;;###autoload(put 'perl-indent-level 'safe-local-variable 'integerp)
+
(defcustom perl-continued-statement-offset 4
"*Extra indent for lines not starting new statements."
:type 'integer