unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 49466@debbugs.gnu.org, juri@linkov.net
Subject: bug#49466: 28.0.50; C-<mouse-2> is undefined
Date: Fri, 09 Jul 2021 09:39:14 -0400	[thread overview]
Message-ID: <jwv4kd3a9ph.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83k0lzd85s.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Jul 2021 14:43:43 +0300")

> Stefan, is there some way to make this auto-loaded?  That is, whenever
> the user presses C-mouse-2, automatically load facemenu and show the
> drop-down menu in facemenu-menu?  I tried autoloading the
> facemenu-menu keymap like ispell and pcvs do, but that doesn't seem to
> work, in the sense that pressing C-mouse-2 complains that the binding
> is not a command.

The patch below works for me, should I push it?


        Stefan "who hasn't followed this discussion"


diff --git a/lisp/facemenu.el b/lisp/facemenu.el
index 9d75302a97..8631be917a 100644
--- a/lisp/facemenu.el
+++ b/lisp/facemenu.el
@@ -244,6 +244,8 @@ facemenu-menu
   (define-key map [fc] (cons "Face" 'facemenu-face-menu)))
 (defalias 'facemenu-menu facemenu-menu)
 
+;;;###autoload (autoload 'facemenu-menu "facemenu" nil nil 'keymap)
+;;;###autoload
 (define-key global-map [C-down-mouse-2] 'facemenu-menu)
 
 (easy-menu-add-item






  reply	other threads:[~2021-07-09 13:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-08 17:36 bug#49466: 28.0.50; C-<mouse-2> is undefined Juri Linkov
2021-07-08 19:11 ` bug#49466: [External] : " Drew Adams
2021-07-08 19:22 ` Eli Zaretskii
2021-07-09 11:43   ` Eli Zaretskii
2021-07-09 13:39     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-07-09 18:05       ` Eli Zaretskii
2021-07-09 19:53         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-10  6:12           ` Eli Zaretskii
2021-07-11  0:18             ` Juri Linkov
2021-07-11  6:04               ` Eli Zaretskii
2021-07-11 23:46                 ` 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

  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=jwv4kd3a9ph.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=49466@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=juri@linkov.net \
    --cc=monnier@iro.umontreal.ca \
    /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).