From: Philipp Stephani Date: Mon, 29 Jan 2018 23:05:58 +0000 (+0100) Subject: * lisp/emacs-lisp/rx.el (rx): Fix the definition of 'blank'. X-Git-Tag: emacs-26.1-rc1~296 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=956807bd1fc2d102714282fdfbb8d2a549dc8e17;p=emacs.git * lisp/emacs-lisp/rx.el (rx): Fix the definition of 'blank'. --- diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index 37aa25b556d..c4f6d4f70ea 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el @@ -57,7 +57,6 @@ ;; (rx (and line-start (0+ (in "a-z")))) ;; ;; "\n[^ \t]" -;; (rx (and "\n" (not blank))), or ;; (rx (and "\n" (not (any " \t")))) ;; ;; "\\*\\*\\* EOOH \\*\\*\\*\n" @@ -74,9 +73,9 @@ ;; "^content-transfer-encoding:\\(\n?[\t ]\\)*quoted-printable\\(\n?[\t ]\\)*" ;; (rx (and line-start ;; "content-transfer-encoding:" -;; (+ (? ?\n)) blank +;; (+ (? ?\n)) (any " \t") ;; "quoted-printable" -;; (+ (? ?\n)) blank)) +;; (+ (? ?\n)) (any " \t")) ;; ;; (concat "^\\(?:" something-else "\\)") ;; (rx (and line-start (eval something-else))), statically or @@ -962,7 +961,11 @@ CHAR matches 0 through 9, a through f and A through F. `blank' - matches space and tab only. + matches horizontal whitespace, as defined by Annex C of the + Unicode Technical Standard #18. In particular, it matches + spaces, tabs, and other characters whose Unicode + `general-category' property indicates they are spacing + separators. `graphic', `graph' matches graphic characters--everything except whitespace, ASCII