From: David Ponce Date: Thu, 24 Aug 2023 10:55:03 +0000 (+0200) Subject: Fix regexp for recognizing PBM images X-Git-Tag: emacs-29.1.90~133 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d17c5adc057;p=emacs.git 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) --- 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)