Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a67bb7ea
Commit
a67bb7ea
authored
Nov 10, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python-mode-hook instead of py-mode-hook
parent
f34cadda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
Misc/python-mode-old.el
Misc/python-mode-old.el
+13
-4
No files found.
Misc/python-mode-old.el
View file @
a67bb7ea
;;; Major mode for editing Python programs, version 1.
09
;;; Major mode for editing Python programs, version 1.
10
;; by: Tim Peters <tim@ksr.com>
;; after an original idea by: Michael A. Guravage
;;
...
...
@@ -128,6 +128,12 @@ Currently-active file is at the head of the list.")
(
setq
py-inherited-kill-emacs-hook
kill-emacs-hook
)
(
setq
kill-emacs-hook
'py-kill-emacs-hook
)))
(
defvar
python-mode-hook
nil
"*Hook called by `python-mode'."
)
(
and
(
fboundp
'make-obsolete-variable
)
(
make-obsolete-variable
'py-mode-hook
'python-mode-hook
))
(
defvar
py-beep-if-tab-change
t
"*Ring the bell if tab-width is changed.
If a comment of the form
...
...
@@ -273,7 +279,9 @@ py-beep-if-tab-change\tring the bell if tab-width is changed"
(
if
py-beep-if-tab-change
(
beep
)))))
(
goto-char
start
))
(
run-hooks
'py-mode-hook
))
(
if
python-mode-hook
(
run-hooks
'python-mode-hook
)
(
run-hooks
'py-mode-hook
)))
;;; Functions that execute Python commands in a subprocess
...
...
@@ -1409,8 +1417,9 @@ CONTROL), press and release `n' (while still holding down CONTROL), &
then release CONTROL.
Entering Python mode calls with no arguments the value of the variable
`py-mode-hook', if that value exists and is not nil; see the `Hooks'
section of the Elisp manual for details.
`python-mode-hook', if that value exists and is not nil; for backward
compatibility it also tries `py-mode-hook'; see the `Hooks' section of
the Elisp manual for details.
Obscure: When python-mode is first loaded, it looks for all bindings
to newline-and-indent in the global keymap, and shadows them with
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment