[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 3ba295b 336/389: Fix "service name too long"
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 3ba295b 336/389: Fix "service name too long" |
Date: |
Fri, 3 Dec 2021 11:00:53 -0500 (EST) |
branch: elpa/subed
commit 3ba295b8d93e513f96df1a53b082bd68b1395624
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Fix "service name too long"
The name of the mpv socket contains the buffer name. Looks like sockets
can't
have long names.
Here we limit the socket name to 20 characters (hopefully socket names can
contain multibytes) + the length of `(buffer-hash)`.
---
subed/subed-mpv.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/subed/subed-mpv.el b/subed/subed-mpv.el
index b66222f..4bdf3d8 100644
--- a/subed/subed-mpv.el
+++ b/subed/subed-mpv.el
@@ -78,7 +78,8 @@ See also `subed-mpv-socket-dir'."
(error "%s" (mapconcat #'identity (cdr err) ": ")))))
(concat (file-name-as-directory subed-mpv-socket-dir)
(format "%s:%s"
- (file-name-sans-extension (subed--buffer-file-name))
+ (let ((filename (file-name-sans-extension
(subed--buffer-file-name))))
+ (substring (substring filename 0 (min (length filename)
20))))
(buffer-hash))))
(defun subed-mpv--server-start (&rest args)
- [nongnu] elpa/subed 5b868c3 366/389: Fix minor issues in README.org added in last commit, (continued)
- [nongnu] elpa/subed 5b868c3 366/389: Fix minor issues in README.org added in last commit, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6949622 365/389: Adopt REUSE standard for copyright and licensing, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9f55817 369/389: Wrap start/stop calculating functions in `ignore-errors', ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed beda7dc 371/389: Add functions to insert HTML-like tags, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed c23dd84 373/389: Add info about the new features to README.org, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6a5802c 374/389: Add video movement per frame, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 828764f 375/389: Change keybindings and use a transient keymap, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5de6f21 377/389: Add msecs-to-timestamp as a common function, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b42f563 378/389: Add audio extensions, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6b1a6f2 367/389: Add computing and displaying characters per second, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3ba295b 336/389: Fix "service name too long",
ELPA Syncer <=
- [nongnu] elpa/subed 961e5eb 343/389: More subed-vtt fixes: require subed-vtt, validate better, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 87b3823 353/389: subed-split-subtitle works at the beginning or end of subtitle text, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3b4b56a 384/389: Merge pull request #49 from sachac/fix-vtt-spaces, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed bee9e63 342/389: subed-vtt: Fix syncing point with player, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 016c6a5 363/389: subed-split-subtitle: Handle more cases, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6164f88 380/389: Keep track of video being played, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 70561f0 381/389: Make hours optional in VTT files, following the spec, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed bf3e832 382/389: Check if subed--cps-overlay exists before trying to update it, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b6e08c2 383/389: Handle spaces in between VTT subtitles, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 564b6fe 386/389: Add preliminary support for comments in VTT files, ELPA Syncer, 2021/12/03