From b8e11d4102870e70dc50796454fcdae658caadbb Mon Sep 17 00:00:00 2001 From: Sam Steingold Date: Wed, 14 May 2014 14:17:05 -0400 Subject: [PATCH] avoid unnecessary questions * lisp/progmodes/python.el (python-shell-get-or-create-process): Do not bind `current-prefix-arg' so that C-c C-z does not talk back unless requested. --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/python.el | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 015650510f..3e152174e8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2014-05-14 Sam Steingold + + * progmodes/python.el (python-shell-get-or-create-process): + Do not bind `current-prefix-arg' so that C-c C-z does not talk + back unless requested. + 2014-05-14 Glenn Morris * subr.el (with-file-modes): New macro. diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 240cf8aff8..436442da2d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2058,8 +2058,7 @@ startup." (global-proc-name (python-shell-get-process-name nil)) (global-proc-buffer-name (format "*%s*" global-proc-name)) (dedicated-running (comint-check-proc dedicated-proc-buffer-name)) - (global-running (comint-check-proc global-proc-buffer-name)) - (current-prefix-arg 16)) + (global-running (comint-check-proc global-proc-buffer-name))) (when (and (not dedicated-running) (not global-running)) (if (call-interactively 'run-python) (setq dedicated-running t) -- 2.20.1