[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ampc 8e34ab9150 082/111: * ampc.el (ampc-update-playlis
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ampc 8e34ab9150 082/111: * ampc.el (ampc-update-playlist, ampc-fill-status, ampc-configure-frame) |
Date: |
Tue, 20 Feb 2024 18:16:42 -0500 (EST) |
branch: externals/ampc
commit 8e34ab91508b2ce10a60d0ff6c04246fa3c064d4
Author: Christopher Schmidt <christopher@ch.ristopher.com>
Commit: Christopher Schmidt <christopher@ch.ristopher.com>
* ampc.el (ampc-update-playlist, ampc-fill-status, ampc-configure-frame)
(ampc): Use erase-buffer rather than delete-region.
---
ampc.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/ampc.el b/ampc.el
index ef3ec1bfdb..e6df1ee92b 100644
--- a/ampc.el
+++ b/ampc.el
@@ -983,7 +983,7 @@ all the time!"
nil
(get-text-property (point) 'data))
(ampc-with-buffer 'playlist
- (delete-region (point-min) (point-max))
+ (erase-buffer)
(ampc-set-dirty nil)))))
(defun ampc-send-command-impl (command)
@@ -1279,7 +1279,7 @@ all the time!"
(defun ampc-fill-status ()
(ampc-with-buffer 'status
- (delete-region (point-min) (point-max))
+ (erase-buffer)
(funcall (or (plist-get (cadr ampc-type) :filler)
(lambda (_)
(insert (ampc-status t) "\n")))
@@ -1625,11 +1625,11 @@ all the time!"
;; fill the song, current-playlist and outputs buffers again as the tab
;; offsets might have changed
(ampc-with-buffer 'song
- (delete-region (point-min) (point-max)))
+ (erase-buffer))
(ampc-with-buffer 'current-playlist
- (delete-region (point-min) (point-max)))
+ (erase-buffer))
(ampc-with-buffer 'outputs
- (delete-region (point-min) (point-max)))
+ (erase-buffer))
(ampc-update))
(defun ampc-mouse-play-this (event)
@@ -2136,8 +2136,7 @@ default to the ones specified in `ampc-default-server'."
(let ((connection (open-network-stream "ampc"
(with-current-buffer
(get-buffer-create " *ampc*")
- (delete-region (point-min)
- (point-max))
+ (erase-buffer)
(current-buffer))
host
port
- [elpa] externals/ampc 0bf832e424 092/111: * Add tagger. ampc-tagger.cpp: New file., (continued)
- [elpa] externals/ampc 0bf832e424 092/111: * Add tagger. ampc-tagger.cpp: New file., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 5aae56a25d 101/111: * packages/ampc/ampc.el: Add proper file trailer., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 259d4f6363 103/111: * ampc/ampc.el: Fix up warnings and use cl-lib. Change maintainer, Stefan Monnier, 2024/02/20
- [elpa] externals/ampc e045d5a2fa 102/111: Remove ampc, then re-add, since I cannot find it anywhere else, Stefan Monnier, 2024/02/20
- [elpa] externals/ampc a98412698b 105/111: * ampc/ampc.el (ampc-views): Add "Search view", Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 4a2a2e642f 109/111: ; Prefer HTTPS to HTTP in URLs, Stefan Monnier, 2024/02/20
- [elpa] externals/ampc b15e6985a9 054/111: The package of ampc is ampc itself, not GNU Emacs. All files changed., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 1dda527e59 055/111: * ampc.el (ampc-item-mode-map): Clarify docs in regards to the arguments of, Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 1bc7428150 069/111: * ampc.el (ampc-handle-command): Handle mini-currentsong., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc c41fde637d 073/111: * ampc.el (ampc-goto-current-song): Goto point-min if there is no song currently, Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 8e34ab9150 082/111: * ampc.el (ampc-update-playlist, ampc-fill-status, ampc-configure-frame),
Stefan Monnier <=
- [elpa] externals/ampc 3eaa022007 086/111: * ampc.el: Remove explicit easymenu requirement because it autoloads., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc b6bb73343d 099/111: * ampc.el: Bump version to 0.2., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 4ae66dfad8 059/111: * ampc.el (ampc-fill-skeleton): Add mouse highlighting for list entries., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 46143951ee 094/111: * ampc.el: Refine options for sending commands., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 68457ec2aa 021/111: Fix spelling mistake., Stefan Monnier, 2024/02/20