unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Андрей Парамонов" <cmr.pent@gmail.com>
Cc: fx@gnu.org, 7329@debbugs.gnu.org
Subject: bug#7329: [Patch] Enable completion in inferior-python-mode
Date: Wed, 17 Nov 2010 08:14:29 -0500	[thread overview]
Message-ID: <jwvipzwdrgk.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <AANLkTimUGkv5MWQw0tgyBSN1N_-Cr-MEQYZNzYAHCkRE@mail.gmail.com> ("Андрей Парамонов"'s message of "Tue, 16 Nov 2010 11:41:59 +0300")

>> That patch doesn't look bad at all.  The \\= construct means "match
>> point", i.e. (re-search-backward ">>> \\=" nil t) is very much like
>> (looking-back ">>> ").  So if that doesn't work it's probably because
>> there is text between the ">>> " prompt and point.
>> Do you happen to know what that text is, so we can assess whether we can
>> just plainly ignore it as you do, or whether there's more to it.

> The text between >>> and point is what I'm going to complete. I think
> it can be anything.

Then maybe another fix is to add a

  (save-excursion
    (goto-char (process-mark (or proc (python-proc))))
    ...)

Since this goto-char should then move point right after the prompt, just
where the current code expects it to be.
    

        Stefan





  parent reply	other threads:[~2010-11-17 13:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87iq0dhwwd.fsf@neo.paramonovs>
2010-11-04 17:11 ` bug#7329: Fwd: 23.2; inferior-python-mode: completion does not work Андрей Парамонов
2010-11-12 20:08   ` bug#7329: [Patch] Enable completion in inferior-python-mode Андрей Парамонов
2010-11-12 21:35     ` Stefan Monnier
2010-11-16  8:41       ` Андрей Парамонов
2010-11-16  8:43         ` Андрей Парамонов
2010-11-17 13:14         ` Stefan Monnier [this message]
2010-11-19 20:33           ` Андрей Парамонов
2010-11-28 16:14             ` Dave Love
2012-04-11 11:31               ` Lars Magne Ingebrigtsen
2012-04-11 11:47                 ` Андрей Парамонов
2012-04-11 11:59                   ` Lars Magne Ingebrigtsen
2012-04-11 12:08                     ` Андрей Парамонов
2012-04-11 11:47                 ` Leo
2012-04-11 16:26                 ` Glenn Morris
2012-07-28 14:23   ` bug#7329: Fwd: 23.2; inferior-python-mode: completion does not work Chong Yidong
2012-07-28 15:10     ` Андрей Парамонов
2012-07-28 15:14       ` Chong Yidong
2012-07-28 15:35         ` Андрей Парамонов

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=jwvipzwdrgk.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=7329@debbugs.gnu.org \
    --cc=cmr.pent@gmail.com \
    --cc=fx@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 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).