mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-26 09:41:52 -07:00
X.U.Run: Don't use elispFun in progn
This is already taken care of by execute and eval, so forcing it in progn only hampers composability.
This commit is contained in:
@@ -446,14 +446,14 @@ elispFun f = " '( " <> f <> " )' "
|
||||
asString :: String -> String
|
||||
asString s = " \"" <> s <> "\" "
|
||||
|
||||
-- | Wrap the given commands in a @progn@ and also escape it by wrapping
|
||||
-- it inside single quotes. The given commands need not be wrapped in
|
||||
-- parentheses, this will be done by the function. For example:
|
||||
-- | Wrap the given commands in a @progn@. The given commands need not
|
||||
-- be wrapped in parentheses (but can); this will be done by the
|
||||
-- function. For example:
|
||||
--
|
||||
-- >>> progn [require "this-lib", "function-from-this-lib arg", "(other-function arg2)"]
|
||||
-- " '( progn (require (quote this-lib)) (function-from-this-lib arg) (other-function arg2) )' "
|
||||
-- "(progn (require (quote this-lib)) (function-from-this-lib arg) (other-function arg2))"
|
||||
progn :: [String] -> String
|
||||
progn cmds = elispFun $ "progn " <> unwords (map inParens cmds)
|
||||
progn = inParens . ("progn " <>) . unwords . map inParens
|
||||
|
||||
-- | Require a package.
|
||||
--
|
||||
|
Reference in New Issue
Block a user