When I turn on auto revert tail mode on a elfeed-log buffer I get error "buffer is not visiting file" in the mini buffer.

So now what?

  • Have you tried reproducing the problem with a minimal elfeed setup? – DoMiNeLa10 May 30 at 12:26

I don't know elfeed-log, but my crystal ball suggests, in order:

  1. just put the cursor at the very end of the buffer, and the window keep scrolling to keep the end of the buffer visible.
  2. if that doesn't work, set window-point-insertion-type to t in the elfeed-log buffer and try step 1 again.
  3. if neither works, send your problem to the maintainer of the elfeed-log code because it likely needs changes in the code.

As the message says the elfeed-log buffer is not visting a file but it's automatically updated by elfeed itself

  • but I need to tail it, see the lower end dynamically – american-ninja-warrior May 29 at 17:33
  • You should add this information in the original question, now it's not immediately evident that you are interested in the automatic scrolling – matteol May 30 at 7:28

As a quick and dirty solution, this can be considered.

(add-hook 'after-change-functions
          (lambda (_b _e _len)
            (let ((my-window (get-buffer-window (current-buffer) t)))
              (set-window-point my-window (point)))))
          nil t)

Issued within the buffer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.