diff options
author | Barry Warsaw <barry@python.org> | 2002-04-30 18:58:52 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-04-30 18:58:52 (GMT) |
commit | 5dfc7afff93d99f986250f1b3f865f87cfde3aa6 (patch) | |
tree | 3b659953eb236b41551a2e45290090b2110b1f2f /Misc/python-mode.el | |
parent | d2681830441d26313aff06a6e548cafe35cc6f05 (diff) | |
download | cpython-5dfc7afff93d99f986250f1b3f865f87cfde3aa6.zip cpython-5dfc7afff93d99f986250f1b3f865f87cfde3aa6.tar.gz cpython-5dfc7afff93d99f986250f1b3f865f87cfde3aa6.tar.bz2 |
Watch out for older XEmacsen for which requiring info-look doesn't
define info-lookup-maybe-add-help.
Diffstat (limited to 'Misc/python-mode.el')
-rw-r--r-- | Misc/python-mode.el | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 9e78579..b242f3b 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -3123,14 +3123,17 @@ to newline-and-indent in the global keymap, and shadows them with local bindings to py-newline-and-indent.")) (require 'info-look) -(info-lookup-maybe-add-help - :mode 'python-mode - :regexp "[a-zA-Z0-9_]+" - :doc-spec '(("(python-lib)Module Index") - ("(python-lib)Class-Exception-Object Index") - ("(python-lib)Function-Method-Variable Index") - ("(python-lib)Miscellaneous Index"))) - +;; The info-look package does not always provide this function (it +;; appears this is the case with XEmacs 21.1) +(when (fboundp 'info-lookup-maybe-add-help) + (info-lookup-maybe-add-help + :mode 'python-mode + :regexp "[a-zA-Z0-9_]+" + :doc-spec '(("(python-lib)Module Index") + ("(python-lib)Class-Exception-Object Index") + ("(python-lib)Function-Method-Variable Index") + ("(python-lib)Miscellaneous Index"))) + ) ;; Helper functions |