diff options
author | Max Arnold <lwarxx@gmail.com> | 2011-05-15 14:30:28 +0700 |
---|---|---|
committer | Max Arnold <lwarxx@gmail.com> | 2011-05-15 14:30:28 +0700 |
commit | 596a1948fa880bcca8dd19e2607724aa88603b77 (patch) | |
tree | fe614afbbcd84edf2578292493551a8d4f9d95ba | |
parent | 6e5bfd864a679c1f699d03dc27223175cbde07ee (diff) | |
download | emmet-mode-596a1948fa880bcca8dd19e2607724aa88603b77.tar.lz emmet-mode-596a1948fa880bcca8dd19e2607724aa88603b77.tar.xz emmet-mode-596a1948fa880bcca8dd19e2607724aa88603b77.zip |
fix "zencoding-preview-post: (wrong-type-argument stringp nil)" error in scratch buffer
-rw-r--r-- | zencoding-mode.el | 2 |
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") |