Mercurial > emacs
comparison lisp/progmodes/python.el @ 55495:4e81c5df6c36
(inferior-python-mode-map): Remove erroneous C-c C-z binding.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Mon, 10 May 2004 15:32:01 +0000 |
| parents | f1b7359315f0 |
| children | 5dbde1bf6cad |
comparison
equal
deleted
inserted
replaced
| 55494:510785c43ed0 | 55495:4e81c5df6c36 |
|---|---|
| 295 (/= 0 (syntax-ppss-depth | 295 (/= 0 (syntax-ppss-depth |
| 296 (save-excursion ; syntax-ppss with arg changes point | 296 (save-excursion ; syntax-ppss with arg changes point |
| 297 (syntax-ppss (line-beginning-position))))))) | 297 (syntax-ppss (line-beginning-position))))))) |
| 298 | 298 |
| 299 (defun python-comment-line-p () | 299 (defun python-comment-line-p () |
| 300 "Return non-nil if current line has only a comment or is blank." | 300 "Return non-nil iff current line has only a comment." |
| 301 (save-excursion | 301 (save-excursion |
| 302 (end-of-line) | 302 (end-of-line) |
| 303 ;; FIXME: This looks wrong because it returns nil for empty lines. --Stef | |
| 304 (when (eq 'comment (syntax-ppss-context (syntax-ppss))) | 303 (when (eq 'comment (syntax-ppss-context (syntax-ppss))) |
| 305 (back-to-indentation) | 304 (back-to-indentation) |
| 306 (looking-at (rx (or (syntax comment-start) line-end)))))) | 305 (looking-at (rx (or (syntax comment-start) line-end)))))) |
| 307 | 306 |
| 308 (defun python-beginning-of-string () | 307 (defun python-beginning-of-string () |
| 1023 | 1022 |
| 1024 (defvar inferior-python-mode-map | 1023 (defvar inferior-python-mode-map |
| 1025 (let ((map (make-sparse-keymap))) | 1024 (let ((map (make-sparse-keymap))) |
| 1026 ;; This will inherit from comint-mode-map. | 1025 ;; This will inherit from comint-mode-map. |
| 1027 (define-key map "\C-c\C-l" 'python-load-file) | 1026 (define-key map "\C-c\C-l" 'python-load-file) |
| 1028 (define-key map "\C-c\C-z" 'python-switch-to-python) ;What for? --Stef | |
| 1029 (define-key map "\C-c\C-v" 'python-check) | 1027 (define-key map "\C-c\C-v" 'python-check) |
| 1030 ;; Note that we _can_ still use these commands which send to the | 1028 ;; Note that we _can_ still use these commands which send to the |
| 1031 ;; Python process even at the prompt iff we have a normal prompt, | 1029 ;; Python process even at the prompt iff we have a normal prompt, |
| 1032 ;; i.e. '>>> ' and not '... '. See the comment before | 1030 ;; i.e. '>>> ' and not '... '. See the comment before |
| 1033 ;; python-send-region. Fixme: uncomment these if we address that. | 1031 ;; python-send-region. Fixme: uncomment these if we address that. |
