unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: "Simen Heggestøyl" <simenheg@gmail.com>
Cc: 27363@debbugs.gnu.org
Subject: bug#27363: 26.0.50; Error with customize-group
Date: Fri, 16 Jun 2017 20:32:21 -0400	[thread overview]
Message-ID: <us8tkr4foq.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <1497634467.28243.0@smtp.gmail.com> ("Simen \=\?utf-8\?Q\?Heggest\?\= \=\?utf-8\?Q\?\=C3\=B8yl\=22's\?\= message of "Fri, 16 Jun 2017 19:34:27 +0200")


I'm not sure. On the one hand, those :options do nothing, on the other
hand, maybe having them there acts like an explanatory comment.

I see there are some strings with :options too, which also don't work,
but don't cause errors either. Eg tex-open-quote.
Only :types with even numbers of elements, eg '(repeat character)', are
a problem.

The following change avoids the error without removing the :options.
I don't really get custom-variable-type. It's not obvious to me that the
:type of a defcustom should be valid as a widget.

--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -2518,7 +2518,7 @@ custom-variable-type
 		  (copy-sequence type)
 		(list type))))
     (when options
-      (widget-put tmp :options options))
+      (setcdr tmp (append (list :options options) (cdr tmp))))
     tmp))
 
 (defun custom-variable-value-create (widget)





  reply	other threads:[~2017-06-17  0:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14 19:24 bug#27363: 26.0.50; Error with customize-group Simen Heggestøyl
2017-06-14 22:37 ` Glenn Morris
2017-06-16 17:34   ` Simen Heggestøyl
2017-06-17  0:32     ` Glenn Morris [this message]
2017-06-19 18:55       ` Glenn Morris
2017-06-20 19:01         ` Simen Heggestøyl

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=us8tkr4foq.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=27363@debbugs.gnu.org \
    --cc=simenheg@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).