all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* type checking for arbitrary lisp objects
@ 2014-04-11 19:10 Roland Winkler
  2014-04-11 19:12 ` Daniel Colascione
  0 siblings, 1 reply; 6+ messages in thread
From: Roland Winkler @ 2014-04-11 19:10 UTC (permalink / raw)
  To: emacs-devel

The function bbdb-check-type performs a type checking for atomic or
compound lisp objects by comparing these objects against patterns
that use a syntax kind of similar to the :type keyword used by
defcustom (but without the extra keywords such as :tag used by
defcustom).  So a typical pattern is something like the following

   (vector (or string (const nil))
           (repeat string)
           (repeat (vector string (repeat string)
                           string string))
           (repeat (cons symbol string))
           sexp)

I am just wondering: Am I here reinventing the wheel because
something similar has been developed already in some other package?
If not, could this possibly also be useful for other packages (for
example, for defining predicates used by the safe-local-variable
property)?

Roland



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-12 13:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11 19:10 type checking for arbitrary lisp objects Roland Winkler
2014-04-11 19:12 ` Daniel Colascione
2014-04-11 19:22   ` Roland Winkler
2014-04-11 20:03     ` Stefan Monnier
2014-04-12  3:32       ` Roland Winkler
2014-04-12 13:16         ` Stefan Monnier

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.