From: Stefan Monnier Date: Mon, 10 May 2004 15:32:01 +0000 (+0000) Subject: (inferior-python-mode-map): Remove erroneous C-c C-z binding. X-Git-Tag: ttn-vms-21-2-B4~6305 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=07c7712faed245a890cbc089be0a71fd4262addd;p=emacs.git (inferior-python-mode-map): Remove erroneous C-c C-z binding. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 214b6f0e24c..369b479066c 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -297,10 +297,9 @@ comments and strings, or that the bracket/paren nesting depth is nonzero." (syntax-ppss (line-beginning-position))))))) (defun python-comment-line-p () - "Return non-nil if current line has only a comment or is blank." + "Return non-nil iff current line has only a comment." (save-excursion (end-of-line) - ;; FIXME: This looks wrong because it returns nil for empty lines. --Stef (when (eq 'comment (syntax-ppss-context (syntax-ppss))) (back-to-indentation) (looking-at (rx (or (syntax comment-start) line-end)))))) @@ -1025,7 +1024,6 @@ et al.") (let ((map (make-sparse-keymap))) ;; This will inherit from comint-mode-map. (define-key map "\C-c\C-l" 'python-load-file) - (define-key map "\C-c\C-z" 'python-switch-to-python) ;What for? --Stef (define-key map "\C-c\C-v" 'python-check) ;; Note that we _can_ still use these commands which send to the ;; Python process even at the prompt iff we have a normal prompt,