[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: tab key no longer bound to org-cycle in commit 565361eb69 [9.4.
From: |
Mark Barton |
Subject: |
Re: Bug: tab key no longer bound to org-cycle in commit 565361eb69 [9.4.6 (9.4.6-10-gee652a-elpaplus @ /Users/bartm002/.emacs.d/elpa/org-plus-contrib-20210705/)] |
Date: |
Wed, 7 Jul 2021 21:18:27 -0700 |
So I put back the mapping in org-key.el to map TAB instead of <tab> in my local
copy and instead commented out line 185 in outline.el to get TAB to map to
org-cycle.
——snippet from outline.el
(defvar outline-mode-cycle-map
(let ((map (make-sparse-keymap)))
(let ((tab-binding `(menu-item
"" outline-cycle
;; Only takes effect if point is on a heading.
:filter ,(lambda (cmd)
(when (outline-on-heading-p) cmd)))))
(define-key map [tab] tab-binding)
(define-key map (kbd "TAB") tab-binding)
(define-key map (kbd "<backtab>") #'outline-cycle-buffer))
map)
"Keymap used by `outline-mode-map' and `outline-minor-mode-cycle'.")
Does that sound like the right thing to do? If so then I could submit it to the
Emacs dev list.
I don’t see outline as a minor mode listed when I use C-h m while in an org
file expecting org-cycle.
Mark
> On Jul 7, 2021, at 6:35 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>
> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> On Tuesday, 6 Jul 2021 at 18:05, Mark Barton wrote:
>>> I normally use C-RET to enter a new headline and then press TAB to
>>> make it child headline. Recently it stopped working and I think I have
>>> it tracked down to the change that was made last week. I could be
>>> missing something that allows “TAB” to work for a kdb binding, but the
>>> previous format of "<tab>" works.
>>
>> I've also found TAB no longer moving from cell to cell in tables. I use
>> evil and now TAB (translated from <tab> according to C-h c) is bound to
>> evil-jump-forward. The only change in my environment has been updating
>> org.
>
> Binding <tab> is frowned upon, because it has higher priority than TAB,
> and also because it doesn't work everywhere, like in terminals.
>
> If TAB doesn't work properly in Org, then something, e.g., a minor mode
> (Evil in the second case), is stealing the binding. I guess you have to
> reclaim it back.
>
> Please see (and answer there)
> <00ca1c7b-1e1d-fc91-eef3-dfc29b51b825@daniel-mendler.de/">https://orgmode.org/list/00ca1c7b-1e1d-fc91-eef3-dfc29b51b825@daniel-mendler.de/>
>
> Regards,
> --
> Nicolas Goaziou
>