all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Antoine Levitt <antoine.levitt@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: ERC completion
Date: Mon, 02 May 2011 15:04:38 -0300	[thread overview]
Message-ID: <jwvoc3lc76o.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87d3k1ceqj.fsf@gmail.com> (Antoine Levitt's message of "Mon, 02 May 2011 17:19:00 +0200")

>>> I seem to recall talks of priority for completions. Couldn't that be
>>> used here? That way, I'd set completion-at-point-functions to something
>>> that returns the list of dabbrev expands with a low priority, and every
>>> other completion would take precedence over it.
>> By placing it at the end of the hook, you're giving it the lowest
>> priority.
> Cool! Then all that'd be needed is to write a dabbrev-completions
> function that'd return all completions, as found by dabbrev, and set it
> at the end of the hook. Then erc nick completions would take precedence,
> and life would be good again.

No, I think your problem is not that dabbrev had too high a priority,
but rather than erc-nick completion is too eager to complete
everywhere, and never lets the lower-priority completions (such as
dabbrev) play.


        Stefan



  reply	other threads:[~2011-05-02 18:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-27 18:58 ERC completion Antoine Levitt
2011-04-28  0:18 ` Stefan Monnier
2011-04-28 10:44   ` Antoine Levitt
2011-04-28 19:34     ` Stefan Monnier
2011-04-28 19:48       ` Antoine Levitt
2011-04-29  0:50         ` Stefan Monnier
2011-04-29  7:43           ` Antoine Levitt
2011-04-29 15:20             ` Stefan Monnier
2011-04-29 20:50               ` Antoine Levitt
2011-05-02 15:02                 ` Stefan Monnier
2011-05-02 15:19                   ` Antoine Levitt
2011-05-02 18:04                     ` Stefan Monnier [this message]
2011-05-02 21:29                       ` Antoine Levitt
2011-05-03  0:47                         ` Stefan Monnier

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=jwvoc3lc76o.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=antoine.levitt@gmail.com \
    --cc=emacs-devel@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.