[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.
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/)]
Thu, 08 Jul 2021 10:47:51 +0200
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Mark Barton <email@example.com> writes:
> 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))
> "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.
There are multiple solutions to this. But, as I wrote, you ought to
answer in the other thread I mentioned, the one that initiated this
change, and probably to Emacs Devel.