Commit 2aee20fb authored by Mattias Engdegård's avatar Mattias Engdegård
Browse files

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.
parent 4c3a40a9
Pipeline #3051 failed with stage
in 54 minutes and 39 seconds
......@@ -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.
;; 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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment