Skip to content

Instantly share code, notes, and snippets.

@dhaley
Created June 24, 2013 17:45
Show Gist options
  • Save dhaley/5851985 to your computer and use it in GitHub Desktop.
Save dhaley/5851985 to your computer and use it in GitHub Desktop.
drupal-mode utf8 error
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p [utf-8-unix utf-8-dos utf-8-mac])
/=([utf-8-unix utf-8-dos utf-8-mac] 0)
(and drupal-mode drupal-convert-line-ending (/= (coding-system-eol-type buffer-file-coding-system) 0))
(if (and drupal-mode drupal-convert-line-ending (/= (coding-system-eol-type buffer-file-coding-system) 0)) (progn (if (or (eq drupal-convert-line-ending t) (y-or-n-p "Convert to unix style line endings?")) (progn (message "Coding system conversion") (set-buffer-file-coding-system (quote unix))) (progn (setq drupal-convert-line-ending nil)))))
drupal-convert-line-ending()
run-hooks(before-save-hook)
basic-save-buffer()
save-buffer(1)
call-interactively(save-buffer nil nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment