diff options
| author | Harald Jörg | 2023-10-24 17:54:39 +0200 |
|---|---|---|
| committer | Harald Jörg | 2023-10-24 17:54:39 +0200 |
| commit | 522a74d60a915ca9e922ad42dedc19d9f72e3ae5 (patch) | |
| tree | d9336cdb24c3132438530feac60f6f6063221c32 | |
| parent | 87b8a9da0158e5cfcc0193937fc7c308f623790d (diff) | |
| download | emacs-522a74d60a915ca9e922ad42dedc19d9f72e3ae5.tar.gz emacs-522a74d60a915ca9e922ad42dedc19d9f72e3ae5.zip | |
; cperl-mode.el: Remove functions using mode-compile.el
mode-compile.el is no longer available from any maintained repository,
its archived version does not work since Emacs 27. The menu options
tested for availability of mode-compile and therefore were disabled,
the function was not documented.
* lisp/progmodes/cperl-mode.el (cperl-tips): Remove reference to
mode-compile.el.
(cperl-menu): Remove defunct entries requiring mode-compile.
(cperl-check-syntax): Remove function.
(cperl-extra-perl-args): Remove user option only used by cperl-check-syntax.
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index d525b069407..807927aa86d 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -473,12 +473,6 @@ If nil, the value of `cperl-indent-level' will be used." | |||
| 473 | :group 'cperl) | 473 | :group 'cperl) |
| 474 | (make-obsolete-variable 'cperl-under-as-char 'superword-mode "24.4") | 474 | (make-obsolete-variable 'cperl-under-as-char 'superword-mode "24.4") |
| 475 | 475 | ||
| 476 | (defcustom cperl-extra-perl-args "" | ||
| 477 | "Extra arguments to use when starting Perl. | ||
| 478 | Currently used with `cperl-check-syntax' only." | ||
| 479 | :type 'string | ||
| 480 | :group 'cperl) | ||
| 481 | |||
| 482 | (defcustom cperl-message-electric-keyword t | 476 | (defcustom cperl-message-electric-keyword t |
| 483 | "Non-nil means that the `cperl-electric-keyword' prints a help message." | 477 | "Non-nil means that the `cperl-electric-keyword' prints a help message." |
| 484 | :type 'boolean | 478 | :type 'boolean |
| @@ -631,10 +625,7 @@ imenu entries." | |||
| 631 | ;;; Short extra-docs. | 625 | ;;; Short extra-docs. |
| 632 | 626 | ||
| 633 | (defvar cperl-tips 'please-ignore-this-line | 627 | (defvar cperl-tips 'please-ignore-this-line |
| 634 | "Note that to enable Compile choices in the menu you need to install | 628 | "If your Emacs does not default to `cperl-mode' on Perl files, and you |
| 635 | mode-compile.el. | ||
| 636 | |||
| 637 | If your Emacs does not default to `cperl-mode' on Perl files, and you | ||
| 638 | want it to: put the following into your .emacs file: | 629 | want it to: put the following into your .emacs file: |
| 639 | 630 | ||
| 640 | (add-to-list \\='major-mode-remap-alist \\='(perl-mode . cperl-mode)) | 631 | (add-to-list \\='major-mode-remap-alist \\='(perl-mode . cperl-mode)) |
| @@ -1056,12 +1047,6 @@ Unless KEEP, removes the old indentation." | |||
| 1056 | ["Comment region" cperl-comment-region (use-region-p)] | 1047 | ["Comment region" cperl-comment-region (use-region-p)] |
| 1057 | ["Uncomment region" cperl-uncomment-region (use-region-p)] | 1048 | ["Uncomment region" cperl-uncomment-region (use-region-p)] |
| 1058 | "----" | 1049 | "----" |
| 1059 | ["Run" mode-compile (fboundp 'mode-compile)] | ||
| 1060 | ["Kill" mode-compile-kill (and (fboundp 'mode-compile-kill) | ||
| 1061 | (get-buffer "*compilation*"))] | ||
| 1062 | ["Next error" next-error (get-buffer "*compilation*")] | ||
| 1063 | ["Check syntax" cperl-check-syntax (fboundp 'mode-compile)] | ||
| 1064 | "----" | ||
| 1065 | ["Debugger" cperl-db t] | 1050 | ["Debugger" cperl-db t] |
| 1066 | "----" | 1051 | "----" |
| 1067 | ("Tools" | 1052 | ("Tools" |
| @@ -6561,13 +6546,6 @@ side-effect of memorizing only. Examples in `cperl-style-examples'." | |||
| 6561 | cperl-old-style (cdr cperl-old-style)) | 6546 | cperl-old-style (cdr cperl-old-style)) |
| 6562 | (set (car setting) (cdr setting))))) | 6547 | (set (car setting) (cdr setting))))) |
| 6563 | 6548 | ||
| 6564 | (defvar perl-dbg-flags) | ||
| 6565 | (defun cperl-check-syntax () | ||
| 6566 | (interactive) | ||
| 6567 | (require 'mode-compile) | ||
| 6568 | (let ((perl-dbg-flags (concat cperl-extra-perl-args " -wc"))) | ||
| 6569 | (eval '(mode-compile)))) ; Avoid a warning | ||
| 6570 | |||
| 6571 | (declare-function Info-find-node "info" | 6549 | (declare-function Info-find-node "info" |
| 6572 | (filename nodename &optional no-going-back strict-case | 6550 | (filename nodename &optional no-going-back strict-case |
| 6573 | noerror)) | 6551 | noerror)) |