emacs-framebuffer

Emacs library to show images and documents in console using Linux framebuffer
Log | Files | Refs

commit 2c431edb8b1650f46f924ac85b86c4d7db4b5113
parent fdcaaaf71c7c7c6021a2eb965efb507093153834
Author: Tomas Hlavaty <tom@logand.com>
Date:   Tue, 20 Jul 2021 22:00:28 +0200

move defvar framebuffer-size closer to its only use

Diffstat:
Memacs-framebuffer.el | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs-framebuffer.el b/emacs-framebuffer.el @@ -67,7 +67,6 @@ :type 'string :group 'framebuffer) -(defvar framebuffer-size nil) (defun framebuffer-file-format (file) (let ((name (file-name-sans-versions file))) @@ -111,6 +110,7 @@ (insert-file-contents "/sys/class/graphics/fb0/stride") (read (current-buffer)))) +(defvar framebuffer-size nil) (defun framebuffer-size () (if (and framebuffer-width framebuffer-height) (cons framebuffer-width framebuffer-height)