Skip to content

Commit

Permalink
restore missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
kimim committed Feb 18, 2024
1 parent 1bea08d commit 988b078
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chatu.el
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@
(match-string 1 line))))
(list :chatu t)))

(defun chatu-get-type (line)
"Get chatu type from string LINE."
(when (string-match
":\\(\\w+\\) +" line)
(list :type
(substring-no-properties
(match-string 1 line)))))

(defun chatu-get-settings (line)
"Get all chatu settings from string LINE."
(save-match-data
Expand Down Expand Up @@ -170,6 +178,7 @@
(defvar chatu-keyword-value-functions
'(chatu-get-keyword
chatu-get-settings
chatu-get-type
chatu-get-input
chatu-get-output
chatu-get-page
Expand Down Expand Up @@ -271,6 +280,7 @@
(require (intern (concat "chatu-" type)))
(funcall (intern (concat "chatu-" type "-script"))
keyword-plist)))
(script (string-replace "\\~" "~" script))
(result (plist-get keyword-plist :output-path)))
(forward-line)
(chatu-skip-lines)
Expand Down

0 comments on commit 988b078

Please sign in to comment.