[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 0ec0a610ed: * lisp/iimage.el (iimage-mode-buffer): Handle multi
From: |
Juri Linkov |
Subject: |
emacs-29 0ec0a610ed: * lisp/iimage.el (iimage-mode-buffer): Handle multiple regexps. |
Date: |
Wed, 8 Feb 2023 13:57:35 -0500 (EST) |
branch: emacs-29
commit 0ec0a610ed226419269f519021cbe8fb2dde2ed5
Author: LensPlaysGames <lensplaysgames@gmail.com>
Commit: Juri Linkov <juri@linkov.net>
* 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
---
lisp/iimage.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/iimage.el b/lisp/iimage.el
index d702633144..b4c175a7b6 100644
--- a/lisp/iimage.el
+++ b/lisp/iimage.el
@@ -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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 0ec0a610ed: * lisp/iimage.el (iimage-mode-buffer): Handle multiple regexps.,
Juri Linkov <=