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

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

[elpa] externals/corfu c06d2a6b39 1/2: Naming convention


From: ELPA Syncer
Subject: [elpa] externals/corfu c06d2a6b39 1/2: Naming convention
Date: Sun, 26 Mar 2023 08:57:45 -0400 (EDT)

branch: externals/corfu
commit c06d2a6b397d6bbe562b7f33b0cb1df5795e4c66
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Naming convention
---
 README.org | 2 +-
 corfu.el   | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.org b/README.org
index fb0d423be4..c28141f52f 100644
--- a/README.org
+++ b/README.org
@@ -96,7 +96,7 @@ Here is an example configuration:
 
     ;; Recommended: Enable Corfu globally.
     ;; This is recommended since Dabbrev can be used globally (M-/).
-    ;; See also `corfu-excluded-modes'.
+    ;; See also `corfu-exclude-modes'.
     :init
     (global-corfu-mode))
 
diff --git a/corfu.el b/corfu.el
index bd46aa1879..544148afec 100644
--- a/corfu.el
+++ b/corfu.el
@@ -121,9 +121,10 @@ separator: Only stay alive if there is no match and
 `corfu-separator' has been inserted."
   :type '(choice boolean (const separator)))
 
-(defcustom corfu-excluded-modes nil
+(defcustom corfu-exclude-modes nil
   "List of modes excluded by `global-corfu-mode'."
   :type '(repeat symbol))
+(define-obsolete-function-alias 'corfu-excluded-modes 'corfu-exclude-modes 
"0.35")
 
 (defcustom corfu-left-margin-width 0.5
   "Width of the left margin in units of the character width."
@@ -1281,8 +1282,9 @@ The ORIG function takes the FUN and WHICH arguments."
 (defun corfu--on ()
   "Turn `corfu-mode' on."
   (unless (or noninteractive
+              buffer-read-only
               (eq (aref (buffer-name) 0) ?\s)
-              (memq major-mode corfu-excluded-modes))
+              (memq major-mode corfu-exclude-modes))
     (corfu-mode 1)))
 
 (defun corfu--eldoc-advice ()



reply via email to

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