aboutsummaryrefslogtreecommitdiffstats
path: root/zencoding-mode.el
diff options
context:
space:
mode:
authorRon Panduwana <panduwana@gmail.com>2011-07-29 05:16:51 -0700
committerRon Panduwana <panduwana@gmail.com>2011-07-29 05:16:51 -0700
commit1f62291a67ee3ef86df0d4a2304395cdfb315b31 (patch)
treefe614afbbcd84edf2578292493551a8d4f9d95ba /zencoding-mode.el
parent6e5bfd864a679c1f699d03dc27223175cbde07ee (diff)
parent596a1948fa880bcca8dd19e2607724aa88603b77 (diff)
downloademmet-mode-1f62291a67ee3ef86df0d4a2304395cdfb315b31.tar.lz
emmet-mode-1f62291a67ee3ef86df0d4a2304395cdfb315b31.tar.xz
emmet-mode-1f62291a67ee3ef86df0d4a2304395cdfb315b31.zip
Merge pull request #1 from max-arnold/master
Fix to make it work in scratch buffer
Diffstat (limited to 'zencoding-mode.el')
-rw-r--r--zencoding-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/zencoding-mode.el b/zencoding-mode.el
index 3ae06d8..2f5cbcc 100644
--- a/zencoding-mode.el
+++ b/zencoding-mode.el
@@ -159,7 +159,7 @@
(defun zencoding-default-filter ()
"Default filter(s) to be used if none is specified."
- (let* ((file-ext (car (zencoding-regex ".*\\(\\..*\\)"(buffer-file-name) 1)))
+ (let* ((file-ext (car (zencoding-regex ".*\\(\\..*\\)" (or (buffer-file-name) "") 1)))
(defaults '(".html" ("html")
".htm" ("html")
".haml" ("haml")