From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#24749: Making sure syntax-propertize is called Date: Wed, 05 Jun 2019 09:32:21 -0400 Message-ID: References: <87ef4awyb6.fsf@gmail.com> <87sgsqwjxp.fsf@gmail.com> <87o93dx5lp.fsf@gmail.com> <87r288d2o2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="226162"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 24749@debbugs.gnu.org To: Vitalie Spinu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 05 15:33:14 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYW2T-000wZU-5x for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jun 2019 15:33:13 +0200 Original-Received: from localhost ([127.0.0.1]:41809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYW2S-0000GG-62 for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jun 2019 09:33:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYW2L-0000G0-K6 for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 09:33:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYW2K-0001Dk-Mj for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 09:33:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33282) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYW2K-0001Cj-Gd for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 09:33:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hYW2K-0004ls-9x for bug-gnu-emacs@gnu.org; Wed, 05 Jun 2019 09:33:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Jun 2019 13:33:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24749 X-GNU-PR-Package: emacs Original-Received: via spool by 24749-submit@debbugs.gnu.org id=B24749.155974155517956 (code B ref 24749); Wed, 05 Jun 2019 13:33:04 +0000 Original-Received: (at 24749) by debbugs.gnu.org; 5 Jun 2019 13:32:35 +0000 Original-Received: from localhost ([127.0.0.1]:46825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYW1o-0004ep-Ri for submit@debbugs.gnu.org; Wed, 05 Jun 2019 09:32:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYW1l-0004Xv-Fx for 24749@debbugs.gnu.org; Wed, 05 Jun 2019 09:32:31 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E1557101263; Wed, 5 Jun 2019 09:32:23 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A23A710089B; Wed, 5 Jun 2019 09:32:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1559741542; bh=9/mK81oWlynJq6CMhINX2AepZF/GnH7D7h58Tw+fNpI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=neAfR2rM1EOdCs8LOJSIu2EGNu+21OFv37jHqVJ4z8GdzYOehr+VvIg3EUJUObvVL eshqetYATPteDLHqilZ63BxtYuezD0UkhyGm84p8QXocpgQgwVMjm5QEF3SZOZOC33 FS7dXMI4mi5psVi4HW5NDS98dOAKn+GX9P2AyE4xFjAd1ThSv4E4rufbcd24n/FcZy 7MaPvdykzbxdSpBVBE/t/kMu2HzPkYJCGU+HE4ANz8lZ48dEqr+/j2mJWGeCAgiBHe 3aKiCsrGl0Get5kBeYrYO9kLAp5iXaOizGsw/F9AU269+MBhT+C5NqOC5lqC+uucgE d0wq+t8qMkoVw== Original-Received: from alfajor (unknown [45.72.243.188]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 769EC1204B4; Wed, 5 Jun 2019 09:32:22 -0400 (EDT) In-Reply-To: <87r288d2o2.fsf@gmail.com> (Vitalie Spinu's message of "Wed, 05 Jun 2019 07:25:17 +0200") 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:160151 Archived-At: > Relatedly, I just noticed that seemingly innocuous dabrev-expand > (hippie-expand) trigger syntax-propertize for the entire buffer. Probably because of a search with \< and such. The fact that this depends on the syntax-table text-property is a misfeature in most cases :-( >> IIRC (and similarly, syntax-propertize wouldn't be applied to the >> whole buffer if a match is found before EOB). > In the multi-mode context some types of chunks might not be present in the > buffer, and the rare ones are commonly not. So the search ends up at eob. I was mere mentioning a detail of the behavior. Indeed, if your search fails then it will have checked to EOB. So the behavior may depend on details like the difference between: (re-search-forward "FOO\\|BAR" ...) or (or (re-search-forward "FOO" ...) (re-search-forward "BAR" ...)) -- Stefan