GNU bug report logs -
#5391
python.el: reuse (sometimes) Python comint buffer
Previous Next
Reported by: Bojan Nikolic <bojan <at> bnikolic.co.uk>
Date: Fri, 15 Jan 2010 18:03:01 UTC
Severity: wishlist
Tags: patch
Fixed in version 24.2
Done: Fabián Ezequiel Gallina <fabian <at> anue.biz>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Bojan Nikolic <bojan <at> 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/
This bug report was last modified 12 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.