From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: text-property-any Date: Fri, 25 Jan 2008 16:12:20 +0100 Message-ID: <878x2erlbf.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201274001 24694 80.91.229.12 (25 Jan 2008 15:13:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jan 2008 15:13:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 25 16:13:41 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JIQFK-0000JK-U6 for ged-emacs-devel@m.gmane.org; Fri, 25 Jan 2008 16:13:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIQEu-0005xq-Gf for ged-emacs-devel@m.gmane.org; Fri, 25 Jan 2008 10:13:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIQEL-0005gI-G9 for emacs-devel@gnu.org; Fri, 25 Jan 2008 10:12:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIQEJ-0005fv-Re for emacs-devel@gnu.org; Fri, 25 Jan 2008 10:12:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIQEJ-0005fs-J0 for emacs-devel@gnu.org; Fri, 25 Jan 2008 10:12:31 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JIQEJ-0005Km-EL for emacs-devel@gnu.org; Fri, 25 Jan 2008 10:12:31 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JIQEE-0004dk-BP for emacs-devel@gnu.org; Fri, 25 Jan 2008 15:12:26 +0000 Original-Received: from i5387d225.versanet.de ([83.135.210.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jan 2008 15:12:26 +0000 Original-Received: from Stephen.Berman by i5387d225.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jan 2008 15:12:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 10 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387d225.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87492 Archived-At: The value of (text-property-any start end 'foo "bar") is always nil, because text-property-any in effect uses `eq' to check property values. Would there be bad consequences if it used `equal' instead? If this is not a viable option, is there a recommended way to find out if some character has a property with a particular string value? I suppose looping on next-single-property-change and testing for `equal'ity will work; is that the best way? (My use case is a display property with a string value.) Thanks, Steve Berman