Subject: Re: bug#45944: 28.0.50; Mailabbrev sometimes hangs

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 19 Jan 2021 16:09:28 +0100

Katsumi Yamaoka <[email-masked]> 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