]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't check if autoloaded functions are fboundp
authorStefan Kangas <stefankangas@gmail.com>
Wed, 17 Aug 2022 13:47:13 +0000 (15:47 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 17 Aug 2022 13:48:43 +0000 (15:48 +0200)
* lisp/progmodes/cperl-mode.el (cperl-menu, cperl-init-faces):
Assume some autoloaded ps-print.el functions are always there.

lisp/progmodes/cperl-mode.el

index 91c00ad048831d5865d57fe7633e67b7209451b4..6e398555277041543857c0e88b8f77e4a874da7e 100644 (file)
@@ -1118,8 +1118,7 @@ Unless KEEP, removes the old indentation."
               (get-text-property (point) 'syntax-type))
             '(here-doc pod))]
      "----"
-     ["CPerl pretty print (experimental)" cperl-ps-print
-      (fboundp 'ps-extend-face-list)]
+     ["CPerl pretty print (experimental)" cperl-ps-print]
      "----"
      ["Syntaxify region" cperl-find-pods-heres-region
       (use-region-p)]
@@ -1153,6 +1152,8 @@ Unless KEEP, removes the old indentation."
        (cperl-write-tags nil nil t t) t]))
     ("Perl docs"
      ["Define word at point" imenu-go-find-at-position
+      ;; This is from imenu-go.el.  I can't find it on any ELPA
+      ;; archive, so I'm not sure if it's still in use or not.
       (fboundp 'imenu-go-find-at-position)]
      ["Help on function" cperl-info-on-command t]
      ["Help on function at point" cperl-info-on-current-command t]
@@ -6030,7 +6031,7 @@ default function."
                cperl-font-lock-keywords-2 (append
                                           t-font-lock-keywords-1
                                           cperl-font-lock-keywords-1)))
-       (if (fboundp 'ps-print-buffer) (cperl-ps-print-init))
+        (cperl-ps-print-init)
        (setq cperl-faces-init t))
     (error (message "cperl-init-faces (ignored): %s" errs))))