- Timestamp:
- 05/02/2020 01:17:03 AM (5 years ago)
- branch-nick:
- org-autofocus
- revision id:
- dsowen@fugue88.ws-20200502011703-dpwvxknxviff44hv
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/org-autofocus.el
r8 r9 21 21 (put 'org-af-marked 'org-af-marked t) 22 22 (put 'org-af-marked 'display "*") 23 24 (defun org-af--mark (point) 25 "Mark the task at POINT." 26 (add-text-properties point (1+ point) '(category org-af-marked))) 27 28 (defun org-af--unmark (point) 29 "Unmark the task at POINT." 30 (remove-text-properties point (1+ point) '(category org-af-marked))) 31 32 (defun org-af--marked-p (point) 33 "Test whether the task at POINT is marked." 34 (get-text-property point 'org-af-marked)) 23 35 24 36 … … 58 70 bol marked) 59 71 (unless (org-af--dimmed-p task-point) 60 (setq marked (not ( get-text-property task-point 'org-af-marked)))72 (setq marked (not (org-af--marked-p task-point))) 61 73 (if marked 62 (add-text-properties task-point (1+ task-point) 63 '(category org-af-marked)) 64 (remove-text-properties task-point (1+ task-point) 65 '(category org-af-marked))) 74 (org-af--mark task-point) 75 (org-af--unmark task-point)) 66 76 67 77 (save-excursion … … 70 80 (setq bol (line-beginning-position)) 71 81 (get-text-property bol 'type) 72 (not ( get-text-property bol 'org-af-marked))))82 (not (org-af--marked-p bol)))) 73 83 74 (when ( get-text-property bol 'org-af-marked)84 (when (org-af--marked-p bol) 75 85 (if marked 76 86 (org-af--dim bol (line-end-position))
Note: See TracChangeset
for help on using the changeset viewer.