GNU bug report logs -
#41073
[PATCH] Adjust outline-minor-mode-map when prefix is changed
Previous Next
Reported by: Philip K <philip <at> warpmail.net>
Date: Mon, 4 May 2020 09:49:02 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41073 in the body.
You can then email your comments to 41073 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41073
; Package
emacs
.
(Mon, 04 May 2020 09:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Philip K <philip <at> warpmail.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 04 May 2020 09:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
---
lisp/outline.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lisp/outline.el b/lisp/outline.el
index 15fd6ea02e..aa8ed58ad9 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -289,12 +289,18 @@ outline-mode
(list (list nil (concat "^\\(?:" outline-regexp "\\).*$") 0)))
(add-hook 'change-major-mode-hook 'outline-show-all nil t))
+(defvar outline-minor-mode-map)
+
(defcustom outline-minor-mode-prefix "\C-c@"
"Prefix key to use for Outline commands in Outline minor mode.
The value of this variable is checked as part of loading Outline mode.
After that, changing the prefix key requires manipulating keymaps."
:type 'key-sequence
- :group 'outlines)
+ :group 'outlines
+ :set (lambda (sym val)
+ (define-key outline-minor-mode-map outline-minor-mode-prefix nil)
+ (define-key outline-minor-mode-map val outline-mode-prefix-map)
+ (set-default sym val)))
;;;###autoload
(define-minor-mode outline-minor-mode
--
2.20.1
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41073
; Package
emacs
.
(Sat, 08 Aug 2020 11:54:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 41073 <at> debbugs.gnu.org (full text, mbox):
Philip K <philip <at> warpmail.net> writes:
> +(defvar outline-minor-mode-map)
> +
> (defcustom outline-minor-mode-prefix "\C-c@"
> "Prefix key to use for Outline commands in Outline minor mode.
> The value of this variable is checked as part of loading Outline mode.
> After that, changing the prefix key requires manipulating keymaps."
> :type 'key-sequence
> - :group 'outlines)
> + :group 'outlines
> + :set (lambda (sym val)
> + (define-key outline-minor-mode-map outline-minor-mode-prefix nil)
> + (define-key outline-minor-mode-map val outline-mode-prefix-map)
> + (set-default sym val)))
I don't use outline mode, but this makes sense to me (if I understand
what it's doing correctly), so I've applied the patch.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 08 Aug 2020 11:54:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.1, send any further explanations to
41073 <at> debbugs.gnu.org and Philip K <philip <at> warpmail.net>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 08 Aug 2020 11:54:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 06 Sep 2020 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 338 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.