* How does Org make TAB work on the console?
@ 2013-10-04 11:23 Thorsten Jolitz
0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2013-10-04 11:23 UTC (permalink / raw)
To: emacs-orgmode
Hi List,
Org-mode does
,--------------------------------------------------
| (org-defkey org-mode-map [(tab)] 'org-cycle)
`--------------------------------------------------
to bind TAB to org-cycle, and Outshine does this
,---------------------------------------------
| (outshine-define-key-with-fallback
| outline-minor-mode-map (kbd "<tab>")
| (outline-cycle arg) (outline-on-heading-p))
`---------------------------------------------
Under X11 both work, but on the console solo Org-mode's TAB key works,
Outshine's not: TAB runs 'indent-for-tab-command' then even when
'outline-on-heading.p' is true.
One would think immediatley that the macro
`outshine-define-key-with-fallback' is the culprit, but all of the
following 4 Outshine keybindings do work on the console (with prefix
'M-#' in my case):
,---------------------------------------------------------------------------
| (let ((map (lookup-key outline-minor-mode-map outline-minor-mode-prefix)))
| (outshine-define-key-with-fallback
| map (kbd "J") (outline-hide-more) (outline-on-heading-p))
| (outshine-define-key-with-fallback
| map (kbd "L") (outline-show-more) (outline-on-heading-p))
| (define-key map (kbd "I") 'outline-previous-visible-heading)
| (define-key map (kbd "K") 'outline-next-visible-heading) ...
`---------------------------------------------------------------------------
so here the macro seems to work.
Any idea what makes TAB work for Org-mode but not for Outshine on the
console?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-04 11:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-04 11:23 How does Org make TAB work on the console? Thorsten Jolitz
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).