diff options
| author | Dave Love | 2000-08-18 13:45:36 +0000 |
|---|---|---|
| committer | Dave Love | 2000-08-18 13:45:36 +0000 |
| commit | 9bb7a286d43a9b79be04633a9f96fb538dde62e0 (patch) | |
| tree | c98ca556237fbcb63b1fe136e6f658d959b839b4 /lisp | |
| parent | 13004bef1edded6c5ab0f24f226a53d758af80b7 (diff) | |
| download | emacs-9bb7a286d43a9b79be04633a9f96fb538dde62e0.tar.gz emacs-9bb7a286d43a9b79be04633a9f96fb538dde62e0.zip | |
(find-image): Copy `spec' before using plist-put.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/image.el | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2e4f83202c6..0bf841cfd54 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2000-08-18 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * image.el (find-image): Copy `spec' before using plist-put. | ||
| 4 | |||
| 1 | 2000-08-18 Gerd Moellmann <gerd@gnu.org> | 5 | 2000-08-18 Gerd Moellmann <gerd@gnu.org> |
| 2 | 6 | ||
| 3 | * textmodes/ispell.el (ispell-dictionary-alist-6): Add | 7 | * textmodes/ispell.el (ispell-dictionary-alist-6): Add |
diff --git a/lisp/image.el b/lisp/image.el index 0e507d2ed3c..96834439975 100644 --- a/lisp/image.el +++ b/lisp/image.el | |||
| @@ -225,7 +225,8 @@ The image is looked for first on `load-path' and then in `data-directory'." | |||
| 225 | (setq found try-file)))) | 225 | (setq found try-file)))) |
| 226 | (if found | 226 | (if found |
| 227 | (setq image | 227 | (setq image |
| 228 | (cons 'image (plist-put spec :file found)))))) | 228 | (cons 'image (plist-put (copy-sequence spec) |
| 229 | :file found)))))) | ||
| 229 | ((not (null data)) | 230 | ((not (null data)) |
| 230 | (setq image (cons 'image spec))))) | 231 | (setq image (cons 'image spec))))) |
| 231 | (setq specs (cdr specs)))) | 232 | (setq specs (cdr specs)))) |