branch: externals/autorevert-tail-truncate commit 19a7bb7a4d6b9febb3f9f33cb465f8afeaad4c70 Author: shipmints <shipmi...@gmail.com> Commit: shipmints <shipmi...@gmail.com>
Update vis-a-vis feedback from Michael Albinus --- README.md | 4 ++-- autorevert-tail-truncate.el | 17 ++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 233a484df8..804e477ec6 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ # autorevert-tail-truncate.el -Extend Emacs auto-revert-tail-mode to optimize memory and CPU. +Emacs minor mode for auto-revert-tail-mode to optimize memory and CPU. -`auto-revert-tail-truncate-mode` extends `auto-revert-tail-mode` to automate truncating the tailed buffer to a +`auto-revert-tail-truncate-mode` is a veneer over `auto-revert-tail-mode` to automate truncating the tailed buffer to a user-specified number of lines. This allows you, for example, to tail log files in an auto-reverting buffer forever without running out of memory. By default, a newly tailed buffer is immediately truncated for the same reason. Also, by default, the buffer's undo log is disabled along with font-lock to both preserve memory and optimize CPU consumption. diff --git a/autorevert-tail-truncate.el b/autorevert-tail-truncate.el index 7b6031a2c1..37aeb4a7cc 100644 --- a/autorevert-tail-truncate.el +++ b/autorevert-tail-truncate.el @@ -1,6 +1,5 @@ ;;; autorevert-tail-truncate.el -- Summary;: -*- mode: emacs-lisp; lexical-binding: t; -*- -;; Copyright (C) 2025 Stephane Marks ;; Copyright (C) 2025 Free Software Foundation, Inc. ;; Author: Stephane Marks <shipmi...@gmail.com> @@ -26,14 +25,14 @@ ;;; Commentary: -;; `auto-revert-tail-truncate-mode' extends `auto-revert-tail-mode' to -;; automate truncating the tailed buffer to a user-specified number of -;; lines. This allows you, for example, to tail log files in an -;; auto-reverting buffer forever without running out of memory. By -;; default, a newly tailed buffer is immediately truncated for the -;; same reason. Also, by default, the buffer's undo log is disabled -;; along with font-lock to both preserve memory and optimize CPU -;; consumption. +;; `auto-revert-tail-truncate-mode' is a veneer over +;; `auto-revert-tail-mode' to automate truncating the tailed buffer to +;; a user-specified number of lines. This allows you, for example, to +;; tail log files in an auto-reverting buffer forever without running +;; out of memory. By default, a newly tailed buffer is immediately +;; truncated for the same reason. Also, by default, the buffer's undo +;; log is disabled along with font-lock to both preserve memory and +;; optimize CPU consumption. ;; ;; Use the command auto-revert-tail-truncate-file to open a file in a ;; new buffer with `auto-revert-tail-truncate-mode' enabled.