Subject: Re: python.el: reuse (sometimes) Python comint buffer

From: Lars Magne Ingebrigtsen <[email-masked]>
Date: Wed, 11 Apr 2012 01:42:03 +0200

Bojan Nikolic <[email-masked]> writes:

> The run-python function in Emacs 22 python.el used to reuse comint
> buffers, which I found very useful. The attached patch I think gets
> back close to this behaviour, i.e.:
>
>   If buffer python-buffer is live and "new" hasn't been specified that
>   buffer is reused and the new comint process is started
>   there. Otherwise it is started in a newly created buffer.

[...]

> -		 (generate-new-buffer "*Python*")
> +		 (if (and (buffer-live-p python-buffer)
> +			  (not new))
> +		     python-buffer
> +		   (generate-new-buffer "*Python*"))

Looking at the code, this seems to have changed:

	  (apply 'make-comint-in-buffer "Python"
		 (generate-new-buffer "*Python*")
		 (car cmdlist) nil (cdr cmdlist)))

Is this patch still relevant?                 

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/