GNU bug report logs -
#14957
24.3.50; Flyspell language visible in mode line
Previous Next
Reported by: Sebastien Vauban <sva-news <at> mygooglest.com>
Date: Fri, 26 Jul 2013 13:01:03 UTC
Severity: wishlist
Tags: fixed
Found in version 24.3.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
> That's sub-optimal IMO. I like the "Fly[br]" variant much better.
Me too. Or... Fly/br? That's one character less. I did that instead;
feel free to change if "Fly[br]" is more understandable.
Michael Heerdegen <michael_heerdegen <at> web.de> writes:
> Isn't it possible to use a sequence of multiple `propertize' mode-line
> specs?
Hm... I thought they were overwritten here:
(defvar mode-line-modes
[...]
`(:propertize ("" minor-mode-alist)
mouse-face mode-line-highlight
help-echo "Minor mode\n\
mouse-1: Display minor mode menu\n\
mouse-2: Show help for minor mode\n\
mouse-3: Toggle minor modes"
local-map ,mode-line-minor-mode-keymap)
But the properties :propertize properties seem to survive? Yup.
Now implemented and pushed. I had to cheat a bit here, since the
define-minor-mode machinery doesn't allow evaluating anything at all in
the :lighter keyword, so I had to put a keymap construct directly into
it:
+ local-map (keymap
+ (mode-line keymap
+ (mouse-1 . ispell-change-dictionary))))))
Which is kinda hacky, but...
There was also some suggestion about showing this data in all buffers
that have ispell-dictionary bound, but in my testing, I found that that
led to the language being displayed in some special modes, too, so I
don't think that's workable. So it's just in Flyspell mode.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.