* 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
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).