all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Customize: Space char in `character' specification
Date: Sat, 20 May 2006 14:40:30 +0200	[thread overview]
Message-ID: <v94pzkdg3l.fsf@marauder.physik.uni-ulm.de> (raw)

Hi,

I can't seem to find the right syntax for the following defcustom, or
there's a bug in customize (both, Emacs 21 and 22):

(defcustom rs-test-list-char-string
  '("<body[^>]*>"
    ((?&  . "&amp;")
     (?   . "&nbsp;") ;; This is the problematic entry
     (?\n . "<br>")
     ))
  "List for inserting mail headers into the HTML output."
  :type '(choice
	  (list :tag "Default"
		(regexp :tag "Body regexp" "<body[^>]*>")
		(repeat :value ((?&  . "&amp;")
				(?   . "&nbsp;")
				(?\n . "<br>"))
			(cons (character) (string :tag "Replacement"))))))

After modifying the "Body regexp" and pressing "Set for Current
Session", I get "This field should contain a single character". 

I can reproduce the same problem with the following defcustom:

(defcustom rs-test-char
  ?  ;; whitespace
  "Foo bar"
  :type '(character))

Replace the space character with some other character and change is
back to a space.  "Set for Current Session" again barfs with "This
field should contain a single character".

What am I doing wrong?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

             reply	other threads:[~2006-05-20 12:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-20 12:40 Reiner Steib [this message]
2006-05-21 10:23 ` Customize: Space char in `character' specification martin rudalics
2006-05-21 20:22   ` Reiner Steib
2006-05-22  9:42   ` martin rudalics
2006-05-22 12:39     ` Reiner Steib
2006-05-23  9:38       ` martin rudalics

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v94pzkdg3l.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.