Nicolas Goaziou writes:
> I think the best we can do is to hijack M-a/M-e when `orgstruct-mode' is
> used. `orgtbl-mode' already does it actually.
I tried to do this, but somehow I cannot get the magic that builds
orgstruct-mode-map to recognize org-{forward,backward}-sentence. I think
it has t
Nicolas Goaziou writes:
> You can use `advice-add' in this case.
Or just add-function.
*I* can solve it one way or the other. But that does not
necessarily mean that it's not a bug. And that was the question.
—Rasmus
--
. . . It begins of course with The Internet. A Net of Peers
Rasmus writes:
> It wouldn't solve my particular issue, as I use (a package that uses)
> backward-sentence for asserting whether to capitalize a word. I could
> maintain my own copy of the package, though.
You can use `advice-add' in this case.
Regards,
Nicolas Goaziou writes:
> I think the best we can do is to hijack M-a/M-e when `orgstruct-mode' is
> used. `orgtbl-mode' already does it actually.
>
> WDYT?
It wouldn't solve my particular issue, as I use (a package that uses)
backward-sentence for asserting whether to capitalize a word. I coul
Rasmus writes:
> 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
Hi,
Sorry for bringing this thread up again.
Nicolas Goaziou writes:
> Rasmus 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)
>>
Rasmus 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 or
Hi,
Nicolas Goaziou writes:
>>> Consider the following test file in text-mode where "|" is the cursor.
>>>
>>>1. Foo bar
>>>baz|
>>>
>>> Before turning on orgstruct++-mode backward-sentence will correctly go to
>>> "|Foo". When turning on orgstruct-mode, backward-sentence will also
Hello,
Rasmus writes:
> Rasmus writes:
>
>> Hi,
>>
>> Consider the following test file in text-mode where "|" is the cursor.
>>
>>1. Foo bar
>>baz|
>>
>> Before turning on orgstruct++-mode backward-sentence will correctly go to
>> "|Foo". When turning on orgstruct-mode, backward-s
Rasmus writes:
> Hi,
>
> Consider the following test file in text-mode where "|" is the cursor.
>
>1. Foo bar
>baz|
>
> Before turning on orgstruct++-mode backward-sentence will correctly go to
> "|Foo". When turning on orgstruct-mode, backward-sentence will also work
> correctly.
Hi,
Consider the following test file in text-mode where "|" is the cursor.
1. Foo bar
baz|
Before turning on orgstruct++-mode backward-sentence will correctly go to
"|Foo". When turning on orgstruct-mode, backward-sentence will also work
correctly. So somehow orgstruct++ does someth
11 matches
Mail list logo