[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug] orgstruct++-mode breaks backward-sentence
From: |
Rasmus |
Subject: |
Re: [O] [bug] orgstruct++-mode breaks backward-sentence |
Date: |
Fri, 22 May 2015 17:52:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Hi,
Sorry for bringing this thread up again.
Nicolas Goaziou <address@hidden> writes:
> Rasmus <address@hidden> writes:
>
>> Forget about fill-paragraph. Try this with test-org as nil and non-nil:
>>
>> (let ((test-org nil))
>> (switch-to-buffer "test.org")
>> (if test-org (org-mode) (text-mode))
>> (erase-buffer)
>> (insert "1. foo bar\n baz")
>> (backward-sentence))
>>
>> When the buffer is in org-mode backward sentence behaves differently from
>> when it's in text-mode. I think text-mode behaves correctly.
>
> This should be fixed in 98ec17e204689f415200a2930fc148bf6a4dfe49. Thank
> you.
Actually when calling just backward-sentence this still seems broken.
(mapcar (lambda (mode)
(with-temp-buffer
(text-mode)
(funcall mode)
(insert"- foo
bar")
(backward-sentence)
(point)))
'(text-mode org-mode turn-on-orgstruct++))
=> (1 9 9)
It only works if I explicitly call org-backward-sentence, not
backward-sentence. In orgstruct-mode this seems unfortunate.
—Rasmus
--
Spil noget med Slayer!
- Re: [O] [bug] orgstruct++-mode breaks backward-sentence,
Rasmus <=