GNU bug report logs - #50552
28.0.50; Add context-menu-occur

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Sun, 12 Sep 2021 16:55:01 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.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 50552 <at> debbugs.gnu.org
Subject: bug#50552: 28.0.50; Add context-menu-occur
Date: Wed, 29 Sep 2021 20:31:18 +0300
> Why not use the new custom-add-choice function (or something along these
> lines) in dictionary.el?

I tried this:

  (custom-add-choice 'context-menu-functions
                     '(function-item :tag "Dictionary menu" context-menu-dictionary))

But it fails with the error:

  (error "Not a choice type: (repeat (choice (function-item ...")

>> 2. To allow using 'add-hook' in the user's init file with e.g.
>>
>>   (add-hook 'context-menu-functions 'context-menu-dictionary 1)
>
> In my case I am setting context-menu-functions manually, without
> add-hook. I am not sure if that breaks anything?

This is a valid way to configure it, it should not break.




This bug report was last modified 3 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.