all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
Cc: help-gnu-emacs@gnu.org, reinersteib+gmane@imap.cc
Subject: Re: Customize: Space char in `character' specification
Date: Mon, 22 May 2006 11:42:04 +0200	[thread overview]
Message-ID: <4471876C.7050405@gmx.at> (raw)
In-Reply-To: <44703F85.7020400@gmx.at>

 > 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[^>]*>"
     (("&"   . "&amp;")
      (" "   . "&nbsp;")
      ("\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 (string) (string :tag "Replacement"))))))

  parent reply	other threads:[~2006-05-22  9:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-20 12:40 Customize: Space char in `character' specification Reiner Steib
2006-05-21 10:23 ` martin rudalics
2006-05-21 20:22   ` Reiner Steib
2006-05-22  9:42   ` martin rudalics [this message]
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=4471876C.7050405@gmx.at \
    --to=rudalics@gmx.at \
    --cc=help-gnu-emacs@gnu.org \
    --cc=reinersteib+gmane@imap.cc \
    /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.