GNU bug report logs -
#49466
28.0.50; C-<mouse-2> is undefined
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Thu, 8 Jul 2021 17:44:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
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 49466 in the body.
You can then email your comments to 49466 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#49466
; Package
emacs
.
(Thu, 08 Jul 2021 17:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> linkov.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 08 Jul 2021 17:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The Info manual says in (info "(emacs) Menu Mouse Clicks")
‘C-mouse-2’
This menu contains entries for examining faces and other text
properties, and well as for setting them (the latter is mainly
useful when editing enriched text; *note Enriched Text::).
But clicking C-mouse-2 signals the error:
C-<mouse-2> is undefined
The above Info node has a link to the "Enriched Text" node
where (info "(emacs) Editing Format Info") says:
The easiest way to alter properties is with the ‘Text Properties’ menu.
You can get to this menu from the ‘Edit’ menu in the menu bar (*note
Menu Bar::), or with ‘C-mouse-2’ (*note Menu Mouse Clicks::).
However, ‘C-mouse-2’ fails even in enriched-mode,
e.g. after visiting etc/enriched.txt.
Also the documented ‘Text Properties’ menu
is not displayed in enriched-mode.
PS: There is also this comment in lisp/mouse.el,
maybe it should be removed:
;; C-down-mouse-2 is bound in facemenu.el.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Thu, 08 Jul 2021 19:12:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 49466 <at> debbugs.gnu.org (full text, mbox):
> The Info manual says in (info "(emacs) Menu Mouse Clicks")
> ‘C-mouse-2’
> This menu contains entries for examining faces and other text
> properties, and well as for setting them (the latter is mainly
> useful when editing enriched text; *note Enriched Text::).
>
> But clicking C-mouse-2 signals the error:
> C-<mouse-2> is undefined
>
> The above Info node has a link to the "Enriched Text" node
> where (info "(emacs) Editing Format Info") says:
>
> The easiest way to alter properties is with the ‘Text Properties’ menu.
> You can get to this menu from the ‘Edit’ menu in the menu bar (*note
> Menu Bar::), or with ‘C-mouse-2’ (*note Menu Mouse Clicks::).
>
> However, ‘C-mouse-2’ fails even in enriched-mode,
> e.g. after visiting etc/enriched.txt.
>
> Also the documented ‘Text Properties’ menu
> is not displayed in enriched-mode.
>
> PS: There is also this comment in lisp/mouse.el,
> maybe it should be removed:
> ;; C-down-mouse-2 is bound in facemenu.el.
More fallout from removing facemenu load by default,
I guess. (Why was that done, again?)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Thu, 08 Jul 2021 19:23:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 49466 <at> debbugs.gnu.org (full text, mbox):
> From: Juri Linkov <juri <at> linkov.net>
> Date: Thu, 08 Jul 2021 20:36:22 +0300
>
> The Info manual says in (info "(emacs) Menu Mouse Clicks")
>
> ‘C-mouse-2’
> This menu contains entries for examining faces and other text
> properties, and well as for setting them (the latter is mainly
> useful when editing enriched text; *note Enriched Text::).
>
> But clicking C-mouse-2 signals the error:
>
> C-<mouse-2> is undefined
>
> The above Info node has a link to the "Enriched Text" node
> where (info "(emacs) Editing Format Info") says:
>
> The easiest way to alter properties is with the ‘Text Properties’ menu.
> You can get to this menu from the ‘Edit’ menu in the menu bar (*note
> Menu Bar::), or with ‘C-mouse-2’ (*note Menu Mouse Clicks::).
>
> However, ‘C-mouse-2’ fails even in enriched-mode,
> e.g. after visiting etc/enriched.txt.
>
> Also the documented ‘Text Properties’ menu
> is not displayed in enriched-mode.
>
> PS: There is also this comment in lisp/mouse.el,
> maybe it should be removed:
>
> ;; C-down-mouse-2 is bound in facemenu.el.
That's because that binding was removed as part of butchering
facemenu.el in Emacs 28.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Fri, 09 Jul 2021 11:45:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 49466 <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 08 Jul 2021 22:22:04 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 49466 <at> debbugs.gnu.org
>
> > From: Juri Linkov <juri <at> linkov.net>
> > Date: Thu, 08 Jul 2021 20:36:22 +0300
> >
> > The Info manual says in (info "(emacs) Menu Mouse Clicks")
> >
> > ‘C-mouse-2’
> > This menu contains entries for examining faces and other text
> > properties, and well as for setting them (the latter is mainly
> > useful when editing enriched text; *note Enriched Text::).
> >
> > But clicking C-mouse-2 signals the error:
> >
> > C-<mouse-2> is undefined
>
> That's because that binding was removed as part of butchering
> facemenu.el in Emacs 28.
I resurrected the C-mouse-2 binding, but it still needs facemenu to be
loaded before it will work.
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Fri, 09 Jul 2021 13:40:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 49466 <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Fri, 09 Jul 2021 18:06:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 49466 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: juri <at> linkov.net, 49466 <at> debbugs.gnu.org
> Date: Fri, 09 Jul 2021 09:39:14 -0400
>
> > 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?
Yes, please.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Fri, 09 Jul 2021 19:55:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 49466 <at> debbugs.gnu.org (full text, mbox):
>> The patch below works for me, should I push it?
> Yes, please.
Done,
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Sat, 10 Jul 2021 06:13:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 49466 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: juri <at> linkov.net, 49466 <at> debbugs.gnu.org
> Date: Fri, 09 Jul 2021 15:53:59 -0400
>
> >> The patch below works for me, should I push it?
> > Yes, please.
>
> Done,
Thanks.
Juri, is there anything else to be done here, or can we close this
bug?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Sun, 11 Jul 2021 00:21:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 49466 <at> debbugs.gnu.org (full text, mbox):
>> >> The patch below works for me, should I push it?
>> > Yes, please.
>>
>> Done,
>
> Thanks.
>
> Juri, is there anything else to be done here, or can we close this
> bug?
What remains to do is this:
The documentation of the Enriched Mode in
(info "(emacs) Editing Format Info") says:
The easiest way to alter properties is with the ‘Text Properties’ menu.
You can get to this menu from the ‘Edit’ menu in the menu bar
But the documented ‘Text Properties’ menu is not displayed in enriched-mode.
This can be fixed by just requiring facemenu in enriched.el:
diff --git a/lisp/textmodes/enriched.el b/lisp/textmodes/enriched.el
index ba8fac81f2..877658a5a5 100644
--- a/lisp/textmodes/enriched.el
+++ b/lisp/textmodes/enriched.el
@@ -38,7 +38,7 @@
;;; Code:
-(provide 'enriched)
+(require 'facemenu)
;;;
;;; Variables controlling the display
@@ -538,4 +538,6 @@ enriched-decode-display-prop
(list start end 'display prop)
(list start end 'display (list 'disable-eval prop)))))
+(provide 'enriched)
+
;;; enriched.el ends here
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Sun, 11 Jul 2021 06:06:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 49466 <at> debbugs.gnu.org (full text, mbox):
> From: Juri Linkov <juri <at> linkov.net>
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 49466 <at> debbugs.gnu.org
> Date: Sun, 11 Jul 2021 03:18:42 +0300
>
> What remains to do is this:
>
> The documentation of the Enriched Mode in
> (info "(emacs) Editing Format Info") says:
>
> The easiest way to alter properties is with the ‘Text Properties’ menu.
> You can get to this menu from the ‘Edit’ menu in the menu bar
>
> But the documented ‘Text Properties’ menu is not displayed in enriched-mode.
>
> This can be fixed by just requiring facemenu in enriched.el:
Fine with me, please install.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#49466
; Package
emacs
.
(Sun, 11 Jul 2021 23:48:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 49466 <at> debbugs.gnu.org (full text, mbox):
tags 49466 fixed
close 49466 28.0.50
quit
>> What remains to do is this:
>>
>> The documentation of the Enriched Mode in
>> (info "(emacs) Editing Format Info") says:
>>
>> The easiest way to alter properties is with the ‘Text Properties’ menu.
>> You can get to this menu from the ‘Edit’ menu in the menu bar
>>
>> But the documented ‘Text Properties’ menu is not displayed in enriched-mode.
>>
>> This can be fixed by just requiring facemenu in enriched.el:
>
> Fine with me, please install.
So now installed and closed.
Added tag(s) fixed.
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Sun, 11 Jul 2021 23:48:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.0.50, send any further explanations to
49466 <at> debbugs.gnu.org and Juri Linkov <juri <at> linkov.net>
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Sun, 11 Jul 2021 23:48: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
.
(Mon, 09 Aug 2021 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 259 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.