mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
Correct arguments to `skip-syntax-forward'
* lisp/wid-edit.el (widget-sexp-validate): Fix bad calls to `skip-syntax-forward', whose argument is not a regexp.
This commit is contained in:
parent
4c3a40a9b7
commit
2aee20fbf8
@ -3333,13 +3333,13 @@ It reads a directory name from an editable text field."
|
||||
(condition-case data ;Note: We get a spurious byte-compile warning here.
|
||||
(progn
|
||||
;; Avoid a confusing end-of-file error.
|
||||
(skip-syntax-forward "\\s-")
|
||||
(skip-syntax-forward "-")
|
||||
(if (eobp)
|
||||
(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-")
|
||||
(skip-syntax-forward "-")
|
||||
(if (and (not (eobp))
|
||||
(not err))
|
||||
(setq err (format "Junk at end of expression: %s"
|
||||
|
Loading…
Reference in New Issue
Block a user