[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5391: python.el: reuse (sometimes) Python comint buffer
From: |
Lars Magne Ingebrigtsen |
Subject: |
bug#5391: python.el: reuse (sometimes) Python comint buffer |
Date: |
Wed, 11 Apr 2012 01:42:03 +0200 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) |
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/
- bug#5391: python.el: reuse (sometimes) Python comint buffer,
Lars Magne Ingebrigtsen <=