From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#20334: What does all-completions with COLLECTION == obarray return? Date: Wed, 15 Apr 2015 11:14:16 -0400 Message-ID: References: <87k2xr7skh.fsf@web.de> <87iodaxvg0.fsf@web.de> <87lhi3hs6d.fsf@web.de> <87iod68tj3.fsf@web.de> <87twwh1omu.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429110924 25047 80.91.229.3 (15 Apr 2015 15:15:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 15:15:24 +0000 (UTC) Cc: Michael Heerdegen To: 20334@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 15 17:15:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1YiP1z-00006W-Fb for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Apr 2015 17:15:11 +0200 Original-Received: from localhost ([::1]:60899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiP1y-0001W0-Ji for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Apr 2015 11:15:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiP1u-0001TZ-SV for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 11:15:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiP1r-0007aJ-Bn for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 11:15:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiP1r-0007Zu-7Q for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 11:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YiP1q-0006JI-Du; Wed, 15 Apr 2015 11:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: michael_heerdegen@web.de, bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Apr 2015 15:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20334 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Michael Heerdegen Original-Received: via spool by submit@debbugs.gnu.org id=B.142911087224186 (code B ref -1); Wed, 15 Apr 2015 15:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Apr 2015 15:14:32 +0000 Original-Received: from localhost ([127.0.0.1]:57209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiP1M-0006I1-8k for submit@debbugs.gnu.org; Wed, 15 Apr 2015 11:14:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54998) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YiP1K-0006Hm-7q for submit@debbugs.gnu.org; Wed, 15 Apr 2015 11:14:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiP1E-0007Fz-2s for submit@debbugs.gnu.org; Wed, 15 Apr 2015 11:14:24 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiP1D-0007Fv-W6 for submit@debbugs.gnu.org; Wed, 15 Apr 2015 11:14:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiP1D-0001OH-22 for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 11:14:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiP19-0007FP-Fd for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 11:14:22 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiP19-0007F6-3H for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2015 11:14:19 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t3FFEHgK021724; Wed, 15 Apr 2015 11:14:17 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E255C15D9; Wed, 15 Apr 2015 11:14:16 -0400 (EDT) In-Reply-To: <87twwh1omu.fsf@web.de> (Michael Heerdegen's message of "Wed, 15 Apr 2015 15:56:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5277=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5277> : inlines <2719> : streams <1422931> : uri <1907384> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101551 Archived-At: > I guess this should not happen, so it is a bug in Emacs in think. Indeed. Thanks for the test case. I reduced it to: (progn (intern "Bah=E1'=ED Date") ;this happens when requiring org (facep "Bah=E1'=ED Date") ;; Test if "Bah=E1'=ED Date" is the name of more than one interned sym= bol (let ((ss nil)) (mapatoms (lambda (s) (when (string=3D (symbol-name s) "Bah=E1'=ED D= ate") (push s ss))) nil) (length ss))) So the patch below fixes it, but it points at a problem in the C function `intern' which I haven't tracked down yet. Stefan diff --git a/src/xfaces.c b/src/xfaces.c index 9f8a816..d079be8 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -1822,7 +1822,8 @@ resolve_face_name (Lisp_Object face_name, bool signal= _p) Lisp_Object tortoise, hare; =20 if (STRINGP (face_name)) - face_name =3D intern (SSDATA (face_name)); + /* face_name =3D intern (SSDATA (face_name)); */ + face_name =3D Fintern (face_name, Qnil); =20 if (NILP (face_name) || !SYMBOLP (face_name)) return face_name;