From: Mauro Aranda <maurooaranda@gmail.com>
To: Pierre Rouleau <prouleau001@gmail.com>
Cc: 41831@debbugs.gnu.org
Subject: bug#41831: 26.3; Customize UI fails for defcustom with standard default of list heterogenous choice types
Date: Thu, 18 Jun 2020 09:54:42 -0300 [thread overview]
Message-ID: <CABczVwf7EBSUh+_YFV4dq=+yUxhQOFHa7e14WNXRBJrH+L1WFA@mail.gmail.com> (raw)
In-Reply-To: <49A07523-0B0A-4A6F-B640-E987468B5ECA@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1802 bytes --]
Hello Pierre.
Pierre Rouleau <prouleau001@gmail.com> writes:
> (defcustom pel-key-chords
> '((global "<>" ("<>\C-b"))
> (global "[]" ("[]\C-b"))
> (c-mode "{}" ("{\n\n}\C-p"))
> (c++-mode "{}" ("{\n\n}\C-p")))
> ;; (flyspell-mode "4r" flyspell-correct-word-before-point)
> ;; (flyspell-prog-mode "4r" flyspell-correct-word-before-point)
> ;; (global "6y" pel-find-file-at-point-in-window)
> ;; (global ".;" pel-search-word-from-top))
My guess is that the functions you are using here are not known to be
defined by the time you want to customize the variable. In other words,
`functionp' returns nil for these symbols at that time.
I followed this recipe:
1. Start emacs -Q
2. In the *scratch* buffer, I evaluated the following:
(defcustom pel-key-chords
'((global "<>" ("<>\C-b"))
(c-mode "{}" ("{\n\n}\C-p"))
(flyspell-mode "4r" flyspell-correct-word-before-point)
(global ".;" pel-search-word-from-top))
"..."
:type '(repeat
(choice
(list
:tag "expansion-keys"
(symbol :tag "mode" :value global)
(string :tag "chars")
(repeat (key-sequence :tag "key")))
(list
:tag "command"
(symbol :tag "mode" :value global)
(string :tag "chars")
(function :tag "command")))))
3. M-x customize-option RET pel-key-chords
That gives me the mismatch message. At this time, flyspell isn't
loaded, and `pel-search-word-from-top' is not defined.
4. C-x k RET, to kill the customize buffer.
5. Eval:
(require 'flyspell)
(defun pel-search-word-from-top ()
(ignore))
6. Again: M-x customize-option RET pel-key-chords
Now I see the customize buffer as expected, with the state being
STANDARD.
Would you try the above, to check if my guess is correct?
[-- Attachment #2: Type: text/html, Size: 2538 bytes --]
next prev parent reply other threads:[~2020-06-18 12:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-12 22:12 bug#41831: 26.3; Customize UI fails for defcustom with standard default of list heterogenous choice types Pierre Rouleau
2020-06-18 12:54 ` Mauro Aranda [this message]
[not found] ` <CALTqLiYs63z4x2oxEYMrv=L6nExJj8cYpKqAQPTsavdAWY=CsQ@mail.gmail.com>
2020-08-21 14:30 ` Mauro Aranda
2020-11-03 14:12 ` Mauro Aranda
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='CABczVwf7EBSUh+_YFV4dq=+yUxhQOFHa7e14WNXRBJrH+L1WFA@mail.gmail.com' \
--to=maurooaranda@gmail.com \
--cc=41831@debbugs.gnu.org \
--cc=prouleau001@gmail.com \
/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).