bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56384: 29.0.50; backward-word doesn't move far enough in message-mod


From: spwhitton
Subject: bug#56384: 29.0.50; backward-word doesn't move far enough in message-mode
Date: Tue, 05 Jul 2022 07:34:49 -0700

Hello,

On Tue 05 Jul 2022 at 01:52PM +02, Lars Ingebrigtsen wrote:

> Andreas Schwab <schwab@suse.de> writes:
>
>> There is a syntax-table property on the first character.
>
> Ah, thanks.  This was added by:
>
> commit 25449e7296fe6e5cd9bca49ae1bc52d1552d5324
> Author:     João Távora <joaotavora@gmail.com>
> AuthorDate: Sun Apr 12 13:12:27 2015 +0100
>
>     Summary: Improve sexp-based movement in message-mode
>
>     Works by giving citations and smileys a different syntax.  This helps
>     modes like `show-paren-mode', `electric-pair-mode', and C-M-*
>     sexp-based movement.
>     
>     * lisp/gnus/message.el (message--syntax-propertize): New function.
>     (message-mode): Set syntax-related vars.
>     (message-smileys): New variable.
>
>     * test/automated/message-mode-tests.el: New file

I noticed this bug because it breaks expanding abbrevs at the beginning
of the line.  E.g. you've just pressed 'R' to reply with quoting the
original message in Gnus, and point is at the beginning of the first
quoted line.  Then if you type a word that is the key for an abbrev, and
then whitespace, it won't expand.  I wonder if that can be fixed without
losing the benefits of João's change.

-- 
Sean Whitton





reply via email to

[Prev in Thread] Current Thread [Next in Thread]