[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74415: 29.4; mouse-start-end does not respect syntax-table text prop
From: |
Stefan Monnier |
Subject: |
bug#74415: 29.4; mouse-start-end does not respect syntax-table text properties |
Date: |
Fri, 13 Dec 2024 12:05:55 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> No, it was not dead code before, but changing the outer condition
> makes it impossible for both the outer condition and the inner
> condition to be true at the same time.
> The current code is the following (inside a cond)
>
> ((and (= mode 1)
> (= start end)
> (char-after start)
> (= (char-syntax (char-after start)) ?\())
> (if (/= (syntax-class (syntax-after start)) 4) ; raw syntax code for ?\(
> ;; This happens in CC Mode when unbalanced parens in CPP
> ;; constructs are given punctuation syntax with
> ;; syntax-table text properties. (2016-02-21).
> (signal 'scan-error (list "Containing expression ends prematurely"
> start start))
> (list start
> (save-excursion
> (goto-char start)
> (forward-sexp 1)
> (point)))))
I have the strong impression that this reflects the fact that the
if+signal was a workaround which we're now replacing with an actual fix.
Stefan