Mailing List Archive

python/dist/src/Misc python-mode.el,4.13,4.14
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv8439

Modified Files:
python-mode.el
Log Message:
(py-shell-hook): A new hook variable, run at the end of py-shell.
Allows for some customization of the underlying comint buffer.

(py-shell): Call the new hook.

(info-lookup-maybe-add-help): A new call suggested by Milan Zamazal to
make lookups in the Info documentation easier.


Index: python-mode.el
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/python-mode.el,v
retrieving revision 4.13
retrieving revision 4.14
diff -C2 -d -r4.13 -r4.14
*** python-mode.el 22 Apr 2002 22:05:49 -0000 4.13
--- python-mode.el 25 Apr 2002 15:44:17 -0000 4.14
***************
*** 470,473 ****
--- 470,476 ----
"*Hook called by `python-mode'.")

+ (defvar py-shell-hook nil
+ "*Hook called by `py-shell'.")
+
;; In previous version of python-mode.el, the hook was incorrectly
;; called py-mode-hook, and was not defvar'd. Deprecate its use.
***************
*** 1337,1340 ****
--- 1340,1344 ----
(set-syntax-table py-mode-syntax-table)
(use-local-map py-shell-map)
+ (run-hooks 'py-shell-hook)
))

***************
*** 2996,2999 ****
--- 3000,3013 ----
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")))
+