[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 5831137cf7 101/158: Rename dtache-initialize to
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 5831137cf7 101/158: Rename dtache-initialize to dtache-setup |
Date: |
Wed, 19 Jan 2022 18:58:02 -0500 (EST) |
branch: externals/dtache
commit 5831137cf75fe7291e6f33677bc5e54db4d8adb2
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Rename dtache-initialize to dtache-setup
All extensions have dtache-.*-setup functions that should be used. But
the core package had dtache-initialize. This patch renames the core
function in order to harmonize the naming.
It also makes sure the other setup functions runs dtache-setup, which
in case of that has already been called will do nothing.
---
README.org | 2 +-
dtache-compile.el | 1 +
dtache-eshell.el | 1 +
dtache-shell.el | 1 +
dtache.el | 3 ++-
test/dtache-test.el | 2 +-
6 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
index f0d6b93a12..5e1111904b 100644
--- a/README.org
+++ b/README.org
@@ -57,7 +57,7 @@ A minimal configuration for =dtache=.
#+begin_src elisp :lexical t :results none
(use-package dtache
- :hook (after-init . dtache-initialize)
+ :hook (after-init . dtache-setup)
:bind (([remap async-shell-command] . dtache-shell-command)
:map dtache-shell-mode-map
("C-c C-q" . dtache-detach-dwim)))
diff --git a/dtache-compile.el b/dtache-compile.el
index 824b977f38..7a5a869069 100644
--- a/dtache-compile.el
+++ b/dtache-compile.el
@@ -106,6 +106,7 @@ Optionally EDIT-COMMAND."
;;;###autoload
(defun dtache-compile-setup ()
"Setup `dtache-compile'."
+ (dtache-setup)
(advice-add #'compilation-start :around #'dtache-compile-advice)
(add-hook 'compilation-start-hook #'dtache-compile-maybe-start))
diff --git a/dtache-eshell.el b/dtache-eshell.el
index fb0387775c..9d39e7a7ba 100644
--- a/dtache-eshell.el
+++ b/dtache-eshell.el
@@ -39,6 +39,7 @@
;;;###autoload
(defun dtache-eshell-setup ()
"Setup `dtache-eshell'."
+ (dtache-setup)
(add-hook 'eshell-prepare-command-hook #'dtache-eshell-maybe-create-session)
(add-hook 'eshell-mode-hook #'dtache-eshell-mode))
diff --git a/dtache-shell.el b/dtache-shell.el
index 7329b0b03d..6be40c0ba8 100644
--- a/dtache-shell.el
+++ b/dtache-shell.el
@@ -51,6 +51,7 @@ This function also makes sure that the HISTFILE is disabled
for local shells."
;;;###autoload
(defun dtache-shell-setup ()
"Setup `dtache-shell'."
+ (dtache-setup)
(add-hook 'shell-mode-hook #'dtache-shell-save-history)
(advice-add 'shell :around #'dtache-shell-override-history))
diff --git a/dtache.el b/dtache.el
index b90e6bfe75..a25d28155f 100644
--- a/dtache.el
+++ b/dtache.el
@@ -81,6 +81,7 @@
"A property list defining how often to run a timer.")
(defvar dtache-shell-command-action '(:attach dtache-shell-command-attach
:view dtache-view-dwim :run dtache-shell-command)
"Actions for a session created with `dtache-shell-command'.")
+
(defvar dtache-annotation-format
`((:width 3 :function dtache--active-str :face dtache-active-face)
(:width 3 :function dtache--status-str :face dtache-failure-face)
@@ -539,7 +540,7 @@ Optionally make the path LOCAL to host."
(dtache--db-update-entry session)))
;;;###autoload
-(defun dtache-initialize ()
+(defun dtache-setup ()
"Initialize `dtache'."
;; Initialize sessions
diff --git a/test/dtache-test.el b/test/dtache-test.el
index d28318cdcf..85a7a08d0a 100644
--- a/test/dtache-test.el
+++ b/test/dtache-test.el
@@ -38,7 +38,7 @@
(dtache--remote-session-timer))
(unwind-protect
(progn
- (dtache-initialize)
+ (dtache-setup)
,@body)
(delete-directory temp-directory t))))
- [elpa] externals/dtache 9a2f4a4d43 057/158: Introduce caching variable for candidates, (continued)
- [elpa] externals/dtache 9a2f4a4d43 057/158: Introduce caching variable for candidates, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 02b93a3778 060/158: Minor cleanup, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache d693d4c386 065/158: Update README with links to blog posts, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 69b001d0e5 069/158: Make eshell-preoutput-filter-functions local, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache be23732c84 079/158: Update documentation in README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2e5a097da4 080/158: Implement dtache-compile-open, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c09328ca1e 081/158: Add actions to a session, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 82e5859d5a 098/158: Improve dtache-detach-session, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache f73aa7ef98 089/158: Cleanup dtache-shell, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 71966f0d2f 099/158: Add run as an action property, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 5831137cf7 101/158: Rename dtache-initialize to dtache-setup,
ELPA Syncer <=
- [elpa] externals/dtache 9746f4713c 106/158: Rename session-directory to log-directory, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c6aece77d2 113/158: Enhance dtache-detach-dwim command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache bf71be0eae 118/158: Change output-size to log-size, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache f77c57f608 120/158: Update duration part 2, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c8a99aed35 123/158: Add version to the dtache database, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 4fa1c9e8a2 134/158: Simplify call to dtache--dtach-arg, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3942dc6326 135/158: Remove unnecessary checks for dtache-session-mode, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3aa5babca5 139/158: Update table formatting, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache ee8f3efa26 144/158: Version 0.3, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache d0ec7b9777 156/158: Add support for filenotify on macOS, ELPA Syncer, 2022/01/19