From: "Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: "Overwrite" toggle in the Edit menu
Date: Mon, 11 Feb 2002 19:43:22 -0500 [thread overview]
Message-ID: <200202120043.g1C0hNa04532@rum.cs.yale.edu> (raw)
In-Reply-To: 5xy9hzh8bj.fsf@kfs2.cua.dk
> Richard Stallman <rms@gnu.org> writes:
>
> > I noticed this a week ago and started implementing a new feature
> > to make it work reliably. It almost works, but has a strange bug:
> > the mouse menu completely stopped working.
>
> > Here are the changes. Can anyone debug this problem?
>
> Could it be that in the new code below, mode-line-minor-mode-keymap
> is used literally (as a symbol) rather than its value ?
>
> > (setq-default mode-line-modes
> > (list
> > (propertize " %[(" 'help-echo help-echo)
> > ! '(:propertize ("" mode-name mode-line-process minor-mode-alist)
> > ! help-echo "mouse-3: minor mode menu"
> > ! local-map mode-line-minor-mode-keymap)
> > (propertize "%n" 'help-echo "mouse-2: widen"
> > 'local-map (make-mode-line-mouse-map
> > 'mouse-2 #'mode-line-widen))
>
> In the old code, its value was used through this function:
>
> > - (defun mode-line-mode-name () "\
> > - Return a string to display in the mode line for the current mode name."
> > - (when (stringp mode-name)
> > - (if (equal mode-name mode-line-copied-mode-name)
> > - mode-line-copied-mode-name
> > - (setq mode-line-copied-mode-name
> > - (propertize mode-name
> > - 'local-map mode-line-minor-mode-keymap
> > - 'help-echo "mouse-3: minor mode menu"))))
> > - mode-line-copied-mode-name)
> > -
>
> Maybe something like this will work:
>
> (setq-default mode-line-modes
> (list
> (propertize " %[(" 'help-echo help-echo)
> `(:propertize ("" mode-name mode-line-process minor-mode-alist)
> help-echo "mouse-3: minor mode menu"
> local-map ,mode-line-minor-mode-keymap)
> (propertize "%n" 'help-echo "mouse-2: widen"
> 'local-map (make-mode-line-mouse-map
> 'mouse-2 #'mode-line-widen))
Or just
(fset 'mode-line-minor-mode-keymap mode-line-minor-mode-keymap)
-- Stefan
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2002-02-12 0:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-09 12:21 "Overwrite" toggle in the Edit menu Pavel Janík
2002-02-09 14:43 ` Eli Zaretskii
2002-02-10 18:16 ` Pavel Janík
2002-02-10 19:46 ` Kim F. Storm
2002-02-10 21:39 ` Andreas Schwab
2002-02-11 18:47 ` Richard Stallman
2002-02-12 0:06 ` Kim F. Storm
2002-02-12 0:43 ` Stefan Monnier [this message]
2002-02-13 15:38 ` Richard Stallman
2002-02-11 2:09 ` Richard Stallman
2002-02-11 9:16 ` Kim F. Storm
2002-02-12 15:23 ` Richard Stallman
2002-02-11 9:43 ` Francesco Potorti`
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200202120043.g1C0hNa04532@rum.cs.yale.edu \
--to=monnier+gnu/emacs@rum.cs.yale.edu \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).