[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mpdired 9063b7c80a 004/133: better naming
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mpdired 9063b7c80a 004/133: better naming |
Date: |
Sun, 10 Mar 2024 15:59:32 -0400 (EDT) |
branch: externals/mpdired
commit 9063b7c80a92ac6e7e7976badc9011f693072875
Author: Manuel Giraud <manuel@ledu-giraud.fr>
Commit: Manuel Giraud <manuel@ledu-giraud.fr>
better naming
---
mpdired.el | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/mpdired.el b/mpdired.el
index 4a8fc4ce6d..f6d511cf21 100644
--- a/mpdired.el
+++ b/mpdired.el
@@ -1,7 +1,7 @@
-(defcustom mpd-host (or (getenv "MPD_HOST") "localhost")
+(defcustom mpdired-host (or (getenv "MPD_HOST") "localhost")
"Host for MPD.")
-(defcustom mpd-port (or (getenv "MPD_PORT") 6600)
+(defcustom mpdired-port (or (getenv "MPD_PORT") 6600)
"Host for MPD.")
(defun my-filter (proc string)
@@ -15,6 +15,7 @@
(set-marker (process-mark proc) (point)))
(if moving (goto-char (process-mark proc)))
(when (re-search-backward "^OK$" nil t)
+ (goto-char (point-min))
(set-buffer-modified-p nil)
(message "Fini"))))))
@@ -22,7 +23,7 @@
(princ
(format "Process: %s had the event '%s'" process event)))
-(defvar *mpdired-process* nil)
+(defvar mpdired-process nil)
(defun mpdired-local-p (host)
;; Hack: if the `expand-file-name' of host leads to an existing
@@ -32,22 +33,22 @@
(defun mpc-connect ()
(with-current-buffer (get-buffer-create "*mpc*")
(erase-buffer)
- (let* ((localp (mpdired-local-p mpd-host))
- (host (if localp (expand-file-name mpd-host) mpd-host)))
+ (let* ((localp (mpdired-local-p mpdired-host))
+ (host (if localp (expand-file-name mpdired-host) mpdired-host)))
;; Create a new connection if needed
- (unless (and *mpdired-process*
- (eq (process-status *mpdired-process*) 'open))
- (setq *mpdired-process* (make-network-process :name "mpdired"
- :buffer (current-buffer)
- :host host
- :service (if localp host
mpd-port)
- :family (if localp 'local)
- :coding 'utf-8
- :filter 'my-filter
- :sentinel 'msg-me)))
+ (unless (and mpdired-process
+ (eq (process-status mpdired-process) 'open))
+ (setq mpdired-process (make-network-process :name "mpdired"
+ :buffer (current-buffer)
+ :host host
+ :service (if localp host
mpdired-port)
+ :family (if localp 'local)
+ :coding 'utf-8
+ :filter 'my-filter
+ :sentinel 'msg-me)))
;;(process-send-string proc "list album\n")
;;(process-send-string proc "playlistinfo\n")
- (process-send-string *mpdired-process* "listall \"\"\n")
+ (process-send-string mpdired-process "listall \"\"\n")
;;(process-send-string proc "close\n")
;;(buffer-string)
)))
- [elpa] externals/mpdired fe835f4e0c 011/133: better naming, (continued)
- [elpa] externals/mpdired fe835f4e0c 011/133: better naming, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired a52e1d37ca 001/133: init, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 356aae09c4 003/133: ideas and hack, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 1f473c2840 015/133: no more *toplevel*, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 6bb7fab67b 019/133: fix more navigation, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 809a5df8e5 030/133: first command list for delete, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 7bbcf712a1 033/133: fix a bug on progress bar, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired a9d1cddab5 037/133: arrange keymap, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 5699213525 007/133: mostly fancy, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired a74ca07e9e 002/133: rename, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 9063b7c80a 004/133: better naming,
ELPA Syncer <=
- [elpa] externals/mpdired ec768308ac 005/133: a recursive parser for listall, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 5c777bc465 006/133: start cleaning display, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired d7c42d2e6d 010/133: kill the global process, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired f6733f5577 012/133: factorize buffer naming, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired f44c2e1810 013/133: navigation, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 55e5bffec8 017/133: fix line movement, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired c8fcb8a87e 018/133: more hacking, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 77a5b2aae8 020/133: mpdired--directory is global and only set in one place, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 53544d970f 021/133: start putting things in place for playlist, ELPA Syncer, 2024/03/10
- [elpa] externals/mpdired 6da84bce76 023/133: functional playlist view, ELPA Syncer, 2024/03/10