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

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

[nongnu] elpa/editorconfig bd1d9c3754: Check `filename` rather than `buf


From: ELPA Syncer
Subject: [nongnu] elpa/editorconfig bd1d9c3754: Check `filename` rather than `buffer-file-name` for consistency (#280)
Date: Mon, 31 Oct 2022 01:58:30 -0400 (EDT)

branch: elpa/editorconfig
commit bd1d9c37542e94e2ffa69d8e73df11e60350a0f6
Author: 10sr <8.slashes@gmail.com>
Commit: GitHub <noreply@github.com>

    Check `filename` rather than `buffer-file-name` for consistency (#280)
    
    Co-authored-by: Wade Zhang <dochang@gmail.com>
---
 editorconfig.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editorconfig.el b/editorconfig.el
index 14da23dea0..d8146b0e71 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -634,7 +634,7 @@ It calls `editorconfig-get-properties-from-exec' if
 `editorconfig-exec-path' is found, otherwise
 `editorconfig-core-get-properties-hash'."
   (if (and (executable-find editorconfig-exec-path)
-           (not (file-remote-p buffer-file-name)))
+           (not (file-remote-p filename)))
       (editorconfig-get-properties-from-exec filename)
     (require 'editorconfig-core)
     (editorconfig-core-get-properties-hash filename)))



reply via email to

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