[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: |
Sun, 24 May 2015 12:37:45 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Nicolas Goaziou <address@hidden> 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 to do with the Meta. Other Meta bindings use ?\e and the numeric
value that is picked up for \M-a is pretty large... Sometimes I managed
to get org-backward-sentence in the orgstruct-mode-map, but it just wans't
picked up.
Any hints would be appreciated.
Rasmus
My test:
(progn
(add-to-list 'load-path "~/src/code/org-mode/lisp")
(require 'org)
(require 'cl)
(mapcar (lambda (mode)
(with-temp-buffer
(insert "* test
- aaa baa
zaa")
(text-mode)
(funcall mode)
(call-interactively (or (local-key-binding "\M-a")
(global-key-binding "\M-a")))
(cons (point) (or (local-key-binding "\M-a")
(global-key-binding "\M-a")))))
'(text-mode turn-on-orgstruct++ org-mode)))
--
Bang bang