branch: externals/relint commit a50ed0b3c15339ae3979d3aa2ac61bf8bdf7a160 Author: Mattias Engdegård <matti...@acm.org> Commit: Mattias Engdegård <matti...@acm.org>
Don't escape printable chars in rx warnings --- relint.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relint.el b/relint.el index b775b8a..cbdd340 100644 --- a/relint.el +++ b/relint.el @@ -1355,7 +1355,7 @@ character alternative: `[' followed by a regexp-generating expression." (if (eq from to) (char-to-string from) (format "%c-%c" from to)) - t)) + nil)) (defun relint--intersecting-range (from to ranges) "Return a range in RANGES intersecting [FROM,TO], or nil if none. @@ -1438,7 +1438,7 @@ than just to a surrounding or producing expression." file pos (if exact-path (cons i path) path) (format-message "Single-character range `%s'" - (relint--escape-string (format "%c-%c" from to) t)) + (relint--escape-string (format "%c-%c" from to) nil)) s j)) ((= to (1+ from)) (relint--warn