From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: How does Org make TAB work on the console?
Date: Fri, 04 Oct 2013 13:23:30 +0200 [thread overview]
Message-ID: <878uy9wa8d.fsf@gmail.com> (raw)
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 other threads:[~2013-10-04 11:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uy9wa8d.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).