Mercurial > emacs
changeset 82847:a22a8a63b26d
* progmodes/cperl-mode.el (cperl-indent-level): Autoload the
safe-local-variable setting.
* progmodes/perl-mode.el (perl-indent-level): Likewise.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Sat, 25 Aug 2007 20:14:54 +0000 |
parents | 6aa3ccf8fedc |
children | 2e4d7d4e0f88 |
files | lisp/ChangeLog lisp/progmodes/cperl-mode.el lisp/progmodes/perl-mode.el |
diffstat | 3 files changed, 19 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sat Aug 25 20:12:48 2007 +0000 +++ b/lisp/ChangeLog Sat Aug 25 20:14:54 2007 +0000 @@ -1,5 +1,9 @@ 2007-08-25 Dan Nicolaescu <dann@ics.uci.edu> + * progmodes/cperl-mode.el (cperl-indent-level): Autoload the + safe-local-variable setting. + * progmodes/perl-mode.el (perl-indent-level): Likewise. + * log-view.el (log-view-marked-list): Delete variable. (log-view-mode): Don't use it. (log-view-toggle-mark-entry): Likewise, simplify.
--- a/lisp/progmodes/cperl-mode.el Sat Aug 25 20:12:48 2007 +0000 +++ b/lisp/progmodes/cperl-mode.el Sat Aug 25 20:14:54 2007 +0000 @@ -233,7 +233,13 @@ "*Indentation of CPerl statements with respect to containing block." :type 'integer :group 'cperl-indentation-details) -(put 'cperl-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 'cperl-indent-level 'safe-local-variable 'integerp) (defcustom cperl-lineup-step nil "*`cperl-lineup' will always lineup at multiple of this number.
--- a/lisp/progmodes/perl-mode.el Sat Aug 25 20:12:48 2007 +0000 +++ b/lisp/progmodes/perl-mode.el Sat Aug 25 20:14:54 2007 +0000 @@ -399,7 +399,14 @@ "*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