]> git.eshelyaron.com Git - emacs.git/commitdiff
python.el: Don't change `comint-prompt-read-only' globally
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Tue, 9 Dec 2014 01:19:37 +0000 (22:19 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Tue, 9 Dec 2014 01:19:37 +0000 (22:19 -0300)
Fixes: debbugs:19288
* lisp/progmodes/python.el (inferior-python-mode): Set
`comint-prompt-read-only` to `t` only locally.

lisp/ChangeLog
lisp/progmodes/python.el

index 2669e07cd158afe7b671668fe721c3de8769a056..df057ac1070791ffa667d642d75f09bb3587d7e9 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-09  Fabián Ezequiel Gallina  <fgallina@gnu.org>
+
+       * progmodes/python.el (inferior-python-mode): Set
+       `comint-prompt-read-only` to `t` only locally.
+
 2014-12-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * net/nsm.el (nsm-check-protocol): Test for RC4 on `high'.
index 33c822a37d5f6d40e21d13668104990bb6ee74b7..63597d5f75a83967f21fed8d65269d713ef5d758 100644 (file)
@@ -2441,8 +2441,8 @@ variable.
   (set (make-local-variable 'python-shell--prompt-calculated-input-regexp) nil)
   (set (make-local-variable 'python-shell--prompt-calculated-output-regexp) nil)
   (python-shell-prompt-set-calculated-regexps)
-  (setq comint-prompt-regexp python-shell--prompt-calculated-input-regexp
-        comint-prompt-read-only t)
+  (setq comint-prompt-regexp python-shell--prompt-calculated-input-regexp)
+  (set (make-local-variable 'comint-prompt-read-only) t)
   (setq mode-line-process '(":%s"))
   (set (make-local-variable 'comint-output-filter-functions)
        '(ansi-color-process-output