diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-20 15:10:08 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-20 15:10:08 -0200 |
commit | 30eeaaad19858edb4543d60772b93adb7e7736be (patch) | |
tree | b359c6a15f290601b3c48372e97cd2644e7004a4 | |
parent | b15813ac1a681ef075c207f1a90f3cb167653d83 (diff) |
Hotfix subr-x didn't exist before 24.3
-rw-r--r-- | sx-babel.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sx-babel.el b/sx-babel.el index 7346f99..b30a044 100644 --- a/sx-babel.el +++ b/sx-babel.el @@ -26,7 +26,6 @@ ;;; Code: -(require 'subr-x) (require 'sx-button) (defvar sx-babel-major-mode-alist @@ -58,7 +57,7 @@ on a match.") (setq indent (sx-babel--unindent-buffer)) (goto-char (point-min)) (setq mode (sx-babel--determine-major-mode)) - (setq copy (string-trim-right (buffer-string))) + (setq copy (replace-regexp-in-string "[[:space:]]+\\'" "" (buffer-string))) (when mode (delay-mode-hooks (funcall mode))) (font-lock-fontify-region (point-min) (point-max)) |