Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-24 Thread Rasmus
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

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-23 Thread Rasmus
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

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-23 Thread Nicolas Goaziou
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,

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-23 Thread Rasmus
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

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-23 Thread Nicolas Goaziou
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

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-22 Thread Rasmus
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) >>

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-03-29 Thread Nicolas Goaziou
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

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-03-24 Thread Rasmus
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

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-03-24 Thread Nicolas Goaziou
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

Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-03-24 Thread Rasmus
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.

[O] [bug] orgstruct++-mode breaks backward-sentence

2015-03-24 Thread Rasmus
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