diff options
| author | Stefan Kangas | 2023-02-09 06:30:12 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2023-02-09 06:30:12 +0100 |
| commit | f0a6b64e9d632e1afdabc640b99f80c6bbd3158e (patch) | |
| tree | ef8b82a8be44c4b10398201449de976317078f05 | |
| parent | 680bc20553ebf01375ab7957b6f0be066335fd6e (diff) | |
| parent | 31bf35935f2e1e8d19462e984549da1baf9befb6 (diff) | |
| download | emacs-f0a6b64e9d632e1afdabc640b99f80c6bbd3158e.tar.gz emacs-f0a6b64e9d632e1afdabc640b99f80c6bbd3158e.zip | |
Merge from origin/emacs-29
31bf35935f2 ; Fix doc strings in iimage.el
| -rw-r--r-- | lisp/iimage.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/iimage.el b/lisp/iimage.el index 96ab963bff4..d7026331440 100644 --- a/lisp/iimage.el +++ b/lisp/iimage.el | |||
| @@ -64,9 +64,15 @@ | |||
| 64 | `((,(concat "\\(`?file://\\|\\[\\[\\|<\\|`\\)?" | 64 | `((,(concat "\\(`?file://\\|\\[\\[\\|<\\|`\\)?" |
| 65 | "\\(" iimage-mode-image-filename-regex "\\)" | 65 | "\\(" iimage-mode-image-filename-regex "\\)" |
| 66 | "\\(\\]\\]\\|>\\|'\\)?") . 2)) | 66 | "\\(\\]\\]\\|>\\|'\\)?") . 2)) |
| 67 | "Alist of filename REGEXP vs NUM. | 67 | "Alist that specifies how to detect filenames of images to be displayed inline. |
| 68 | Each element looks like (REGEXP . NUM). | 68 | The value should be an alist whose elements have the form |
| 69 | NUM specifies which parenthesized expression in the regexp. | 69 | |
| 70 | (REGEXP . NUM) | ||
| 71 | |||
| 72 | where REGEXP is a regular expression to search buffer text for what | ||
| 73 | might be a specification of an inline image, and NUM is the number | ||
| 74 | of a parenthesized sub-expression of REGEXP which gives the name of | ||
| 75 | the image file to look up. | ||
| 70 | 76 | ||
| 71 | Examples of image filename patterns to match: | 77 | Examples of image filename patterns to match: |
| 72 | file://foo.png | 78 | file://foo.png |
| @@ -93,7 +99,7 @@ Examples of image filename patterns to match: | |||
| 93 | (iimage-mode 0)) | 99 | (iimage-mode 0)) |
| 94 | 100 | ||
| 95 | (defun iimage-modification-hook (beg end) | 101 | (defun iimage-modification-hook (beg end) |
| 96 | "Remove display property if a display region is modified." | 102 | "Remove display property if a display region BEG..END is modified." |
| 97 | ;;(debug-print "ii1 begin %d, end %d\n" beg end) | 103 | ;;(debug-print "ii1 begin %d, end %d\n" beg end) |
| 98 | (let ((inhibit-modification-hooks t) | 104 | (let ((inhibit-modification-hooks t) |
| 99 | (beg (previous-single-property-change end 'display | 105 | (beg (previous-single-property-change end 'display |