GNU bug report logs -
#11028
24.0.94; bad lighter and menus for `text-scale-mode'
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Fri, 16 Mar 2012 19:26:01 UTC
Severity: minor
Found in version 24.0.94
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
"Drew Adams" <drew.adams <at> oracle.com> writes:
> -1
> -------------------
> Turn Off minor mode
> Help for minor mode
[...]
> Which minor mode? No idea still.
This seems like it's been kinda hackishly implemented.
This is the function that shows the menu...
(defun mouse-minor-mode-menu (event)
"Show minor-mode menu for EVENT on minor modes area of the mode line."
(interactive "@e")
(let ((indicator (car (nth 4 (car (cdr event))))))
(debug event)
(minor-mode-menu-from-indicator indicator)))
Hm...
but then
(defun minor-mode-menu-from-indicator (indicator)
[...]
(let* ((minor-mode (lookup-minor-mode-from-indicator indicator))
(mm-fun (or (get minor-mode :minor-mode-function) minor-mode)))
Wow, that's a roundabout way of doing it... Anyway, we then have the
mode symbol... What about using a pretty version of the mode symbol as
the menu header? That would be "Text Scale Mode" in this case.
I think that would be better than using the lighter as the menu header.
What's the name of the function that creates pretty strings from symbol
names?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 176 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.