1
0
mirror of https://github.com/m00natic/vlfi.git synced 2025-02-24 05:48:06 +00:00

Turn vlfi-get-file-size to function.

This commit is contained in:
Andrey Kotlarski 2013-05-02 12:04:12 +03:00
parent 67732485d8
commit 1ac1eece40

View File

@ -200,9 +200,9 @@ with the prefix argument DECREASE it is halved."
"Update the current buffer name."
(rename-buffer (vlfi-format-buffer-name) t))
(defmacro vlfi-get-file-size (file)
(defun vlfi-get-file-size (file)
"Get size in bytes of FILE."
`(nth 7 (file-attributes ,file)))
(nth 7 (file-attributes file)))
(defun vlfi-insert-file (&optional from-end)
"Insert first chunk of current file contents in current buffer.