emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] How does Org make TAB work on the console?


From: Thorsten Jolitz
Subject: [O] How does Org make TAB work on the console?
Date: Fri, 04 Oct 2013 13:23:30 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

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

[Prev in Thread] Current Thread [Next in Thread]