diff options
| author | André Spiegel | 2005-05-24 20:03:58 +0000 |
|---|---|---|
| committer | André Spiegel | 2005-05-24 20:03:58 +0000 |
| commit | e1a5828f2e8c151804a00360fc975c6bb20b942f (patch) | |
| tree | 29754c1d5d8261fe3a3620504911754e2c68c0bf /lisp | |
| parent | 86270ecfb5c5d8e7d436a1012405ecc4078e9c0e (diff) | |
| download | emacs-e1a5828f2e8c151804a00360fc975c6bb20b942f.tar.gz emacs-e1a5828f2e8c151804a00360fc975c6bb20b942f.zip | |
(cperl-vc-header-alist): Obsoleted.
(cperl-vc-rcs-header, cperl-vc-sccs-header): New user options.
(cperl-mode): Use them.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 436bc04d044..4abd8123e6a 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -342,10 +342,19 @@ Affects: `cperl-font-lock', `cperl-electric-lbrace-space', | |||
| 342 | :type 'integer | 342 | :type 'integer |
| 343 | :group 'cperl-indentation-details) | 343 | :group 'cperl-indentation-details) |
| 344 | 344 | ||
| 345 | (defcustom cperl-vc-header-alist '((SCCS "($sccs) = ('%W\%' =~ /(\\d+(\\.\\d+)+)/) ;") | 345 | (defvar cperl-vc-header-alist nil) |
| 346 | (RCS "($rcs) = (' $Id\$ ' =~ /(\\d+(\\.\\d+)+)/) ;")) | 346 | (make-obsolete-variable |
| 347 | "*What to use as `vc-header-alist' in CPerl." | 347 | 'cperl-vc-header-alist |
| 348 | :type '(repeat (list symbol string)) | 348 | "use cperl-vc-rcs-header or cperl-vc-sccs-header instead.") |
| 349 | |||
| 350 | (defcustom cperl-vc-sccs-header '("($sccs) = ('%W\%' =~ /(\\d+(\\.\\d+)+)/) ;") | ||
| 351 | "*Special version of `vc-sccs-header' that is used in CPerl mode buffers." | ||
| 352 | :type '(repeat string) | ||
| 353 | :group 'cperl) | ||
| 354 | |||
| 355 | (defcustom cperl-vc-rcs-header '("($rcs) = (' $Id\$ ' =~ /(\\d+(\\.\\d+)+)/) ;") | ||
| 356 | "*Special version of `vc-rcs-header' that is used in CPerl mode buffers." | ||
| 357 | :type '(repeat string) | ||
| 349 | :group 'cperl) | 358 | :group 'cperl) |
| 350 | 359 | ||
| 351 | (defcustom cperl-clobber-mode-lists | 360 | (defcustom cperl-clobber-mode-lists |
| @@ -1485,8 +1494,10 @@ or as help on variables `cperl-tips', `cperl-problems', | |||
| 1485 | (function cperl-imenu--create-perl-index)) | 1494 | (function cperl-imenu--create-perl-index)) |
| 1486 | (make-local-variable 'imenu-sort-function) | 1495 | (make-local-variable 'imenu-sort-function) |
| 1487 | (setq imenu-sort-function nil) | 1496 | (setq imenu-sort-function nil) |
| 1488 | (make-local-variable 'vc-header-alist) | 1497 | (make-local-variable 'vc-rcs-header) |
| 1489 | (set 'vc-header-alist cperl-vc-header-alist) ; Avoid warning | 1498 | (set 'vc-rcs-header cperl-vc-rcs-header) |
| 1499 | (make-local-variable 'vc-sccs-header) | ||
| 1500 | (set 'vc-sccs-header cperl-vc-sccs-header) | ||
| 1490 | (make-local-variable 'font-lock-defaults) | 1501 | (make-local-variable 'font-lock-defaults) |
| 1491 | (setq font-lock-defaults | 1502 | (setq font-lock-defaults |
| 1492 | (cond | 1503 | (cond |