[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 165526729d 1/3: More cleanups from Stefan
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ebdb 165526729d 1/3: More cleanups from Stefan |
Date: |
Fri, 15 Dec 2023 12:57:58 -0500 (EST) |
branch: externals/ebdb
commit 165526729d0b3b02e9a457203bbc89de4a71019d
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
More cleanups from Stefan
Sharp quotes and removal of unnecessary defcustom :group specifiers.
---
ebdb-complete.el | 16 ++++++++--------
ebdb-i18n.el | 6 ++----
ebdb-message.el | 3 +--
ebdb-mhe.el | 9 ++++-----
ebdb-rmail.el | 4 ++--
ebdb-vm.el | 12 +++---------
6 files changed, 20 insertions(+), 30 deletions(-)
diff --git a/ebdb-complete.el b/ebdb-complete.el
index 444af05c30..220de71602 100644
--- a/ebdb-complete.el
+++ b/ebdb-complete.el
@@ -81,7 +81,7 @@
(define-obsolete-function-alias
'ebdb-complete-quit-window
- 'ebdb-complete-bury-ebdb-buffer "1.0.0")
+ #'ebdb-complete-bury-ebdb-buffer "1.0.0")
(defun ebdb-complete-bury-ebdb-buffer ()
"Hide EBDB buffer and switch to message buffer.
@@ -107,7 +107,7 @@ Before switch, this command will do some clean jobs."
(define-obsolete-function-alias
'ebdb-complete-push-mail-and-quit-window
- 'ebdb-complete-push-mail-and-bury-ebdb-buffer "1.0.0")
+ #'ebdb-complete-push-mail-and-bury-ebdb-buffer "1.0.0")
(defun ebdb-complete-push-mail-and-bury-ebdb-buffer ()
"Push email-address to Message window and hide EBDB buffer."
@@ -201,18 +201,18 @@ when in message body, this command will indent regular
text."
(defun ebdb-complete-keybinding-setup ()
"Setup ebdb-complete Keybindings."
- (define-key ebdb-mode-map "q" 'ebdb-complete-bury-ebdb-buffer)
- (define-key ebdb-mode-map "\C-c\C-c" 'ebdb-complete-push-mail)
- (define-key ebdb-mode-map (kbd "RET")
'ebdb-complete-push-mail-and-bury-ebdb-buffer))
+ (define-key ebdb-mode-map "q" #'ebdb-complete-bury-ebdb-buffer)
+ (define-key ebdb-mode-map "\C-c\C-c" #'ebdb-complete-push-mail)
+ (define-key ebdb-mode-map (kbd "RET")
#'ebdb-complete-push-mail-and-bury-ebdb-buffer))
;;;###autoload
(defun ebdb-complete-enable ()
"Enable ebdb-complete, it will rebind TAB key in `message-mode-map'."
(interactive)
(require 'message)
- (add-hook 'ebdb-mode-hook 'ebdb-complete-keybinding-setup)
- (define-key message-mode-map "\t" 'ebdb-complete-message-tab)
- (define-key mail-mode-map "\t" 'ebdb-complete-message-tab)
+ (add-hook 'ebdb-mode-hook #'ebdb-complete-keybinding-setup)
+ (define-key message-mode-map "\t" #'ebdb-complete-message-tab)
+ (define-key mail-mode-map "\t" #'ebdb-complete-message-tab)
(message "ebdb-complete: Override EBDB keybindings: `q', `C-c C-c' and
`RET'"))
(provide 'ebdb-complete)
diff --git a/ebdb-i18n.el b/ebdb-i18n.el
index 49175d264e..5f24f3d7bf 100644
--- a/ebdb-i18n.el
+++ b/ebdb-i18n.el
@@ -51,8 +51,7 @@
(defcustom ebdb-i18n-ignorable-scripts '(latin)
"A list of script types that should be considered \"standard\".
That is, no special handling will be done for them."
- :type '(repeat :tag "Script type" symbol)
- :group 'ebdb-i18n)
+ :type '(repeat :tag "Script type" symbol))
(defcustom ebdb-i18ngroup-countries-pref-scripts nil
"An alist equivalent to `ebdb-i18n-countries', but in alternate scripts.
@@ -66,8 +65,7 @@ Any country name listed here will be offered along with the
English version for completion, and will be preferred over the
English version for display."
- :type '(repeat (cons string string))
- :group 'ebdb-i18n)
+ :type '(repeat (cons string string)))
;; defvars come first to pacify compiler.
diff --git a/ebdb-message.el b/ebdb-message.el
index a32ae4e63c..7073dea3c0 100644
--- a/ebdb-message.el
+++ b/ebdb-message.el
@@ -64,7 +64,6 @@ configurations.
Note that this should be a different symbol from that used in
Gnus's article-reading config."
- :group 'ebdb-mua-message
:type '(choice (const nil)
(symbol :tag "Window config name")))
@@ -167,7 +166,7 @@ Also fires when postponing a draft."
#'ebdb-message-complete-mail-cleanup
nil t)))
('nil nil)
- (_ (define-key mail-mode-map "\M-\t" 'ebdb-complete-mail)))
+ (_ (define-key mail-mode-map "\M-\t" #'ebdb-complete-mail)))
(when ebdb-message-window-configuration
(add-to-list 'gnus-window-to-buffer
diff --git a/ebdb-mhe.el b/ebdb-mhe.el
index 57268fb718..9bc9c5450b 100644
--- a/ebdb-mhe.el
+++ b/ebdb-mhe.el
@@ -28,7 +28,6 @@
(require 'mh-e)
(if (fboundp 'mh-version)
(require 'mh-comp)) ; For mh-e 4.x
-(require 'advice)
(defgroup ebdb-mua-mhe nil
"EBDB customizations for mhe."
@@ -144,16 +143,16 @@ Returns the empty string if HEADER is not in the message."
(ebdb-load))
(define-key mh-folder-mode-map ";" ebdb-mua-keymap)
(when ebdb-complete-mail
- (define-key mh-letter-mode-map "\M-;" 'ebdb-complete-mail)
- (define-key mh-letter-mode-map "\e\t" 'ebdb-complete-mail)))
+ (define-key mh-letter-mode-map "\M-;" #'ebdb-complete-mail)
+ (define-key mh-letter-mode-map "\e\t" #'ebdb-complete-mail)))
;;;###autoload
(defun ebdb-mhe-auto-update ()
(ebdb-mua-auto-update ebdb-mhe-auto-update-p))
-(add-hook 'mh-show-hook 'ebdb-mhe-auto-update)
+(add-hook 'mh-show-hook #'ebdb-mhe-auto-update)
-(add-hook 'mh-folder-mode-hook 'ebdb-insinuate-mh)
+(add-hook 'mh-folder-mode-hook #'ebdb-insinuate-mh)
(provide 'ebdb-mhe)
;;; ebdb-mhe.el ends here
diff --git a/ebdb-rmail.el b/ebdb-rmail.el
index b86d12cb15..4a4ed59675 100644
--- a/ebdb-rmail.el
+++ b/ebdb-rmail.el
@@ -90,9 +90,9 @@ the value of `ebdb-default-window-size'."
(defun ebdb-rmail-auto-update ()
(ebdb-mua-auto-update ebdb-rmail-auto-update-p))
-(add-hook 'rmail-mode-hook 'ebdb-insinuate-rmail)
+(add-hook 'rmail-mode-hook #'ebdb-insinuate-rmail)
-(add-hook 'rmail-show-message-hook 'ebdb-rmail-auto-update)
+(add-hook 'rmail-show-message-hook #'ebdb-rmail-auto-update)
(provide 'ebdb-rmail)
;;; ebdb-rmail.el ends here
diff --git a/ebdb-vm.el b/ebdb-vm.el
index cdac018046..d7cbfd0cf2 100644
--- a/ebdb-vm.el
+++ b/ebdb-vm.el
@@ -118,26 +118,22 @@ the value of `ebdb-default-window-size'."
(defcustom ebdb/vm-auto-folder-headers '("From:" "To:" "CC:")
"The headers used by `ebdb/vm-auto-folder'.
The order in this list is the order how matching will be performed."
- :group 'ebdb-mua-vm
:type '(repeat (string :tag "header name")))
;;;###autoload
(defcustom ebdb/vm-auto-folder-field "vm-folder"
"The xfield which `ebdb/vm-auto-folder' searches for."
- :group 'ebdb-mua-vm
:type 'symbol)
;;;###autoload
(defcustom ebdb/vm-virtual-folder-field "vm-virtual"
"The xfield which `ebdb/vm-virtual-folder' searches for."
- :group 'ebdb-mua-vm
:type 'symbol)
;;;###autoload
(defcustom ebdb/vm-virtual-real-folders nil
"Real folders used for defining virtual folders.
If nil use `vm-primary-inbox'."
- :group 'ebdb-mua-vm
:type '(choice (const :tag "Use vm-primary-inbox" nil)
(repeat (string :tag "Real folder"))))
@@ -255,7 +251,6 @@ Its elements may be strings used both as the field value to
check for
and as the label to apply to the message.
If an element is a cons pair (VALUE . LABEL), VALUE is the field value
to search for and LABEL is the label to apply."
- :group 'ebdb-mua-vm
:type '(repeat string))
(defcustom ebdb/vm-auto-add-label-field 'ebdb-mail-alias-field
@@ -263,7 +258,6 @@ to search for and LABEL is the label to apply."
This is either a single EBDB field or a list of fields that
`ebdb/vm-auto-add-label' uses to check for labels to apply to a message.
Defaults to `ebdb-mail-alias-field' which defaults to `mail-alias'."
- :group 'ebdb-mua-vm
:type '(choice symbol (repeat symbol)))
(defun ebdb/vm-auto-add-label (record)
@@ -310,7 +304,7 @@ from different senders."
ebdb/vm-auto-add-label-list))))
(if labels
(vm-add-message-labels
- (mapconcat 'identity labels " ") 1)))))
+ (mapconcat #'identity labels " ") 1)))))
@@ -372,11 +366,11 @@ from different senders."
(unless ebdb-db-list
(ebdb-load))
(define-key vm-mode-map ";" ebdb-mua-keymap)
- (define-key vm-mode-map "/" 'ebdb)
+ (define-key vm-mode-map "/" #'ebdb)
;; `mail-mode-map' is the parent of `vm-mail-mode-map'.
;; So the following is also done by `ebdb-insinuate-mail'.
(if (and ebdb-complete-mail (boundp 'vm-mail-mode-map))
- (define-key vm-mail-mode-map "\M-\t" 'ebdb-complete-mail))
+ (define-key vm-mail-mode-map "\M-\t" #'ebdb-complete-mail))
;; Set up user field for use in `vm-summary-format'
;; (1) Big solution: use whole name