From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: How does Org make TAB work on the console? Date: Fri, 04 Oct 2013 13:23:30 +0200 Message-ID: <878uy9wa8d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS3U7-0003UG-Sj for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 07:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS3Tz-0001nZ-3i for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 07:23:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:59376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS3Ty-0001nR-St for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 07:23:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VS3Tx-0007Qf-Ro for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 13:23:41 +0200 Received: from e178190177.adsl.alicedsl.de ([85.178.190.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 13:23:41 +0200 Received: from tjolitz by e178190177.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 13:23:41 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 "") | (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