From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se>
Cc: emacs-devel@gnu.org
Subject: Re: python-mode: Selecting deleted buffer error
Date: Mon, 05 Mar 2007 14:57:34 -0500 [thread overview]
Message-ID: <jwvr6s3zco0.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20070305134517.A4BC.SLAWOMIR.NOWACZYK.847@student.lu.se> (Slawomir Nowaczyk's message of "Mon\, 05 Mar 2007 13\:52\:49 +0100")
> Calling python-send-region (and friends) after *Python* buffer has been
> deleted can cause "Selecting deleted buffer" error. Steps to reproduce:
> (require 'python)
> (python-switch-to-python t)
> (kill-buffer "*Python*")
> (python-send-region (point-min) (point-max))
> The following patch seems to fix the problem:
> ********************************************************************************
> --- EmacsCVS/lisp/progmodes/python.el 2007-03-05 12:17:50.687500000 +0100
> +++ Emacs/lisp/progmodes/python.el 2007-03-05 13:24:42.625000000 +0100
> @@ -1383,7 +1383,7 @@
> COMMAND should be a single statement."
> ;; (assert (not (string-match "\n" command)))
> ;; (let ((end (marker-position (process-mark (python-proc)))))
> - (with-current-buffer python-buffer (goto-char (point-max)))
> + (with-current-buffer (process-buffer (python-proc)) (goto-char (point-max)))
> (compilation-forget-errors)
> (python-send-string command)
> (with-current-buffer python-buffer
> ********************************************************************************
I've installed a similar patch.
Stefan
prev parent reply other threads:[~2007-03-05 19:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 12:52 python-mode: Selecting deleted buffer error Slawomir Nowaczyk
2007-03-05 19:57 ` Stefan Monnier [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvr6s3zco0.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=slawomir.nowaczyk.847@student.lu.se \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.