[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master afa1d80: python.el: Don't change `comint-prompt-rea
From: |
Fabián Ezequiel Gallina |
Subject: |
[Emacs-diffs] master afa1d80: python.el: Don't change `comint-prompt-read-only' globally |
Date: |
Tue, 09 Dec 2014 01:20:10 +0000 |
branch: master
commit afa1d80fe03b8ca9af62158b563d6429b51b7ee1
Author: Fabián Ezequiel Gallina <address@hidden>
Commit: Fabián Ezequiel Gallina <address@hidden>
python.el: Don't change `comint-prompt-read-only' globally
Fixes: debbugs:19288
* lisp/progmodes/python.el (inferior-python-mode): Set
`comint-prompt-read-only` to `t` only locally.
---
lisp/ChangeLog | 5 +++++
lisp/progmodes/python.el | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2669e07..df057ac 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-09 Fabián Ezequiel Gallina <address@hidden>
+
+ * progmodes/python.el (inferior-python-mode): Set
+ `comint-prompt-read-only` to `t` only locally.
+
2014-12-08 Lars Magne Ingebrigtsen <address@hidden>
* net/nsm.el (nsm-check-protocol): Test for RC4 on `high'.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 33c822a..63597d5 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master afa1d80: python.el: Don't change `comint-prompt-read-only' globally,
Fabián Ezequiel Gallina <=