projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e9f618
)
Fix regexp for recognizing PBM images
author
David Ponce
<da_vid@orange.fr>
Thu, 24 Aug 2023 10:55:03 +0000
(12:55 +0200)
committer
Eli 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
patch
|
blob
|
history
diff --git
a/lisp/image.el
b/lisp/image.el
index 104fea407ffb1c69d598d210ae736eadbaac86fc..d488612def85171f35b59ddc1644b26838f091be 100644
(file)
--- 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)