(widget-sexp-validate): Allow whitespace after expression.
authorLars Hansen <larsh@soem.dk>
Sun, 8 Aug 2004 19:38:51 +0000 (19:38 +0000)
committerLars Hansen <larsh@soem.dk>
Sun, 8 Aug 2004 19:38:51 +0000 (19:38 +0000)
lisp/ChangeLog
lisp/wid-edit.el

index afa583f..ac91216 100644 (file)
@@ -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.
index 8029fb3..05ef4b9 100644 (file)
@@ -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"