emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/drupal-mode 89783165ad 225/308: Fixed wrong type argument


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode 89783165ad 225/308: Fixed wrong type argument in drupal-convert-line-ending.
Date: Tue, 25 Jan 2022 10:59:49 -0500 (EST)

branch: elpa/drupal-mode
commit 89783165ad34fa261134cfad8713d4dcf821d1de
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]