diff options
| author | Lars Hansen | 2004-08-08 19:38:51 +0000 |
|---|---|---|
| committer | Lars Hansen | 2004-08-08 19:38:51 +0000 |
| commit | 3bc603c41715a07b049bc26e4ec1022531b2f557 (patch) | |
| tree | 91e73b81e55cc1d5531ab2f450d5828e39dc0bd7 | |
| parent | 8392e13818eadb0645893eaf991d9cae429f2e78 (diff) | |
| download | emacs-3bc603c41715a07b049bc26e4ec1022531b2f557.tar.gz emacs-3bc603c41715a07b049bc26e4ec1022531b2f557.zip | |
(widget-sexp-validate): Allow whitespace after expression.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/wid-edit.el | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index afa583fd9ef..ac91216cdca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-08-08 Lars Hansen <larsh@math.ku.dk> | ||
| 2 | |||
| 3 | * wid-edit.el (widget-sexp-validate): Allow whitespace after | ||
| 4 | expression. | ||
| 5 | |||
| 1 | 2004-08-08 Luc Teirlinck <teirllm@auburn.edu> | 6 | 2004-08-08 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 7 | ||
| 3 | * subr.el (global-unset-key, local-unset-key): Doc fixes. | 8 | * subr.el (global-unset-key, local-unset-key): Doc fixes. |
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 8029fb3d5a6..05ef4b95658 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -3153,6 +3153,8 @@ It will read a directory name from the minibuffer when invoked." | |||
| 3153 | (setq err "Empty sexp -- use `nil'?") | 3153 | (setq err "Empty sexp -- use `nil'?") |
| 3154 | (unless (widget-apply widget :match (read (current-buffer))) | 3154 | (unless (widget-apply widget :match (read (current-buffer))) |
| 3155 | (setq err (widget-get widget :type-error)))) | 3155 | (setq err (widget-get widget :type-error)))) |
| 3156 | ;; Allow whitespace after expression. | ||
| 3157 | (skip-syntax-forward "\\s-") | ||
| 3156 | (if (and (not (eobp)) | 3158 | (if (and (not (eobp)) |
| 3157 | (not err)) | 3159 | (not err)) |
| 3158 | (setq err (format "Junk at end of expression: %s" | 3160 | (setq err (format "Junk at end of expression: %s" |