[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/blist a4c0a7626f 07/31: fix defcustom problem
From: |
ELPA Syncer |
Subject: |
[elpa] externals/blist a4c0a7626f 07/31: fix defcustom problem |
Date: |
Tue, 28 Dec 2021 16:57:29 -0500 (EST) |
branch: externals/blist
commit a4c0a7626f307f756c7a7ed59e371218b71a2d1f
Author: JSDurand <mmemmew@gmail.com>
Commit: JSDurand <mmemmew@gmail.com>
fix defcustom problem
I didn't know that `defcustom' requires its setter to be defined
beforehand. Now this is fixed.
---
blist.el | 55 ++++++++++++++++++++++++++++---------------------------
1 file changed, 28 insertions(+), 27 deletions(-)
diff --git a/blist.el b/blist.el
index 954eccb866..6f704d7f53 100644
--- a/blist.el
+++ b/blist.el
@@ -122,7 +122,28 @@ See `blist-sorter'."
(const nil :tag "No sorting")
(function :tag "Sorting function")))
-;;;; Annotation Column Name
+;;;; Annotation Column
+
+;;;;; Annotation column setter
+
+(defun blist-get-annotation (bookmark)
+ "Return if BOOKMARK has annotation.
+If BOOKMARK has no annotation, return a space string."
+ (cond
+ ((let ((annotation (bookmark-get-annotation bookmark)))
+ (and (stringp annotation)
+ (not (string= annotation ""))))
+ "*")
+ (" ")))
+
+(defun blist-set-annotation-column (&rest _args)
+ "Set the annotation column.
+ARGS are there to conform to the customization interface."
+ (setq blist-annotation-column
+ (list blist-annotation-column-name #'blist-get-annotation
+ 1 1 :left nil)))
+
+;;;;; Real column definition
(defcustom blist-annotation-column-name "A"
"The name of the column showing whether a bookmark has \
@@ -133,8 +154,12 @@ Only the first letter will be shown.
If one changes this, run `blist-set-annotation-column' to set the
annotation column again."
:group 'blist
- :type 'string
- :set #'blist-set-annotation-column)
+ :type 'string)
+
+(defvar blist-annotation-column
+ (list blist-annotation-column-name #'blist-get-annotation
+ 1 1 :left nil)
+ "The specification of the ANNOTATION column.")
;;;; How to open multiple bookmarks?
@@ -226,30 +251,6 @@ an integer or a float between 0 and 1")))
:left
"..."))
-;;;;; Annotation column
-
-(defun blist-get-annotation (bookmark)
- "Return if BOOKMARK has annotation.
-If BOOKMARK has no annotation, return a space string."
- (cond
- ((let ((annotation (bookmark-get-annotation bookmark)))
- (and (stringp annotation)
- (not (string= annotation ""))))
- "*")
- (" ")))
-
-(defvar blist-annotation-column
- (list blist-annotation-column-name #'blist-get-annotation
- 1 1 :left nil)
- "The specification of the ANNOTATION column.")
-
-(defun blist-set-annotation-column (&rest _args)
- "Set the annotation column.
-ARGS are there to conform to the customization interface."
- (setq blist-annotation-column
- (list blist-annotation-column-name #'blist-get-annotation
- 1 1 :left nil)))
-
;;;;; Location column
(defun blist-get-location (bookmark)
- [elpa] branch externals/blist created (now e7d56657eb), ELPA Syncer, 2021/12/28
- [elpa] externals/blist 97a8b93b12 01/31: initial working version, ELPA Syncer, 2021/12/28
- [elpa] externals/blist 896e5568f8 04/31: More features, ELPA Syncer, 2021/12/28
- [elpa] externals/blist a4c0a7626f 07/31: fix defcustom problem,
ELPA Syncer <=
- [elpa] externals/blist fa54e09b57 03/31: More features, ELPA Syncer, 2021/12/28
- [elpa] externals/blist a24f9d6d35 06/31: fix `blist-select', ELPA Syncer, 2021/12/28
- [elpa] externals/blist a0b9bc4eb5 18/31: * blist.el (blist-relocate): Fix a bug caused by a typo., ELPA Syncer, 2021/12/28
- [elpa] externals/blist 950a214456 28/31: New option: blist-use-header-p, ELPA Syncer, 2021/12/28
- [elpa] externals/blist 4a5eb414f7 27/31: Fix errors and byte-compile, ELPA Syncer, 2021/12/28
- [elpa] externals/blist db67745821 13/31: Fix some README issues, ELPA Syncer, 2021/12/28
- [elpa] externals/blist c868a2d8b3 24/31: * blist.el (blist-all-bookmarks): refactor, ELPA Syncer, 2021/12/28
- [elpa] externals/blist eddd17ce4d 14/31: try to fix image, ELPA Syncer, 2021/12/28
- [elpa] externals/blist 4a4d94c09d 20/31: blist.el: QoL refinements, ELPA Syncer, 2021/12/28
- [elpa] externals/blist c2f4bc47d4 25/31: fix previous bugs caused by invisibility, ELPA Syncer, 2021/12/28