[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45944: 28.0.50; Mailabbrev sometimes hangs
From: |
Lars Ingebrigtsen |
Subject: |
bug#45944: 28.0.50; Mailabbrev sometimes hangs |
Date: |
Tue, 19 Jan 2021 16:09:28 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> Yes it does. While the hang arises, syntax table is overridden
> temporarily with `mail-abbrev-syntax-table'.
>
> (mail-abbrev-make-syntax-table)
> (with-syntax-table mail-abbrev-syntax-table
> (string-match "\\w" "_"))
>
> So, it explains some strange things, doesn't it? Actually, this
> advice looks to solve the problem:
>
> (defadvice message--syntax-propertize (around use-standard-syntax-table
> activate)
> "Use standard-syntax-table."
> (with-syntax-table (standard-syntax-table)
> ad-do-it))
I've now changed the function along these lines -- it now starts with
(defun message--syntax-propertize (beg end)
"Syntax-propertize certain message text specially."
(with-syntax-table message-mode-syntax-table
and this seems to fix the reported test case.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no