Hi,

Sorry for bringing this thread up again.

Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Rasmus <ras...@gmx.us> 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!

Reply via email to