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
4
Issues
4
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
dada660a
Commit
dada660a
authored
Oct 22, 2005
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(image-load-path): Use eval-at-startup to initialize.
parent
adbe2d11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lisp/image.el
lisp/image.el
+6
-3
No files found.
lisp/image.el
View file @
dada660a
...
...
@@ -64,9 +64,7 @@ When the name of an image file match REGEXP, it is assumed to
be of image type IMAGE-TYPE."
)
(
defvar
image-load-path
(
list
(
file-name-as-directory
(
expand-file-name
"images"
data-directory
))
'data-directory
'load-path
)
(
defvar
image-load-path
nil
"List of locations in which to search for image files.
If an element is a string, it defines a directory to search.
If an element is a variable symbol whose value is a string, that
...
...
@@ -74,6 +72,11 @@ value defines a directory to search.
If an element is a variable symbol whose value is a list, the
value is used as a list of directories to search."
)
(
eval-at-startup
(
setq
image-load-path
(
list
(
file-name-as-directory
(
expand-file-name
"images"
data-directory
))
'data-directory
'load-path
)))
(
defun
image-jpeg-p
(
data
)
"Value is non-nil if DATA, a string, consists of JFIF image data.
We accept the tag Exif because that is the same format."
...
...
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