unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Bojan Nikolic <bojan@bnikolic.co.uk>
Cc: 5391@debbugs.gnu.org
Subject: bug#5391: python.el: reuse (sometimes) Python comint buffer
Date: Wed, 11 Apr 2012 01:42:03 +0200	[thread overview]
Message-ID: <m37gxnqhmc.fsf@stories.gnus.org> (raw)
In-Reply-To: <kmmy0fxn61.fsf@fencepost.gnu.org> (Bojan Nikolic's message of "Thu, 03 Dec 2009 22:43:41 +0000")

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/





       reply	other threads:[~2012-04-10 23:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <kmmy0fxn61.fsf@fencepost.gnu.org>
2012-04-10 23:42 ` Lars Magne Ingebrigtsen [this message]
2012-04-15 19:21   ` bug#5391: python.el: reuse (sometimes) Python comint buffer Bojan Nikolic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m37gxnqhmc.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=5391@debbugs.gnu.org \
    --cc=bojan@bnikolic.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).