Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4a9bf8a4
Commit
4a9bf8a4
authored
Aug 10, 2001
by
Gerd Moellmann
Browse files
(image-jpeg-p): Test for APPn markers in the range
#xe0..#xef.
parent
5d7a37fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/image.el
lisp/image.el
+5
-4
No files found.
lisp/ChangeLog
View file @
4a9bf8a4
2001-08-10 Gerd Moellmann <gerd@gnu.org>
* image.el (image-jpeg-p): Test for APPn markers in the range
#xe0..#xef.
2001-08-09 Gerd Moellmann <gerd@gnu.org>
* desktop.el (desktop-save): Don't use concat to form a file
...
...
lisp/image.el
View file @
4a9bf8a4
...
...
@@ -59,11 +59,12 @@ a non-nil value, TYPE is the image's type ")
(
when
(
>=
(
+
i
2
)
len
)
(
throw
'jfif
nil
))
(
let
((
nbytes
(
+
(
lsh
(
aref
data
(
+
i
1
))
8
)
(
aref
data
(
+
i
2
)))))
(
when
(
=
(
aref
data
i
)
#xe0
)
(
aref
data
(
+
i
2
))))
(
code
(
aref
data
i
)))
(
when
(
and
(
>=
code
#xe0
)
(
<=
code
#xef
))
;; APP0 LEN1 LEN2 "JFIF\0"
(
throw
'jfif
(
string-match
"\\`\xe0..JFIF\0"
(
substring
data
i
(
+
i
10
)
))))
(
throw
'jfif
(
string-match
"JFIF"
(
substring
data
i
nbytes
))))
(
setq
i
(
+
i
1
nbytes
))))))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment