[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sass-mode 8190f29 15/31: Better version of sass-output-reg
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sass-mode 8190f29 15/31: Better version of sass-output-region (see #1) |
Date: |
Sun, 29 Aug 2021 11:29:39 -0400 (EDT) |
branch: elpa/sass-mode
commit 8190f29bc13c4b31af5c9d1a803b75534bdf4643
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Better version of sass-output-region (see #1)
---
sass-mode.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sass-mode.el b/sass-mode.el
index 662b2ff..e5bb277 100644
--- a/sass-mode.el
+++ b/sass-mode.el
@@ -216,12 +216,12 @@ LIMIT is the limit of the search."
"Displays the CSS output for the current block of Sass code.
Called from a program, START and END specify the region to indent."
(interactive "r")
- (let* ((text (buffer-substring-no-properties start end))
- (command (format "ruby -rubygems -e \"require 'sass'; puts
Sass::Engine.new('%s').render\"" text)))
- (kill-new text)
- (with-temp-buffer
- (yank)
- (shell-command-on-region (point-min) (point-max) command "sass-output"))))
+ (let ((output-buffer "*sass-output*"))
+ (shell-command-on-region start end "sass --stdin" output-buffer)
+ (when (fboundp 'css-mode)
+ (with-current-buffer output-buffer
+ (css-mode)))
+ (switch-to-buffer-other-window output-buffer)))
(defun sass-output-buffer ()
"Displays the CSS output for entire buffer."
- [nongnu] branch elpa/sass-mode created (now 247a0d4), ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 1bcaf92 02/31: Add a note about haml-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 242b0ea 07/31: Merge remote-tracking branch 'origin/master', ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 26dff5f 12/31: Merge pull request #12 from purcell/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 8190f29 15/31: Better version of sass-output-region (see #1),
ELPA Syncer <=
- [nongnu] elpa/sass-mode 28dd06b 14/31: Merge remote-tracking branch 'refs/remotes/nex3/pr/1', ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode c5de02d 22/31: Use cl-lib for consistent destructuring-bind etc., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode b676b2d 03/31: Make variables buffer-local before setting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 30f6132 09/31: added missing ' in auto-mode-alisp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode bf846d6 13/31: Merge pull request #11 from gramos/fix_auto-mode-alist_pattern, ELPA Syncer, 2021/08/29
- [nongnu] elpa/sass-mode 0c54866 16/31: Make comments toggleable with M-;, ELPA Syncer, 2021/08/29
- [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