From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] emacs-25 b99141d: Make erc completion case-insensitive again Date: Thu, 04 Feb 2016 08:14:07 -0500 Message-ID: References: <20160204065220.28270.47611@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454591724 21706 80.91.229.3 (4 Feb 2016 13:15:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2016 13:15:24 +0000 (UTC) Cc: Lars Ingebrigtsen To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 04 14:15:09 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aRJka-0005IJ-8z for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2016 14:15:08 +0100 Original-Received: from localhost ([::1]:41745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRJkU-0006ER-Ir for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2016 08:15:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRJjh-0005c3-8N for emacs-devel@gnu.org; Thu, 04 Feb 2016 08:14:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRJjd-0003xP-Vs for emacs-devel@gnu.org; Thu, 04 Feb 2016 08:14:13 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:1711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRJjd-0003wu-Se for emacs-devel@gnu.org; Thu, 04 Feb 2016 08:14:09 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A1FgA731xV/5KmxEVcgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBBFYjEAs0EhQYDYhjzyMBAQEBBgEBAQEeizqFBQcWhBcFjDCnD4FFI4FmgjAggngBAQE X-IPAS-Result: A0A1FgA731xV/5KmxEVcgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBBFYjEAs0EhQYDYhjzyMBAQEBBgEBAQEeizqFBQcWhBcFjDCnD4FFI4FmgjAggngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="192374058" Original-Received: from 69-196-166-146.dsl.teksavvy.com (HELO ceviche.home) ([69.196.166.146]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Feb 2016 08:14:08 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 1B4BB6613D; Thu, 4 Feb 2016 08:14:07 -0500 (EST) In-Reply-To: (Lars Ingebrigtsen's message of "Thu, 04 Feb 2016 06:52:20 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199292 Archived-At: > +(defun erc-completion-at-point () > + "Perform complection on the text around point case-insentitively. > +See `completion-at-point'." > + (interactive) > + (let ((completion-ignore-case t)) > + (completion-at-point))) If the elements in the completion table are indeed case-insensitive, then the right way to do that is to set the completion-table accordingly. E.g. replace with (lambda (s p a) (let ((completion-ignore-case t)) (complete-with-action a s p))) -- Stefan