From: Juri Linkov <juri@linkov.net>
To: Rah Guzar <rahguzar@zohomail.eu>
Cc: 60426@debbugs.gnu.org
Subject: bug#60426: 29.0.60; Binding to outline-minor-mode-cycle-map correctly is unintuitive and hard
Date: Thu, 05 Jan 2023 19:45:37 +0200 [thread overview]
Message-ID: <861qo95fzi.fsf@mail.linkov.net> (raw)
In-Reply-To: <871qohm8ht.fsf@zohomail.eu> (Rah Guzar via's message of "Fri, 30 Dec 2022 12:12:15 +0100")
> Looking around I found that it was because the implementation had
> changed, it no longer used `outline-minor-mode-cycle-map` as
> the value of keymap text property on headings but rather used an
> extended menu item. After looking through the source I finally
> figured that the way to achieve what I wanted was to bind
>
> `(menu-item "" outline-cycle :filter ,(lambda (cmd) (when (outline-on-heading-p) cmd)))`
>
> to `<tab>`.
>
> I think this is very confusing and is going to lead to some head
> scratching for people who might have other keys bound on
> `outline-minor-mode-cycle-map` since that map is now the parent
> of `outline-minor-mode-map`. I think with the current approach it
> will be better to entirely remove `outline-minor-mode-cycle-map`
> and bind the extended menu items directly on `outline-minor-mode-map`
> (the bindings are actually already on the `outline-minor-mode-map`).
> Another way can be to not make `outline-minor-mode-cycle-map` make
> a parent of `outline-minor-mode-map`, obsolete it and add to its
> docstring a description of how to achieve the same effect using
> extended menu items.
We expected this change to be backwards-compatible assuming
that users would define keys in outline-minor-mode-cycle-map
using the same helper as is seen in the default definition:
(outline-minor-mode-cycle--bind map (kbd "TAB") #'outline-cycle)
Maybe this requirement should be documented in the docstring
and mentioned in NEWS?
next prev parent reply other threads:[~2023-01-05 17:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-30 11:12 bug#60426: 29.0.60; Binding to outline-minor-mode-cycle-map correctly is unintuitive and hard Rah Guzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-05 17:45 ` Juri Linkov [this message]
2023-01-05 18:28 ` Rah Guzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-10 18:59 ` Juri Linkov
2023-01-11 16:29 ` Rah Guzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-11 19:38 ` Juri Linkov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=861qo95fzi.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=60426@debbugs.gnu.org \
--cc=rahguzar@zohomail.eu \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.