From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36486: [PATCH] Add tests for text-property-search to check prop-match-value Date: Thu, 11 Jul 2019 16:17:22 +0200 Message-ID: References: <87pnmndyu8.fsf@mouse.gnus.org> <87pnmlzbzt.fsf@mail.linkov.net> <874l3w5jwy.fsf@mail.linkov.net> <87r26zgdbq.fsf@mail.linkov.net> <87o921mskm.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="202518"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36486@debbugs.gnu.org, Stefan Kangas To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 11 16:18:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlZti-000qTv-IH for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2019 16:18:10 +0200 Original-Received: from localhost ([::1]:42184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlZtg-00048U-Tr for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2019 10:18:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59174) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlZtb-00048N-MG for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:18:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlZta-0005HX-Im for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlZta-0005HN-EZ for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlZta-0004FW-8D for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2019 10:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jul 2019 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36486 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed Original-Received: via spool by 36486-submit@debbugs.gnu.org id=B36486.156285465315887 (code B ref 36486); Thu, 11 Jul 2019 14:18:02 +0000 Original-Received: (at 36486) by debbugs.gnu.org; 11 Jul 2019 14:17:33 +0000 Original-Received: from localhost ([127.0.0.1]:38324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlZt6-00047x-W6 for submit@debbugs.gnu.org; Thu, 11 Jul 2019 10:17:33 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:55826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlZt3-000455-N6 for 36486@debbugs.gnu.org; Thu, 11 Jul 2019 10:17:30 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlZsw-0004OJ-Bc; Thu, 11 Jul 2019 16:17:27 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUkGwwNCQT5+OtyZj5A NhuekmO8tIfMxJpwXbpLAAACRElEQVQ4jWWTwZKbMAyG5YG925PdPkC2W67bsc3ZGat77gxr8gAp 5p4U/PqVZEgzrQZI7A/pl2QB1yNZV9ac5/JgKwg4dsuYMy3zxD+l5LyB480mMdvnObP/P2CwPW2y 7eDN2Wp93kDZRH4hsO1ghXkDNwwYCIy7x7yLuMYOG2AZGOcKXmNaJqc9h5orqC6v/dxdnfJ38TFX 8HW8Hrvfyv4HuuNxKq8qjn9BqSKlXM6jwnu6d5CWfvSn9se43j0k1jLOabInaPy4g5rWW9+tFxug sZUQqOpdLqNzQKASBiJynlLCoEIzEHkAb2tyiKCk9UxYQ9Qv3lEPIWcG1DHxoJon66nv5kCHm/hY kgCKVQZHoD2vfLxsEqocKVPaV/psHwB5XBfLCsY8xW+PIJeLKBvT4I2BE0BovqAyplUm2iixvIUz 92xe7MnocNLR+rJSXj7BTNNFt/1uUKlnP/Q0j1QKg8JDOXwSIIcPTp26Q4Ammiqfkmq1vn2RhhLJ 4kH34l0bVHq5MikyVzXUYhOifjrQisWt5zoS3ZNNTh2aZ1pJFy34tM2/fVeHp+ClcIwWtiG3jiZX xxDlLxnwIyLS6gQG8Yay29IVoI2yUEYjUgpBvgdo6aIvYAcUHDQYzSgABZSm64Ctf6c3yMQLgxyT eQZ4mZTsGzB0boQwhLrx01QDVtchtigRNEfcAL0NECkzFmGqdg+krFrEgcI177uDqWlBdB8DttBs KTHQpM0JRxcUAfXgQfVIkVyWuRtoTU+l6/Q82B+a9AiHe95C5gAAAABJRU5ErkJggg== In-Reply-To: <87o921mskm.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 11 Jul 2019 01:29:45 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:162702 Archived-At: Juri Linkov writes: >> I don't understand -- this will still return a symbol. (And error out >> if you enter stuff like "foo bar".) > > Yes, entering a symbol returns a symbol, entering a string > like "foo bar" returns a string "foo bar" literally. Oh, right. Hm. Well, entering things with "..." is very unusual in Emacs prompts, so if we want that, the prompt should at least say that that's what's expected... > Currently text-property-search-forward has more problems: > today I needed to search the property =E2=80=98face=E2=80=99 with the val= ue > =E2=80=98hi-yellow=E2=80=99 in the buffer with regexps highlighted by hi-= lock.el. > Executing interactively: > > M-x text-property-search-forward RET face RET hi-yellow RET > > failed to find the property because all hi-lock occurrences were > combined with font-lock text properties, i.e. all they had the > property =E2=80=98face=E2=80=99 with the value =E2=80=98(hi-yellow font-l= ock-keyword-face)=E2=80=99 > and text-property-search-forward fails to find a value in the list > of values. Yes, you can't really use text-property-search-forward to do that in any meaningful manner, which is why I didn't add that to the interactive bit. It's a function useful almost only when programming, and the only useful interactive thing is to vaguely poke around in the buffer. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no