From d17c5adc05785f7c5b37f82979d10bdf5f1c2886 Mon Sep 17 00:00:00 2001 From: David Ponce Date: Thu, 24 Aug 2023 12:55:03 +0200 Subject: [PATCH] Fix regexp for recognizing PBM images * lisp/image.el (image-type-header-regexps): Don't use [:space:], as its meaning depends on the current buffer's syntax tables. (Bug#65496) --- lisp/image.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/image.el b/lisp/image.el index 104fea407ff..d488612def8 100644 --- a/lisp/image.el +++ b/lisp/image.el @@ -38,7 +38,7 @@ (defconst image-type-header-regexps `(("\\`/[\t\n\r ]*\\*.*XPM.\\*/" . xpm) ("\\`P[1-6]\\(?:\ -\\(?:\\(?:#[^\r\n]*[\r\n]\\)*[[:space:]]\\)+\ +\\(?:\\(?:#[^\r\n]*[\r\n]\\)*[ \t\r\n]\\)+\ \\(?:\\(?:#[^\r\n]*[\r\n]\\)*[0-9]\\)+\ \\)\\{2\\}" . pbm) ("\\`GIF8[79]a" . gif) -- 2.39.2