(widget-sexp-validate): Allow whitespace after expression.
This commit is contained in:
parent
8392e13818
commit
3bc603c417
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-08-08 Lars Hansen <larsh@math.ku.dk>
|
||||
|
||||
* wid-edit.el (widget-sexp-validate): Allow whitespace after
|
||||
expression.
|
||||
|
||||
2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
|
||||
|
||||
* subr.el (global-unset-key, local-unset-key): Doc fixes.
|
||||
|
|
|
@ -3153,6 +3153,8 @@ It will read a directory name from the minibuffer when invoked."
|
|||
(setq err "Empty sexp -- use `nil'?")
|
||||
(unless (widget-apply widget :match (read (current-buffer)))
|
||||
(setq err (widget-get widget :type-error))))
|
||||
;; Allow whitespace after expression.
|
||||
(skip-syntax-forward "\\s-")
|
||||
(if (and (not (eobp))
|
||||
(not err))
|
||||
(setq err (format "Junk at end of expression: %s"
|
||||
|
|
Loading…
Add table
Reference in a new issue