all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Fabián Ezequiel Gallina" <fabian@anue.biz>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 12409@debbugs.gnu.org
Subject: bug#12409: 24.2.50; OS X Python completion leaks junk to inferior-python-mode buffer
Date: Mon, 08 Oct 2012 11:07:58 -0300	[thread overview]
Message-ID: <5072DE3E.4010300@anue.biz> (raw)
In-Reply-To: <C0ED55D8-332F-4FD9-BC59-C83B7C6CE8DF@swipnet.se>

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

On 10/08/2012 04:24 AM, Jan Djärv wrote:
> (format " ?\n\\(?:%s\\|%s\\|%s\\)$"
Unfortunately it seems the patch I copied here lost the carriage return 
because of my email client or something, attaching the file instead. 
Please try this one and let me know.


Thanks!,
Fabián


[-- Attachment #2: python-osx-output.diff --]
[-- Type: text/plain, Size: 637 bytes --]

=== modified file 'lisp/progmodes/python.el'
--- lisp/progmodes/python.el	2012-10-07 19:37:37 +0000
+++ lisp/progmodes/python.el	2012-10-07 19:47:52 +0000
@@ -1887,7 +1887,9 @@
    python-shell-output-filter-buffer
    (concat python-shell-output-filter-buffer string))
   (when (string-match
-         (format "\n\\(?:%s\\|%s\\|%s\\)$"
+         ;; It seems on OSX an extra carriage return might be attached
+         ;; to the end of output.
+         (format "\r?\n\\(?:%s\\|%s\\|%s\\)$"
                  python-shell-prompt-regexp
                  python-shell-prompt-block-regexp
                  python-shell-prompt-pdb-regexp)


  reply	other threads:[~2012-10-08 14:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-11  5:22 bug#12409: 24.2.50; OS X Python completion leaks junk to inferior-python-mode buffer Dan Davison
2012-09-12  8:09 ` martin rudalics
2012-10-07 18:05   ` Jan Djärv
2012-09-24 18:32 ` Fabián Ezequiel Gallina
2012-10-01  1:00 ` Fabián Ezequiel Gallina
2012-10-07 19:51 ` Fabián Ezequiel Gallina
2012-10-08  7:24   ` Jan Djärv
2012-10-08 14:07     ` Fabián Ezequiel Gallina [this message]
2012-10-08 16:44       ` Andreas Schwab
2012-10-08 18:46       ` Jan Djärv
2012-10-08 19:07         ` Stefan Monnier
2012-10-08 19:49           ` Jan Djärv
2012-10-08 21:57             ` Fabián Ezequiel Gallina

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=5072DE3E.4010300@anue.biz \
    --to=fabian@anue.biz \
    --cc=12409@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.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.