How to check if a pool is empty?

How to check if a pool is empty? Checking that count-lines gives 0 is an overkill for this, I think.

UPDATE: Yes, phils answer should work. Write down:

 (defun buffer-empty-p (&optional buffer) (= (buffer-size buffer) 0)) 
+6
source share
1 answer
 buffer-size is a built-in function in `C source code'. (buffer-size &optional BUFFER) Return the number of characters in the current buffer. If BUFFER, return the number of characters in that buffer instead. 
+12
source

Source: https://habr.com/ru/post/952023/


All Articles