[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sass-mode e0c9198 29/31: Merge pull request #24 from dclun
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sass-mode e0c9198 29/31: Merge pull request #24 from dcluna/add-pre-eval-hook-and-options |
Date: |
Sun, 29 Aug 2021 11:29:42 -0400 (EDT) |
branch: elpa/sass-mode
commit e0c919872bc8ee5f7d0e8e8024b9a3cd8ff92c97
Merge: 7f0df85 69fc32b
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>
Merge pull request #24 from dcluna/add-pre-eval-hook-and-options
Adding pre-eval hook function and sass-command-options
---
sass-mode.el | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/sass-mode.el b/sass-mode.el
index e271907..d8a56ec 100644
--- a/sass-mode.el
+++ b/sass-mode.el
@@ -45,6 +45,16 @@
:type 'integer
:group 'sass)
+(defcustom sass-command-options nil
+ "Options to pass to the `sass' command."
+ :type 'string
+ :group 'sass)
+
+(defcustom sass-before-eval-hook nil
+ "Hook run in the buffer used as input to the `sass' command."
+ :type 'hook
+ :group 'sass)
+
(defvar sass-non-block-openers
'("^.*,$" ;; Continued selectors
"^ *@\\(extend\\|debug\\|warn\\|include\\|import\\)" ;; Single-line mixins
@@ -236,8 +246,9 @@ Called from a program, START and END specify the region to
indent."
(with-temp-buffer
(insert region-contents)
(newline-and-indent)
+ (run-hooks 'sass-before-eval-hook)
(sass--remove-leading-indent)
- (shell-command-on-region (point-min) (point-max) "sass --stdin"
+ (shell-command-on-region (point-min) (point-max) (mapconcat
#'identity (list "sass" sass-command-options "--stdin") " ")
output-buffer
nil
errors-buffer
- [nongnu] elpa/sass-mode aee28ea 18/31: Bump version to 3.0.16, (continued)
- [nongnu] elpa/sass-mode aee28ea 18/31: Bump version to 3.0.16, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 5d69d5f 06/31: Update .gitignore., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode fcee43b 01/31: Get rid of haml-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 3930ddc 05/31: add sass-output-region() and sass-output-buffer(), ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 9d05841 08/31: auto-mode-alisp patter should ends with \\ is better, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode d19542f 20/31: Don't override the syntax classes for "-" and "_", ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode a3f5b1a 19/31: Send errors to a separate buffer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 3da9040 23/31: Update my name., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 26a66e3 21/31: Revert "Don't override the syntax classes for "-" and "_"", ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 69fc32b 28/31: Adding sass-before-eval-hook., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode e0c9198 29/31: Merge pull request #24 from dcluna/add-pre-eval-hook-and-options,
ELPA Syncer <=
- [nongnu] elpa/sass-mode 247a0d4 31/31: Ensure cl-return has a matching block to return from (see #23), ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 3938a42 04/31: Bump version to 3.0.15., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode c0147d2 10/31: Don't indent after "attr: value" lines (fixes #5), ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 658f745 11/31: Hyphens are also valid in css attribute names, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 702909e 25/31: Fix naming of indent cleanup function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 3494c03 17/31: Merge pull request #15 from chee/patch-1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 7f0df85 26/31: Nicer buffer handling for sass-output-region, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode d72a55f 27/31: Add sass-command-options variable., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 37105f4 30/31: Make sass-command-options a list of strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode fb636bb 24/31: sass-output-region removing trailing indentation., ELPA Syncer, 2021/08/29