From: martin rudalics <rudalics@gmx.at>
Subject: Customizing `blink-matching-paren-distance'
Date: Fri, 26 Aug 2005 12:17:50 +0200 [thread overview]
Message-ID: <430EEC4E.7010004@gmx.at> (raw)
(defcustom blink-matching-paren-distance (* 25 1024)
"*If non-nil, is maximum distance to search for matching open-paren."
:type 'integer
:group 'paren-blinking)
The doc-string implies that this variable can be nil but customize does
not permit setting it to nil. Moreover, the doc-string should say what
happens when this variable is nil, like
(defcustom blink-matching-paren-distance (* 25 1024)
"*If non-nil, is maximum distance to search for matching open-paren.
If nil, search stops at the begin of the accessible portion of the buffer."
:type '(choice (const nil) integer)
:group 'paren-blinking)
Also, users should not be allowed to enter a negative value here, but I
don't know whether there's a standard way to do this. Writing
:type '(choice (const nil)
(integer
:match (lambda (widget value) (>= value 0))))
causes a misleading error message when a negative value is entered.
A simple customization type like `nonnegative-integer' would be probably
the right thing. But this might lead to asking for `positive-integer',
`nonnegative-number', `positive-float', ...
next reply other threads:[~2005-08-26 10:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-26 10:17 martin rudalics [this message]
2005-08-27 3:41 ` Customizing `blink-matching-paren-distance' Richard M. Stallman
2005-08-27 12:31 ` Eli Zaretskii
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=430EEC4E.7010004@gmx.at \
--to=rudalics@gmx.at \
/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).