Changeset main,10
- Timestamp:
- 05/02/2020 01:17:58 AM (5 years ago)
- branch-nick:
- org-autofocus
- revision id:
- dsowen@fugue88.ws-20200502011758-sxtix7tulfhu1y3t
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/org-autofocus.el
r9 r10 59 59 60 60 61 (defun org-af- mark ()62 "M ark or unmark the current task."63 (interactive) 61 (defun org-af--beg-of-task () 62 "Move point to the beginning of the task at point. 63 Skips over any hidden tasks the are on the same line." 64 64 (beginning-of-line) 65 65 (when (get-text-property (point) 'org-af-hidden) 66 (goto-char (next-single-property-change (point) 'org-af-hidden))) 66 (goto-char (next-single-property-change (point) 'org-af-hidden)))) 67 68 69 (defun org-af-mark () 70 "Mark or unmark the current task, dim the previous marked task if any, and hide any tasks between." 71 (interactive) 72 (org-af--beg-of-task) 67 73 68 74 (let ((inhibit-read-only t) 69 75 (task-point (point)) 70 76 bol marked) 77 71 78 (unless (org-af--dimmed-p task-point) 72 79 (setq marked (not (org-af--marked-p task-point)))
Note: See TracChangeset
for help on using the changeset viewer.