From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: Fancy completion
Date: Mon, 30 Aug 2010 05:12:49 +0200 [thread overview]
Message-ID: <m37hj8x07i.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <m1zkw4kdcm.fsf@cam.ac.uk>
Leo <sdl.web@gmail.com> writes:
> Check out completion-styles. I think it allows one to type *boingboing
> and complete to candidates containing boingboing.
That's awesome. Is that something only users are supposed to meddle
with, or does it make sense just to add `substring' to the list just for
the `j' command? Like thus?
diff --git a/lisp/gnus-group.el b/lisp/gnus-group.el
index 7a88773..f9f9707 100644
--- a/lisp/gnus-group.el
+++ b/lisp/gnus-group.el
@@ -2202,7 +2202,9 @@ be permanent."
The arguments are the same as `completing-read' except that COLLECTION
and HIST default to `gnus-active-hashtb' and `gnus-group-history'
respectively if they are omitted."
- (let (group)
+ (let ((completion-styles completion-styles)
+ group)
+ (push 'substring completion-styles)
(mapatoms (lambda (symbol)
(setq group (symbol-name symbol))
(set (intern (if (string-match "[^\000-\177]" group)
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~2010-08-30 3:12 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 2:54 Lars Magne Ingebrigtsen
2010-08-30 3:07 ` Leo
2010-08-30 3:12 ` Lars Magne Ingebrigtsen [this message]
2010-08-30 3:18 ` Lars Magne Ingebrigtsen
2010-08-30 3:44 ` Leo
2010-08-30 16:25 ` Lars Magne Ingebrigtsen
2010-08-30 3:08 ` Leo
2010-08-30 8:01 ` Adam Sjøgren
2010-08-30 19:54 ` Andreas Schwab
2010-08-30 19:59 ` Adam Sjøgren
2010-08-30 20:45 ` Andreas Schwab
2010-08-31 2:07 ` Eric Abrahamsen
2010-08-31 6:13 ` Reiner Steib
2010-08-31 21:12 ` Adam Sjøgren
2010-08-31 23:19 ` Andreas Schwab
2010-08-31 23:29 ` Lars Magne Ingebrigtsen
2010-08-30 12:19 ` Julien Danjou
2010-08-30 16:26 ` Lars Magne Ingebrigtsen
2010-08-30 16:33 ` Julien Danjou
2010-08-30 16:43 ` Lars Magne Ingebrigtsen
2010-08-30 17:03 ` Leo
2010-08-30 17:16 ` Adam Sjøgren
2010-08-30 17:19 ` Lars Magne Ingebrigtsen
2010-08-30 17:21 ` Leo
2010-08-30 17:42 ` Adam Sjøgren
2010-08-30 17:38 ` Adam Sjøgren
2010-08-30 17:45 ` Leo
2010-08-30 17:53 ` Lars Magne Ingebrigtsen
2010-08-30 18:22 ` Adam Sjøgren
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=m37hj8x07i.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).