[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-real 180d374 014/160: Standardized pretty printing
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-real 180d374 014/160: Standardized pretty printing for org-real-world and opening a link |
Date: |
Wed, 6 Oct 2021 16:58:05 -0400 (EDT) |
branch: externals/org-real
commit 180d374f1d865b65e6443d96ad20102c542247ea
Author: Tyler Grinn <tylergrinn@gmail.com>
Commit: Tyler Grinn <tylergrinn@gmail.com>
Standardized pretty printing for org-real-world and opening a link
---
org-real.el | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/org-real.el b/org-real.el
index d08e9cc..ff858f1 100644
--- a/org-real.el
+++ b/org-real.el
@@ -339,14 +339,10 @@ that the width of WORLD is kept below 80 characters if
possible."
(defun org-real-world ()
"View all real links in the current buffer."
(interactive)
- (let* ((box (org-real--merge (mapcar 'org-real--create-box
(org-real--parse-buffer))))
- (width (org-real--get-width box))
- (height (org-real--get-height box)))
- (with-current-buffer-window "Org Real" nil nil
- (dotimes (_ height) (insert (concat (make-string width ?\s) "\n")))
- (org-real--draw box 0)
- (toggle-truncate-lines t)
- (special-mode))))
+ (org-real--pp
+ (org-real--merge
+ (mapcar 'org-real--create-box
+ (org-real--parse-buffer)))))
;;;; `org-insert-link' configuration
@@ -457,16 +453,20 @@ describing where BOX is."
(height (org-real--get-height box))
(inhibit-read-only t)
(buffer (get-buffer-create "Org Real")))
- (display-buffer buffer 'display-buffer-pop-up-window)
(with-current-buffer buffer
(erase-buffer)
(goto-line 0)
(toggle-truncate-lines t)
(if containers (org-real--pp-text containers))
- (let ((offset (line-number-at-pos)))
+ (let ((offset (- (line-number-at-pos)
+ (cdr org-real--margin)
+ (* 2 (cdr org-real--padding)))))
(dotimes (_ (+ top height)) (insert (concat (make-string width ?\s)
"\n")))
(org-real--draw box offset)
- (special-mode)))))
+ (special-mode)))
+ (display-buffer buffer `(display-buffer-pop-up-window
+ (window-width . 80)
+ (window-height . ,height)))))
(defun org-real--pp-text (containers)
- [elpa] externals/org-real 49c8920 008/160: Removed server stage from ci/cd, (continued)
- [elpa] externals/org-real 49c8920 008/160: Removed server stage from ci/cd, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real f281b65 010/160: Typo, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real e0eac63 019/160: Updated preposition list, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 735ce86 028/160: Cleaned up hooks, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 4fe5b9f 036/160: Renamed md5 command, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 0974b67 023/160: Make changes to satisfy elc compiler, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 4c2915a 033/160: Updated README, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 89d616e 024/160: Check compilation during ci/cd pipeline, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real ed47eaa 048/160: Using stored values for computing top left width and height, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real c1a21a5 050/160: Added 'on top of' preposition; update customization vars, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 180d374 014/160: Standardized pretty printing for org-real-world and opening a link,
ELPA Syncer <=
- [elpa] externals/org-real 356767c 034/160: Added org-real-pkg for multifile package, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real dd03f41 025/160: Initial release, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 0b764c7 022/160: get-width compares children with margins included, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real a5df40f 026/160: Bump version, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real ac799d3 040/160: Merge into single file, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 7d9d67d 044/160: Rearranging, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 2ebeb5c 046/160: Updated readme, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 8445765 047/160: Added customization group, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real cb64694 051/160: Added children when following a link, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 01899e9 052/160: More edge cases, ELPA Syncer, 2021/10/06