From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74415: 29.4; mouse-start-end does not respect syntax-table text properties Date: Thu, 28 Nov 2024 15:03:21 -0500 Message-ID: References: <86cyilj6ks.fsf@gnu.org> <86mshjcpod.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9664"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: guillaume.brunerie@gmail.com, 74415@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 28 21:04:30 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tGkkX-0002NQ-Kx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Nov 2024 21:04:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGkk9-0008IP-9Y; Thu, 28 Nov 2024 15:04:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGkk7-0008I8-Am for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2024 15:04:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGkk7-0005pF-14 for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2024 15:04:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=jId9e0BZL/wG9tdlzczsiFUxaTRuMhoTmdhoC2O1y9Y=; b=nj5yMXw06AUluX7WgBI06Ba3mYujRnEoBtTfv204JnWwcUgj/XemE2T+ES1Fq1pT+Wdrevy18zsDj0aZ733blMPJ04v1+3LHDMd5MfYmLE8pede5p0vdvi52ozPBwgCrkDBJDXCGxk2Gjky6oud8ctmG+WoEzBakNsAU64cBm0aElhaRB/Gj8AFLla6uGwmrK3Rs+nPn96mgr0YshtNWyYjqHsMGajznYVwsk9uACIBsjjOuA9W4mV9mOnPGYff7YQ9CRrCBlfhrZ8GQNlZA1g2Oh0hZBIzefT9zn/zdL0p7RGBzqF11wyW56rDqaocNhfu6JvraRqmGwR7QFafhIw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGkk6-0006Hw-SU for bug-gnu-emacs@gnu.org; Thu, 28 Nov 2024 15:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Nov 2024 20:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74415 X-GNU-PR-Package: emacs Original-Received: via spool by 74415-submit@debbugs.gnu.org id=B74415.173282421224104 (code B ref 74415); Thu, 28 Nov 2024 20:04:02 +0000 Original-Received: (at 74415) by debbugs.gnu.org; 28 Nov 2024 20:03:32 +0000 Original-Received: from localhost ([127.0.0.1]:39829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGkjc-0006Gi-5G for submit@debbugs.gnu.org; Thu, 28 Nov 2024 15:03:32 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGkjZ-0006GO-Qr for 74415@debbugs.gnu.org; Thu, 28 Nov 2024 15:03:30 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 73E291000C3; Thu, 28 Nov 2024 15:03:23 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1732824202; bh=S3b0yZ6t8MxLPifVroBzI2Sa5imdkgZevtUWmi6z4Hk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=dJpAxvuAPmAVIHjghaIO8fLLLKrGjUYdsU1sjgRDvrC9cNvREciyAp91cGAF6qRfs 4Vq0IW9lGCz/xg6G2V8TSMnRbi/AeSYtGLv4ckjkrZClnVtT2hQn4kvlJtUUt3T4Xg PGRFO27dEKCIUzRSAGEUwyW9B6LQhVZijb0rHslZAlyPult1SbpQ6UyWBfTO+6mMnE v0rOHcVZOKjLzSVowCotxrrqfIkZRBpokmHy+ctvt2O/4faJW1+pbeo2nz8rnFako0 9/ioMU6QC+wFKjwtWJSTbWJ4pALuvGjtn3sPxQbQwz5A3X+XU/bL8LiD27lj7cJJOI adasCM/TuHpiw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D408110004A; Thu, 28 Nov 2024 15:03:22 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A401E1205A2; Thu, 28 Nov 2024 15:03:22 -0500 (EST) In-Reply-To: <86mshjcpod.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 28 Nov 2024 18:02:10 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296067 Archived-At: > Thanks. Guillaume, does the patch below give good results? the latch LGTM, but it bought up the following side note: maybe we should add a `syntax-class-of-char` so we can replace (= (syntax-class-to-char FOO) BAR)) with (= FOO (syntax-class-of-char BAR)) where `syntax-class-of-char` can be pre-computed during compilation (when BAR is a constant, which would be always the case in your patch). Tho, maybe even better would be a `(syntax-class-p BAR FOO)`. Anyway, nothing urgent. Stefan