branch: elpa/drupal-mode
commit 89783165ad34fa261134cfad8713d4dcf821d1de
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Fixed wrong type argument in drupal-convert-line-ending.
Fixes #53 by @dhaley.
---
drupal-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index c71faf4b15..72b6b5e09f 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -458,7 +458,7 @@ According to https://drupal.org/coding-standards#indenting
you
should save your files with unix style end of line."
(when (and drupal-mode
drupal-convert-line-ending
- (/= (coding-system-eol-type buffer-file-coding-system) 0))
+ (not (equal (coding-system-eol-type (or coding-system-for-write
buffer-file-coding-system)) 0)))
(if (or (eq drupal-convert-line-ending t)
(y-or-n-p "Convert to unix style line endings?"))
(progn