[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customize: Space char in `character' specification
From: |
martin rudalics |
Subject: |
Re: Customize: Space char in `character' specification |
Date: |
Mon, 22 May 2006 11:42:04 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> Thanks. It fixed the problem for the simple test case `rs-test-char',
> but not for the more complicated case `rs-test-list-char-string'.
The patch permits to insert a single space character in a `character'
field, something which was not allowed before. The error you see comes
from the `\n' on the next line. Replace the "\n" by a "\t" and the
error should disappear.
It's not easy to resolve the "\n" problem since wid-edit creates two
overlays when a newline character is last in an editable field. I'll
try to look at that eventually. Is the following inacceptable?
(defcustom rs-test-list-string
'("<body[^>]*>"
(("&" . "&")
(" " . " ")
("\n" . "<br>")
))
"List for inserting mail headers into the HTML output."
:type '(choice
(list :tag "Default"
(regexp :tag "Body regexp" "<body[^>]*>")
(repeat :value (("&" . "&")
(" " . " ")
("\n" . "<br>"))
(cons (string) (string :tag "Replacement"))))))