emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/subed 300341a 186/389: subed-guess-video-file: Elaborate d


From: ELPA Syncer
Subject: [nongnu] elpa/subed 300341a 186/389: subed-guess-video-file: Elaborate docstring
Date: Fri, 3 Dec 2021 11:00:23 -0500 (EST)

branch: elpa/subed
commit 300341a7a35b78ee0bbd94a0b9c48b8618b220a6
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>

    subed-guess-video-file: Elaborate docstring
---
 subed/subed.el | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/subed/subed.el b/subed/subed.el
index cfcd0e0..eb7601d 100644
--- a/subed/subed.el
+++ b/subed/subed.el
@@ -634,10 +634,14 @@ and therefore gets ARGS, which is ignored."
 (defun subed-guess-video-file ()
   "Find video file with same base name as the opened file in the buffer.
 
-The file extension of the function `buffer-file-name' is replaced
-with each item in `subed-video-extensions' and the first existing
-file is returned. It also checks for an existing video file with
-the base name stripped from an eventual language code.
+The file extension of the return value of the function
+`buffer-file-name' is replaced with each item in
+`subed-video-extensions' and the first existing file is returned.
+
+Language codes are also handled; e.g. \"foo.en.srt\" or
+\"foo.estonian.srt\" -> \"foo.{mkv,mp4,...}\" (this actually
+simply removes the extension from the extension-stripped file
+name).
 
 Return nil if function `buffer-file-name' returns nil."
   (when (buffer-file-name)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]