]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix regexp for recognizing PBM images
authorDavid Ponce <da_vid@orange.fr>
Thu, 24 Aug 2023 10:55:03 +0000 (12:55 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 6 Sep 2023 15:58:48 +0000 (18:58 +0300)
* 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

index 104fea407ffb1c69d598d210ae736eadbaac86fc..d488612def85171f35b59ddc1644b26838f091be 100644 (file)
@@ -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)