Skip to content

Commit

Permalink
properly annotate command lists
Browse files Browse the repository at this point in the history
  • Loading branch information
tralph3 committed Aug 16, 2024
1 parent 8cc55dd commit 7ea91fb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions conner.el
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,10 @@ If PLIST-LIST is non-nil, search it instead."
(cl-remove-if #'string-blank-p
(split-string
(format "%s"
(plist-get
(conner--find-command-with-value :name candidate)
:command)) "\n"))))
(conner--concat-command-list
(plist-get
(conner--find-command-with-value :name candidate)
:command))) "\n"))))
(tabs (make-string 6 ?\t)))
(format "%s%s%s" indent tabs command)))

Expand Down Expand Up @@ -715,8 +716,10 @@ instead."
"Concat all strings in COMMAND-LIST with SEPARATOR.
If SEPARATOR is nil, default to \" && \"."
(let ((separator (or separator " && ")))
(mapconcat 'identity command-list separator)))
(if (stringp command-list)
command-list
(let ((separator (or separator " && ")))
(mapconcat 'identity command-list separator))))

(defun conner--run-compile-command (plist &rest _)
"Run the command PLIST in an unique compilation buffer.
Expand Down

0 comments on commit 7ea91fb

Please sign in to comment.