commit 7847f11682c387a58f70243b173f33e294622ffb parent 92078d0d3911b52eaf71674c12f727e7359953cb Author: Tomas Hlavaty <tom@logand.com> Date: Sun, 24 May 2020 17:41:49 +0200 support ppm Diffstat:
M | emacs-framebuffer.el | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/emacs-framebuffer.el b/emacs-framebuffer.el @@ -157,6 +157,11 @@ (3 (setq h v))))))) (when (and w h) (cons w h)))))))) + (?P ;; ppm + (case (framebuffer-next-u8 brook) + ((?3 ?6) + (search-forward-regexp "^\\([0-9]+\\)+ \\([0-9]+\\)$") + (cons (read (match-string 1)) (read (match-string 2)))))) )))) (defun framebuffer-image-file (file) @@ -180,7 +185,7 @@ (let ((f (dired-file-name-at-point))) (and (not (file-directory-p f)) (string-match - "jpe?g\\|JPE?G\\|png\\|PNG\\|bmp\\|BMP\\|gif\\|GIF\\|tiff?\\|TIFF?" + "jpe?g\\|JPE?G\\|png\\|PNG\\|bmp\\|BMP\\|gif\\|GIF\\|tiff?\\|TIFF?\\|ppm\\|PPM" (file-name-extension f))))) (defun framebuffer-image-file-dired-next (arg)