all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: 19667@debbugs.gnu.org
Subject: bug#19667:
Date: Fri, 23 Jan 2015 15:30:04 -0300	[thread overview]
Message-ID: <CAELgYhfdyy4CzU86SYTjp_f+cjqT9PN1ytewrGs4XxragF3WAA@mail.gmail.com> (raw)
In-Reply-To: <CAELgYhcA8ye2QBNB8PsLUS=nm89Ce2T2RGdwZcP0pdmfzdcdBg@mail.gmail.com>

Something along these lines could be dirty but gets the job done:

diff --git a/.emacs.d/lisp/python.el b/.emacs.d/lisp/python.el
index 238c9b5..6bd9f5d 100644
--- a/.emacs.d/lisp/python.el
+++ b/.emacs.d/lisp/python.el
@@ -4469,7 +4469,9 @@ This is for compatibility with Emacs < 24.4."
                (overlay-end comint-last-prompt-overlay)))
         ((bound-and-true-p comint-last-prompt)
          comint-last-prompt)
-        (t nil)))
+        (t (save-excursion
+             (beginning-of-line 1)
+             (cons (point) (point))))))

This fakes a last prompt that starts and ends at the beginning of the
current line when the current buffer doesn't bind comint-last-prompt.





  parent reply	other threads:[~2015-01-23 18:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-23 17:18 bug#19667: 25.0.50; python-completion-at-point complete broken Carlos Pita
2015-01-23 17:28 ` bug#19667: Carlos Pita
2015-01-23 18:30 ` Carlos Pita [this message]
2015-02-02 19:30 ` bug#19667: Carlos Pita
2015-02-08  4:32 ` bug#19667: python-completion-at-point completely broken Fabián Ezequiel Gallina
2015-02-08  4:33   ` 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=CAELgYhfdyy4CzU86SYTjp_f+cjqT9PN1ytewrGs4XxragF3WAA@mail.gmail.com \
    --to=carlosjosepita@gmail.com \
    --cc=19667@debbugs.gnu.org \
    /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.