all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vivek Dasmohapatra <vivek@etla.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: pcomplete makes assumptions about its interactive entry points
Date: Fri, 13 Sep 2013 02:52:42 +0100 (BST)	[thread overview]
Message-ID: <alpine.DEB.2.00.1309130245510.7157@octopus.pepperfish.net> (raw)
In-Reply-To: <jwv8uz1ts5o.fsf-monnier+emacs@gnu.org>

On Thu, 12 Sep 2013, Stefan Monnier wrote:

>> Hi - pcomplete makes an assumption (I think) about the interactive
>> entry point(s) which can be used to drive it which means that non-
>> native entry points don't get completion cycling.
>
>> Attached is a possible fix plus the alteration required
>> to make erc completion use it.
>
> Could you explain in which circumstance this is needed?

In an erc buffer, I tried to tab-complete a nick: The initial tab completion
showed many possibilities - I typed an extra character, which should have
limited it to a small enough number for tab-completion-cycling to kick in...
but instead TAB just unconditionally completed to the first of the remaining
candidates, and never offered me the chance to pick any of the others.

It turns out that pcomplete assumes that the interactive entry point
(activating command) can only ever be one of a handful of commands,
and specifically checks for those when deciding whether to enter the
code path that starts cycling through the remaining completions.

So modes that use pcomplete but define their own commands for tab 
completion lose the ability to use pcomplete cycling unless they have
a way of adding themselves to the list of entry points that pcomplete
knows about.




      reply	other threads:[~2013-09-13  1:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05 16:17 pcomplete makes assumptions about its interactive entry points Vivek Dasmohapatra
2013-09-13  1:44 ` Stefan Monnier
2013-09-13  1:52   ` Vivek Dasmohapatra [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=alpine.DEB.2.00.1309130245510.7157@octopus.pepperfish.net \
    --to=vivek@etla.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.