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



Reply via email to