* lisp/iimage.el (iimage-mode-buffer): Handle multiple regexps.
Go to the beginning of the buffer before searching every regexp in iimage-mode-image-regex-alist. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
d11d7aee1a
commit
0ec0a610ed
1 changed files with 1 additions and 1 deletions
|
@ -118,8 +118,8 @@ Examples of image filename patterns to match:
|
|||
file)
|
||||
(with-silent-modifications
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
(dolist (pair iimage-mode-image-regex-alist)
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward (car pair) nil t)
|
||||
(when (and (setq file (match-string (cdr pair)))
|
||||
(setq file (locate-file file image-path)))
|
||||
|
|
Loading…
Add table
Reference in a new issue