summaryrefslogtreecommitdiff
path: root/emacs/site-lisp
diff options
context:
space:
mode:
authorThomas Ulmer <thomas.ulmer@redflagai.co>2025-06-12 15:58:12 -0700
committerThomas Ulmer <thomas.ulmer@redflagai.co>2025-06-12 15:58:12 -0700
commit77f375906179aa265ce53d130961348e13f6114d (patch)
treead6ee9ba20dd07005aae45b9811f5b77b4e22c5e /emacs/site-lisp
parentcad396f6063111e4ba4b1054b8d4899bba12983b (diff)
compatibility changes for older emacs
Diffstat (limited to 'emacs/site-lisp')
-rwxr-xr-xemacs/site-lisp/single-header.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/site-lisp/single-header.el b/emacs/site-lisp/single-header.el
index 0080da1..bf48c48 100755
--- a/emacs/site-lisp/single-header.el
+++ b/emacs/site-lisp/single-header.el
@@ -245,7 +245,8 @@ arg, dismiss all the notifications."
(with-current-buffer buf
(let ((str (single-header--time-memo force frame
single-header-format frame win buf)))
- (replace-region-contents (point-min) (point-max) str)))))))
+ (erase-buffer)
+ (insert str)))))))
(define-minor-mode single-header-mode
"Global minor mode to enable a single info line at the top of each frame."