aboutsummaryrefslogtreecommitdiffstats
path: root/zencoding-mode.el
diff options
context:
space:
mode:
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")