From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70038 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Fancy completion Date: Mon, 30 Aug 2010 05:12:49 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283137991 22554 80.91.229.12 (30 Aug 2010 03:13:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 03:13:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18424@lists.math.uh.edu Mon Aug 30 05:13:09 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Opuo0-0003pL-Sv for ding-account@gmane.org; Mon, 30 Aug 2010 05:13:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Opunx-0001ft-BW; Sun, 29 Aug 2010 22:13:05 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Opunw-0001fh-70 for ding@lists.math.uh.edu; Sun, 29 Aug 2010 22:13:04 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Opunr-0004Pz-LS for ding@lists.math.uh.edu; Sun, 29 Aug 2010 22:13:04 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Opunq-0000sG-00 for ; Mon, 30 Aug 2010 05:12:58 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Opuno-0003j4-8T for ding@gnus.org; Mon, 30 Aug 2010 05:12:56 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Aug 2010 05:12:56 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Aug 2010 05:12:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 29 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEWvsa8jQyIXIxYwZC4s aipwgXDw8PDKysocMhsoZyb////+//4OEg4zXTItUSwDBANiPyQNAAACXklEQVQ4jWNYBQepV6sQ nFUMCCajZBR2CZYpt7FLhLhMxyXhgF3i5hRXrBKrTab47sImsWymi0sVNonlU1xcuLBJLLg5820U Volt5VncWCWAOB2rHVBJENjKhaYDKhGajyyxAaQL6JHlvNER9VVIEiDzl1WtLi09+oE/PgtJogxs 5b4X7B9Yc+KRjWIDamDoL1Vb3Xppa99xJIm4qwxBP+TZP5TFNG74oFSFkAhU+iR//n203of6+LCj RW0wiWWl+p/Ozz+v0xVTtSn2+MXt1VCJrBqhjpPyOn9+fKvnSlVXLYP5nFVtx7WHP+Z8+vjnw6aL 18N2QYJkdUIW79elxzv/TPzzQ191qSgXNKwWVNxXK7qT/uOk/szzn+aLLoPGIgNrPm97QH58tM5M +U75MxNfwUM3pr7gu+qi2GPxL+efnCQ5lw0uUR9fdvbr2tav9QyXNGe+ZdsOl9jRX3WjKfXvnaKo ZQUM2eBYgUgsPSTGzx/wvY4BYukCWApiWP71b37o1+uwWF2eBZNY3cofe41tVUIYhL86FJogGFbF JITvWrXs4jNYWKrugkqUgjQvnaQGNaqjpQoqAQZLJ8qC+cuC5/VFIUuslRSZyr5rVXqs58QZKBKJ LyRnznx7d6bnzJmd3cgSGZNmwkBnO7JExaSXcIkGZAlGQUmYhKAqsgSnIkxCcEbvLiSJyA5NQZDw xI6JPZOzkCUmKc6UUNI5ozhz4sEpyBIhQoegZjUdEkY2ik9wpkSj4MyJEhqSM0VRgqRRUFCwQ0ep o6Oj6RqyxKrSUBAIYGBgYF+FIoEBABNtpnD/iK6XAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Kraftwerk's _Kraftwerk 2_: "Spule 4" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:1Sb0JwN2hyqljlOo8oyw4OUfHQ4= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70038 Archived-At: Leo 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