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

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

Re: bug in message-message mode?


From: Tassilo Horn
Subject: Re: bug in message-message mode?
Date: Sun, 17 Oct 2021 20:18:37 +0200
User-agent: mu4e 1.7.0; emacs 29.0.50

Emanuel Berg via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> writes:

>>> In `message-mode', when I have point at C (LINE FEED (LF))
>>> and a equals HYPHEN-MINUS and B SPACE, i.e.
>>>
>>> AABC
>>>    ^ here :)
>>>
>>> and do `message-beginning-of-line', nothing happens!
>>
>> I guess there is some special treatment for the signature separator
>> "-- \n". The two hyphens and the space have a `field' property value
>> `signature' which might explain the behavior, see (info "(elisp)
>> Fields").
>
> OK, but why?
>
> The --- after the header is also a delimiter, but there it works. (See
> `rfc822-goto-eoh'.)
>
> There's no reason it should work on the signature delimiter.
>
> Or is there?

I don't know.  But it seems that this behavior is only there when the
text has both a `field' and `rear-nonsticky' property.  You can
experiment with it in *stratch*:

--8<---------------cut here---------------start------------->8---
(insert "\n\n"
        (propertize "test" 'field 'foobar 'rear-nonsticky t)
        "\n")
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo



reply via email to

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