[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/editorconfig-cc 153013ff48 297/351: Return early when e
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/editorconfig-cc 153013ff48 297/351: Return early when expecting coding-system has been already set |
Date: |
Thu, 13 Jun 2024 18:39:04 -0400 (EDT) |
branch: scratch/editorconfig-cc
commit 153013ff48dee9bb56f27e7b68f192054066fe52
Author: 10sr <8.slashes@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Return early when expecting coding-system has been already set
---
editorconfig.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/editorconfig.el b/editorconfig.el
index 3ace919bf2..25e220038f 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -397,6 +397,11 @@ Make a message by passing ARGS to `format-message'."
:debug)
(when (eq coding-system 'undecided)
(cl-return-from editorconfig-set-coding-system))
+ (when (and buffer-file-coding-system
+ (memq buffer-file-coding-system
+ (coding-system-aliases (merge-coding-systems coding-system
+
buffer-file-coding-system))))
+ (cl-return-from editorconfig-set-coding-system))
(unless (file-readable-p buffer-file-name)
(set-buffer-file-coding-system coding-system)
(cl-return-from editorconfig-set-coding-system))
- [nongnu] scratch/editorconfig-cc ace446e357 261/351: Bump version to v0.8.1, (continued)
- [nongnu] scratch/editorconfig-cc ace446e357 261/351: Bump version to v0.8.1, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 0644119b21 272/351: Keep a CHANGELOG (#221), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 39eca13316 279/351: Add Github Actions build.yaml, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 26c875d609 269/351: Define -mode-apply as an interactive command (#216), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 3305825fd3 298/351: Make new impl work when changing major-mode (#255), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 2e55840057 266/351: Use elisp core by default, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 8d0e609420 277/351: Add Emacs 27.1 to test target (#228), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d11d5e0078 305/351: Prepare v0.8.2 (#262), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 49c0563f03 285/351: Do not run editorconfig-apply on recentf-save-file (#241), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 28e411023c 283/351: Remove travis.yml (#238), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 153013ff48 297/351: Return early when expecting coding-system has been already set,
Stefan Monnier <=
- [nongnu] scratch/editorconfig-cc 6aa944ce1e 262/351: Update core-test, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 8ca0b6e042 265/351: Remove a trailing whitespace, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc b70f3c7a93 255/351: Add support for bpftrace-mode (#199), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 44876b2cfa 256/351: Update travis Emacs26 version, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc dbb63191cc 276/351: Fix references in CHANGELOG (#226), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 956c0320e2 270/351: Update hook docstrings (#215), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 77a8af8ba4 290/351: Fix editorconfig execution for remote hosts via tramp (#249), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 5153161a07 296/351: Add minor fixes to tests (#252), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 032ecbdae8 259/351: Add editorconfig-file-type-emacs-whitelist value, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc e06f1cd042 292/351: Update display-warning messages, Stefan Monnier, 2024/06/13