[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-real d95d469 156/160: Changed cl-defmethod to defun
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-real d95d469 156/160: Changed cl-defmethod to defun; linting |
Date: |
Wed, 6 Oct 2021 16:58:36 -0400 (EDT) |
branch: externals/org-real
commit d95d46966581cf82e5c330615f0040458386dc5f
Author: Tyler Grinn <tylergrinn@gmail.com>
Commit: Tyler Grinn <tylergrinn@gmail.com>
Changed cl-defmethod to defun; linting
---
org-real.el | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/org-real.el b/org-real.el
index 8a37b6a..9076d17 100644
--- a/org-real.el
+++ b/org-real.el
@@ -238,7 +238,7 @@ diagram."
(put-text-property 0 (length primary-name) 'face 'org-real-primary
primary-name)
(cl-flet ((append-str (&rest strings)
- (setq header (apply 'concat header strings))))
+ (setq header (apply #'concat header strings))))
(append-str (make-string org-real-margin-y ?\n)
(make-string org-real-margin-x ?\s)
"The " primary-name)
@@ -250,8 +250,9 @@ diagram."
(append-str ".")
header)))
-;;;; Interactive functions
+;;;; Commands
+;;;###autoload
(defun org-real-world ()
"View all real links in the current buffer."
(interactive)
@@ -263,7 +264,7 @@ diagram."
(world (boxy-merge
(mapcar
(lambda (containers)
- (org-real--make-instance 'boxy-box containers))
+ (org-real--make-box containers))
(org-real--parse-buffer)))))
(org-real-pp world
:display-buffer-fn 'display-buffer-same-window
@@ -279,6 +280,7 @@ diagram."
(with-current-buffer (get-buffer "*Boxy*")
(boxy-jump-to-box match)))))))
+;;;###autoload
(defun org-real-apply ()
"Apply any change from the real link at point to the current buffer."
(interactive)
@@ -351,7 +353,7 @@ diagram."
((or (= response ?n) (= response
?N)) nil)
((or (= response ?a) (= response ?A))
(setq replace-all t))))))
- (mapc 'funcall changes)))
+ (mapc #'funcall changes)))
(pop new-containers)))))
(message nil))
@@ -364,7 +366,7 @@ diagram."
(defun org-real-follow (url &rest _)
"Open a real link URL in a popup buffer."
(let* ((containers (org-real--parse-url url (point-marker)))
- (box (org-real--make-instance 'boxy-box (copy-tree containers))))
+ (box (org-real--make-box (copy-tree containers))))
(if org-real-include-context
(let* ((primary-name (plist-get (car (reverse containers)) :name))
(container-matrix (seq-filter
@@ -378,7 +380,7 @@ diagram."
(org-real--parse-buffer)))
(context-boxes (mapcar
(lambda (containers)
- (org-real--make-instance 'boxy-box containers
t))
+ (org-real--make-box containers t))
container-matrix)))
(mapc
(lambda (context) (boxy-merge-into context box))
@@ -395,7 +397,7 @@ diagram."
(org-real--complete-thing "Thing: " container-matrix
'()))))
(catch 'confirm
(while t
- (org-real-pp (org-real--make-instance 'boxy-box containers)
+ (org-real-pp (org-real--make-box containers)
:header (org-real--get-header containers)
:visibility 0)
(let ((response (read-event "RETURN - Confirm\nBACKSPACE - Remove
context\n+ - Add context")))
@@ -434,7 +436,7 @@ EXISTING containers will be excluded from the completion."
(cl-delete-duplicates
(mapcar
(lambda (container) (plist-get container :name))
- (apply 'append container-matrix)))))
+ (apply #'append container-matrix)))))
(result (completing-read prompt completions nil 'confirm))
(existing-containers (car (seq-sort
(lambda (a b) (> (length a) (length b)))
@@ -494,9 +496,7 @@ ORIG is `org-insert-link', ARGS are the arguments passed to
it."
;;;; Boxy box implementation
-(cl-defmethod org-real--make-instance ((_ (subclass boxy-box))
- containers
- &optional skip-primary)
+(defun org-real--make-box (containers &optional skip-primary)
"Create a `boxy-box' from CONTAINERS.
If SKIP-PRIMARY is non-nil, don't highlight the primary box."
@@ -508,11 +508,11 @@ If SKIP-PRIMARY is non-nil, don't highlight the primary
box."
(org-real--add-container containers world skip-primary)
world))
-(cl-defmethod org-real--add-container (containers
- (prev boxy-box)
- &optional
- skip-primary
- force-visible)
+(defun org-real--add-container (containers
+ prev
+ &optional
+ skip-primary
+ force-visible)
"Add the first container from CONTAINERS to PREV.
If SKIP-PRIMARY, don't highlight the primary box.
- [elpa] externals/org-real cd43923 119/160: Use original relationship for tooltip if changed, (continued)
- [elpa] externals/org-real cd43923 119/160: Use original relationship for tooltip if changed, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real f03777b 132/160: Fixed hiding of rel-box border, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 8d5af75 144/160: Linting, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real ab46371 160/160: Merge branch 'next' into 'main', ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 20e80af 145/160: Bump version, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real babe4da 148/160: Add submodules during ci/cd pipeline, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real a13ee17 155/160: Added elpaignore, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 89c1120 153/160: Linting, rearranging, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 19711cb 159/160: Updated elpaignore, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real af8744b 151/160: Removed `org-real-headlines`, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real d95d469 156/160: Changed cl-defmethod to defun; linting,
ELPA Syncer <=
- [elpa] externals/org-real 80799f6 150/160: Linting, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 791ed99 157/160: Added url-parse, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 0d25274 084/160: Passing edge cases, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 8f7ef62 085/160: Updated readme, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 87dfecc 081/160: Org real headlines switched to add-next, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real e0d81ab 098/160: Bump version, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real a8e336d 095/160: Typo in flex-adjust, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 5fb78c3 108/160: Skip adding box if it already exists, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 900f96a 129/160: Added is-plural, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real fb056dc 078/160: Reuse window if org real diagram already visible, ELPA Syncer, 2021/10/06