[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ergoemacs-mode 12b1018 194/325: Remove unused functions
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ergoemacs-mode 12b1018 194/325: Remove unused functions |
Date: |
Sat, 23 Oct 2021 18:48:51 -0400 (EDT) |
branch: externals/ergoemacs-mode
commit 12b10188ded0ae59f0beab798a62a9d22ab918b8
Author: Walter Landry <wlandry@caltech.edu>
Commit: Walter Landry <wlandry@caltech.edu>
Remove unused functions
---
ergoemacs-command-loop.el | 50 -----------------------------------------------
ergoemacs-component.el | 21 --------------------
ergoemacs-map.el | 4 ----
3 files changed, 75 deletions(-)
diff --git a/ergoemacs-command-loop.el b/ergoemacs-command-loop.el
index 389a634..cc0c9f5 100644
--- a/ergoemacs-command-loop.el
+++ b/ergoemacs-command-loop.el
@@ -522,57 +522,7 @@ This sequence is compatible with `listify-key-sequence'."
input))
input))
-(defun ergoemacs-command-loop-p ()
- "Determine if `ergoemacs-mode' is running its command loop.
-This is done by looking at the current `backtrace' and making
-sure that `ergoemacs-command-loop--internal' hasn't been called."
- (eq (symbol-function 'this-command-keys)
#'ergoemacs-command-loop--this-command-keys))
-
-(defvar ergoemacs-command-loop--running-pre-command-hook-p nil
- "Variable to tell if ergoemacs-command loop is running the
`pre-command-hook'.")
-
-(defvar ergoemacs-command-loop--excluded-variables
- '(defining-kbd-macro executing-kbd-macro)
- "List of variables stopping the command loop.
-
-While these variables are non-nil, the `ergoemacs-command-loop'
-will stop and not be started agin.")
-
-(defvar ergoemacs-command-loop--excluded-major-modes
- '(calc-mode calc-trail-mode calc-edit-mode)
- "List of major modes where the command loop is incompatible.")
-
-
(defvar ergoemacs-command-loop--minibuffer-unsupported-p nil)
-(defun ergoemacs-command-loop--minibuffer-supported-p (&optional command)
- "Determine if the current minibuffer supports the full command loop.
-When COMMAND is non-nil, set
-`ergoemacs-command-loop--minibuffer-unsupported-p' to the
-appropriate value based on the COMMAND."
- (if (not command)
- (or (not (minibufferp))
- (not ergoemacs-command-loop--minibuffer-unsupported-p))
- (when (or (and command (symbolp command) (string-match-p
"^\\(calc\\|math\\)" (symbol-name command)))
- (and (stringp command) (string-match-p "^[^:]*:\\(calc\\|math\\)"
command)))
- (ergoemacs-save-buffer-state
- (set (make-local-variable
'ergoemacs-command-loop--minibuffer-unsupported-p) t)))
- (ergoemacs-command-loop--minibuffer-supported-p)))
-
-(defun ergoemacs-command-loop-full-p (&optional type)
- "Determines if the full command loop should be run.
-
-
-TYPE is the type of command loop to check for. By default this
-is the :full command loop."
- (and
- (eq ergoemacs-command-loop-type (or type :full))
- (ergoemacs-command-loop--minibuffer-supported-p)
- (catch 'excluded-variables
- (dolist (var ergoemacs-command-loop--excluded-variables)
- (when (and var (ergoemacs-sv var))
- (throw 'excluded-variables nil)))
- t)
- (not (memq major-mode ergoemacs-command-loop--excluded-major-modes))))
(defvar ergoemacs-last-command-was-ergoemacs-ignore-p nil
"Last command was `ergoemacs-ignore'.")
diff --git a/ergoemacs-component.el b/ergoemacs-component.el
index 4a8ec94..df32b69 100644
--- a/ergoemacs-component.el
+++ b/ergoemacs-component.el
@@ -871,27 +871,6 @@ OBJ is the current object being modified, passed to
(ergoemacs-save-buffer-state
(set (make-local-variable (car elt)) (make-composed-keymap (cdr elt)
(symbol-value (car elt))))))))
-(defvar ergoemacs-component-struct--create-hooks nil)
-(defun ergoemacs-component-struct--create-hooks (&optional obj)
- "Gets a list of hooks that need to be defined eor OBJ."
- (dolist (hook (ergoemacs-component-struct--hooks obj))
- (eval `(progn
- (defun ,(intern (concat "ergoemacs--" (symbol-name hook))) ()
- ,(format "`ergoemacs-mode' hook for `%s'" (symbol-name hook))
- (ergoemacs-component-struct--composed-hook ',hook))
- ;; (push )
- (push ',hook ergoemacs-component-struct--create-hooks)
- (add-hook ',hook #',(intern (concat "ergoemacs--" (symbol-name
hook))))))))
-
-(defun ergoemacs-component-struct--rm-hooks ()
- "Remove hooks.
-
-These hooks are those created with
-`ergoemacs-component-struct--create-hooks'."
- (dolist (hook ergoemacs-component-struct--create-hooks)
- (remove-hook hook (intern (concat "ergoemacs--" (symbol-name hook)))))
- (setq ergoemacs-component-struct--create-hooks nil))
-
(defun ergoemacs-component-struct--translated-list (obj list &optional layout)
"Base on OBJ translation, Translate LIST using LAYOUT."
(let ((cur-layout (or layout ergoemacs-keyboard-layout))
diff --git a/ergoemacs-map.el b/ergoemacs-map.el
index 6c91319..14adeb6 100644
--- a/ergoemacs-map.el
+++ b/ergoemacs-map.el
@@ -69,16 +69,12 @@
(declare-function ergoemacs-command-loop--spinner-display
"ergoemacs-command-loop")
-(declare-function ergoemacs-component-struct--create-hooks
"ergoemacs-component")
(declare-function ergoemacs-component-struct--get "ergoemacs-component")
(declare-function ergoemacs-component-struct--lookup-hash
"ergoemacs-component")
(declare-function ergoemacs-component-struct--lookup-list
"ergoemacs-component")
(declare-function ergoemacs-component-struct--minor-mode-map-alist
"ergoemacs-component")
-(declare-function ergoemacs-component-struct--rm-hooks "ergoemacs-component")
(declare-function ergoemacs-component-struct--translated-list
"ergoemacs-component")
-(declare-function ergoemacs-command-loop--minibuffer-supported-p
"ergoemacs-command-loop")
-
(declare-function ergoemacs-theme--get-version "ergoemacs-theme-engine")
(declare-function ergoemacs-theme-components "ergoemacs-theme-engine")
(declare-function ergoemacs-theme--menu "ergoemacs-theme-engine")
- [elpa] externals/ergoemacs-mode 915c65f 166/325: Remove more macros and a mysteriously failing test, (continued)
- [elpa] externals/ergoemacs-mode 915c65f 166/325: Remove more macros and a mysteriously failing test, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9bf352f 168/325: Remove now unused macro option, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9fbd66c 173/325: Mostly turn off advice, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 846931e 175/325: Put bindings M-SPC, -delete, -up, -down into the override map, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 3c06bbe 179/325: Remove some command-loop code, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9be4392 180/325: Remove lots of command-loop stuff, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode d092102 181/325: Remove pre- and post-command hooks, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode cea18f4 182/325: Remove more command-loop stuff, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9d758c6 190/325: Remove unused hooks, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9cd2f3b 193/325: Always display unicode characters, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 12b1018 194/325: Remove unused functions,
Stefan Monnier <=
- [elpa] externals/ergoemacs-mode afc0844 198/325: Fix font problems in help image, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 2acbb4a 205/325: Remove a component prompt, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode cb65708 216/325: Remove menu-filter stuff, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 47924dc 203/325: Fix wording, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 728f2d7 209/325: Remove unused ergoemacs-map--modify-active, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 3d61040 220/325: Remove ergoemacs-layouts--no-aliases, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 581be06 212/325: Remove lots of timing code, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 1cf6041 225/325: Remove :current-version, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode fe1d378 226/325: Remove :current-theme, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 78bd8cf 231/325: Remove component stuff, Stefan Monnier, 2021/10/23