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: What does all-completions with COLLECTION == obarray return? Date: Wed, 08 Apr 2015 09:46:07 -0400 Message-ID: References: <87k2xr7skh.fsf@web.de> <87iodaxvg0.fsf@web.de> <87lhi3hs6d.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428500804 5352 80.91.229.3 (8 Apr 2015 13:46:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2015 13:46:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 08 15:46:35 2015 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 1YfqJP-0003sb-60 for ged-emacs-devel@m.gmane.org; Wed, 08 Apr 2015 15:46:35 +0200 Original-Received: from localhost ([::1]:52867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfqJO-0001SV-LO for ged-emacs-devel@m.gmane.org; Wed, 08 Apr 2015 09:46:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfqJ3-0001Oj-Pt for emacs-devel@gnu.org; Wed, 08 Apr 2015 09:46:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfqIy-0003kB-QQ for emacs-devel@gnu.org; Wed, 08 Apr 2015 09:46:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfqIy-0003k7-M8 for emacs-devel@gnu.org; Wed, 08 Apr 2015 09:46:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBJy8jBQsLNBIUGA0kiBOiEYt0cAwDgz4Dg3AEqDs X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBJy8jBQsLNBIUGA0kiBOiEYt0cAwDgz4Dg3AEqDs X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="115703748" Original-Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Apr 2015 09:46:08 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 02E511392; Wed, 8 Apr 2015 09:46:07 -0400 (EDT) In-Reply-To: <87lhi3hs6d.fsf@web.de> (Michael Heerdegen's message of "Wed, 08 Apr 2015 11:42:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.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:185150 Archived-At: >> The recipe seems to do something nasty to the obarray. But I don't >> recall seeing this recipe. Could you resend it? > It was just this: > --8<---------------cut here---------------start------------->8--- > (let* ((hi-lock-face-defaults > (list > "hi-yellow" > "hi-pink" > "hi-green" > "hi-blue" > "hi-black-b" > "hi-blue-b" > "hi-red-b" > "hi-green-b" > "hi-black-hb"))) > (completing-read > (format "Highlight using face (default %s): " > (car hi-lock-face-defaults)) > (all-completions "" obarray) > 'facep t nil 'face-name-history hi-lock-face-defaults)) > --8<---------------cut here---------------end--------------->8--- This code looks OK (though I'd pass obarray directly without going through all-completions). > with helm-mode on. > AFAICT we don't try to manipulate obarray directly (of course). What > nasty things could we be doing? I don't know. I expected the recipe to demonstrate the kinds of problems you're seeing, so I guess I lack other parts of the recipe. Stefan