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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
8646a62e
Commit
8646a62e
authored
Oct 19, 2005
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* image.el (create-image, find-image): Mention max-image-size in
docstring.
parent
f1f25b99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/image.el
lisp/image.el
+6
-2
No files found.
lisp/ChangeLog
View file @
8646a62e
2005-10-18 Chong Yidong <cyd@stupidchicken.com>
* image.el (create-image, find-image): Mention max-image-size in
docstring.
2005-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
* textmodes/conf-mode.el: Don't use font-lock-defaults-alist.
...
...
lisp/image.el
View file @
8646a62e
...
...
@@ -135,7 +135,9 @@ use its file extension as image type.
Optional DATA-P non-nil means FILE-OR-DATA is a string containing image data.
Optional PROPS are additional image attributes to assign to the image,
like, e.g. `:mask MASK'.
Value is the image created, or nil if images of type TYPE are not supported."
Value is the image created, or nil if images of type TYPE are not supported.
Images should not be larger than specified by `max-image-size'."
(
when
(
and
(
not
data-p
)
(
not
(
stringp
file-or-data
)))
(
error
"Invalid image file name `%s'"
file-or-data
))
(
cond
((
null
data-p
)
...
...
@@ -317,7 +319,9 @@ is supported, and FILE exists, is used to construct the image
specification to be returned. Return nil if no specification is
satisfied.
The image is looked for in `image-load-path'."
The image is looked for in `image-load-path'.
Image files should not be larger than specified by `max-image-size'."
(
let
(
image
)
(
while
(
and
specs
(
null
image
))
(
let*
((
spec
(
car
specs
))
...
...
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