[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb ba976d5 401/449: Prefer defalias to fset
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb ba976d5 401/449: Prefer defalias to fset |
Date: |
Fri, 27 Nov 2020 23:16:20 -0500 (EST) |
branch: externals/gnorb
commit ba976d5d01a0cf25d2be92813830171843171151
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Prefer defalias to fset
* packages/gnorb/gnorb-bbdb.el:
* packages/gnorb/gnorb-gnus.el: Use defalias to construct ad-hoc
function symbols.
---
gnorb-bbdb.el | 40 ++++++++++++++++++++--------------------
gnorb-gnus.el | 16 ++++++++--------
2 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/gnorb-bbdb.el b/gnorb-bbdb.el
index 900988f..b74f9bd 100644
--- a/gnorb-bbdb.el
+++ b/gnorb-bbdb.el
@@ -166,15 +166,15 @@ be composed, just as in `gnus-posting-styles'."
:type 'list)
(when (fboundp 'bbdb-record-xfield-string)
- (fset (intern (format "bbdb-read-xfield-%s"
- gnorb-bbdb-org-tag-field))
- (lambda (&optional init)
- (gnorb-bbdb-read-org-tags init)))
+ (defalias (intern (format "bbdb-read-xfield-%s"
+ gnorb-bbdb-org-tag-field))
+ (lambda (&optional init)
+ (gnorb-bbdb-read-org-tags init)))
- (fset (intern (format "bbdb-display-%s-multi-line"
- gnorb-bbdb-org-tag-field))
- (lambda (record indent)
- (gnorb-bbdb-display-org-tags record indent))))
+ (defalias (intern (format "bbdb-display-%s-multi-line"
+ gnorb-bbdb-org-tag-field))
+ (lambda (record indent)
+ (gnorb-bbdb-display-org-tags record indent))))
(defun gnorb-bbdb-read-org-tags (&optional init)
"Read Org mode tags, with `completing-read-multiple'."
@@ -518,22 +518,22 @@ layout type."
(t
""))))))
-(fset (intern (format "bbdb-display-%s-multi-line"
- gnorb-bbdb-messages-field))
- (lambda (record indent)
- (gnorb-bbdb-display-messages record 'multi indent)))
+(defalias (intern (format "bbdb-display-%s-multi-line"
+ gnorb-bbdb-messages-field))
+ (lambda (record indent)
+ (gnorb-bbdb-display-messages record 'multi indent)))
-(fset (intern (format "bbdb-display-%s-one-line"
- gnorb-bbdb-messages-field))
- (lambda (record)
- (gnorb-bbdb-display-messages record 'one)))
+(defalias (intern (format "bbdb-display-%s-one-line"
+ gnorb-bbdb-messages-field))
+ (lambda (record)
+ (gnorb-bbdb-display-messages record 'one)))
;; Don't allow direct editing of this field
-(fset (intern (format "bbdb-read-xfield-%s"
- gnorb-bbdb-messages-field))
- (lambda (&optional _init)
- (user-error "This field shouldn't be edited manually")))
+(defalias (intern (format "bbdb-read-xfield-%s"
+ gnorb-bbdb-messages-field))
+ (lambda (&optional _init)
+ (user-error "This field shouldn't be edited manually")))
;; Open links from the *BBDB* buffer.
diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index 4027870..77e21ce 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -908,10 +908,10 @@ option `gnorb-gnus-hint-relevant-article' is non-nil."
(t " ")))
" "))
-(fset (intern (concat "gnus-user-format-function-"
- gnorb-gnus-summary-mark-format-letter))
- (lambda (header)
- (gnorb-gnus-insert-format-letter-maybe header)))
+(defalias (intern (concat "gnus-user-format-function-"
+ gnorb-gnus-summary-mark-format-letter))
+ (lambda (header)
+ (gnorb-gnus-insert-format-letter-maybe header)))
(defun gnorb-gnus-insert-format-tags (header)
(let* ((id (mail-header-message-id header))
@@ -924,10 +924,10 @@ option `gnorb-gnus-hint-relevant-article' is non-nil."
":" (mapconcat #'identity tags ":") ":")
"")))
-(fset (intern (concat "gnus-user-format-function-"
- gnorb-gnus-summary-tags-format-letter))
- (lambda (header)
- (gnorb-gnus-insert-format-tags header)))
+(defalias (intern (concat "gnus-user-format-function-"
+ gnorb-gnus-summary-tags-format-letter))
+ (lambda (header)
+ (gnorb-gnus-insert-format-tags header)))
;;;###autoload
(defun gnorb-gnus-view ()
- [elpa] externals/gnorb e7fa2d2 378/449: New copy-message-text behavior, (continued)
- [elpa] externals/gnorb e7fa2d2 378/449: New copy-message-text behavior, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8509773 376/449: Don't let the Gnus summary format group create registry entries, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4b215ae 379/449: gnorb-utils needs macros from nnheader, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4a732d9 384/449: Tweak text search in gnorb-org-view, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d304558 383/449: Fix replying to most recent tracked message; bump to 1.3.2, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b630235 390/449: Gnorb: Tweaks to gnorb-org-extract-mail-tracking, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9e95e90 387/449: Gnorb: New option gnorb-gnus-tick-all-tracked-messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 09d5487 386/449: New option gnorb-org-log-add-link, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ed11f5d 399/449: Gnorb: Fix and bump to 1.4.2, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a3f4fbd 400/449: Gnorb: The proper link type is "mailto", not "mail", Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ba976d5 401/449: Prefer defalias to fset,
Stefan Monnier <=
- [elpa] externals/gnorb e8d0043 405/449: Missing a require for seq package, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb cb25e86 406/449: New function gnorb-gnus-search-registry, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5f885be 398/449: Gnorb: New command for inserting tracked messages; bump to 1.4.1, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8922fd0 409/449: [gnorb] Fix immediate and inexplicable typos, bump to 1.5.1, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 0c20b7d 397/449: Provide Org tagging for Gnus messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c2f837c 341/449: Improve efficiency of retrieving tracked messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 6917948 343/449: Bah, typo, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 47195a6 349/449: Require gnorb-gnus in the gnus-started-hook, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b892337 356/449: Bump version to 1.1.3, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5c270cd 357/449: Update NEWS file, Stefan Monnier, 2020/11/27