diff options
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 656bf8485e9..3c27b51dfdf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-09-03 Christoph Scholtes <cschol2112@googlemail.com> | ||
| 2 | |||
| 3 | * progmodes/python.el (python-mode-map): Use correct function to | ||
| 4 | start python interpreter from menu-bar (as reported by Geert | ||
| 5 | Kloosterman). | ||
| 6 | (inferior-python-mode-map): Fix typo. | ||
| 7 | (python-shell-map): Removed. | ||
| 8 | |||
| 1 | 2011-09-03 Deniz Dogan <deniz@dogan.se> | 9 | 2011-09-03 Deniz Dogan <deniz@dogan.se> |
| 2 | 10 | ||
| 3 | * net/rcirc.el (rcirc-print): Simplify code for | 11 | * net/rcirc.el (rcirc-print): Simplify code for |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 4d2f15c69d8..3f923f496b9 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -296,7 +296,7 @@ Used for syntactic keywords. N is the match number (1, 2 or 3)." | |||
| 296 | :filter (lambda (&rest junk) | 296 | :filter (lambda (&rest junk) |
| 297 | (abbrev-table-menu python-mode-abbrev-table))) | 297 | (abbrev-table-menu python-mode-abbrev-table))) |
| 298 | "-" | 298 | "-" |
| 299 | ["Start interpreter" python-shell | 299 | ["Start interpreter" run-python |
| 300 | :help "Run `inferior' Python in separate buffer"] | 300 | :help "Run `inferior' Python in separate buffer"] |
| 301 | ["Import/reload file" python-load-file | 301 | ["Import/reload file" python-load-file |
| 302 | :help "Load into inferior Python session"] | 302 | :help "Load into inferior Python session"] |
| @@ -328,14 +328,6 @@ Used for syntactic keywords. N is the match number (1, 2 or 3)." | |||
| 328 | ;; eric has items including: (un)indent, (un)comment, restart script, | 328 | ;; eric has items including: (un)indent, (un)comment, restart script, |
| 329 | ;; run script, debug script; also things for profiling, unit testing. | 329 | ;; run script, debug script; also things for profiling, unit testing. |
| 330 | 330 | ||
| 331 | (defvar python-shell-map | ||
| 332 | (let ((map (copy-keymap comint-mode-map))) | ||
| 333 | (define-key map [tab] 'tab-to-tab-stop) | ||
| 334 | (define-key map "\C-c-" 'py-up-exception) | ||
| 335 | (define-key map "\C-c=" 'py-down-exception) | ||
| 336 | map) | ||
| 337 | "Keymap used in *Python* shell buffers.") | ||
| 338 | |||
| 339 | (defvar python-mode-syntax-table | 331 | (defvar python-mode-syntax-table |
| 340 | (let ((table (make-syntax-table))) | 332 | (let ((table (make-syntax-table))) |
| 341 | ;; Give punctuation syntax to ASCII that normally has symbol | 333 | ;; Give punctuation syntax to ASCII that normally has symbol |
| @@ -1345,7 +1337,7 @@ local value.") | |||
| 1345 | (define-key map "\C-c\C-l" 'python-load-file) | 1337 | (define-key map "\C-c\C-l" 'python-load-file) |
| 1346 | (define-key map "\C-c\C-v" 'python-check) | 1338 | (define-key map "\C-c\C-v" 'python-check) |
| 1347 | ;; Note that we _can_ still use these commands which send to the | 1339 | ;; Note that we _can_ still use these commands which send to the |
| 1348 | ;; Python process even at the prompt iff we have a normal prompt, | 1340 | ;; Python process even at the prompt if we have a normal prompt, |
| 1349 | ;; i.e. '>>> ' and not '... '. See the comment before | 1341 | ;; i.e. '>>> ' and not '... '. See the comment before |
| 1350 | ;; python-send-region. Fixme: uncomment these if we address that. | 1342 | ;; python-send-region. Fixme: uncomment these if we address that. |
| 1351 | 1343 | ||