unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5391: python.el: reuse (sometimes) Python comint buffer
       [not found] <kmmy0fxn61.fsf@fencepost.gnu.org>
@ 2012-04-10 23:42 ` Lars Magne Ingebrigtsen
  2012-04-15 19:21   ` Bojan Nikolic
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-04-10 23:42 UTC (permalink / raw)
  To: Bojan Nikolic; +Cc: 5391

Bojan Nikolic <bojan@bnikolic.co.uk> 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/





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#5391: python.el: reuse (sometimes) Python comint buffer
  2012-04-10 23:42 ` bug#5391: python.el: reuse (sometimes) Python comint buffer Lars Magne Ingebrigtsen
@ 2012-04-15 19:21   ` Bojan Nikolic
  0 siblings, 0 replies; 2+ messages in thread
From: Bojan Nikolic @ 2012-04-15 19:21 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 5391


Hi Lars,

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Is this patch still relevant?                 

Yes, a patch something like I sent is still required.... If you'd like
to install it, let me know and I will update my patch for the new code.

Best,
Bojan


-- 
Bojan Nikolic          ||          http://www.bnikolic.co.uk





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-15 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <kmmy0fxn61.fsf@fencepost.gnu.org>
2012-04-10 23:42 ` bug#5391: python.el: reuse (sometimes) Python comint buffer Lars Magne Ingebrigtsen
2012-04-15 19:21   ` Bojan Nikolic

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).