[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0465711 124/399: counsel.el (counsel-org-tag-agenda): Chec
From: |
Oleh Krehel |
Subject: |
[elpa] master 0465711 124/399: counsel.el (counsel-org-tag-agenda): Check org-version |
Date: |
Sat, 20 Jul 2019 14:57:05 -0400 (EDT) |
branch: master
commit 0465711c0d2b6405b8fd014772965279b9d98a7b
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-org-tag-agenda): Check org-version
Re #1997
---
counsel.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/counsel.el b/counsel.el
index 09163e9..9936e8e 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3072,13 +3072,15 @@ otherwise continue prompting for tags."
(defun counsel-org-tag-agenda ()
"Set tags for the current agenda item."
(interactive)
- (let ((store (symbol-function 'org-set-tags-command)))
+ (let* ((cmd-sym (if (version< (org-version) "9.2")
+ 'org-set-tags
+ 'org-set-tags-command))
+ (store (symbol-function cmd-sym)))
(unwind-protect
(progn
- (fset 'org-set-tags-command
- (symbol-function 'counsel-org-tag))
+ (fset cmd-sym (symbol-function 'counsel-org-tag))
(org-agenda-set-tags nil nil))
- (fset 'org-set-tags-command store))))
+ (fset cmd-sym store))))
(define-obsolete-variable-alias 'counsel-org-goto-display-tags
'counsel-org-headline-display-tags "0.10.0")
- [elpa] master 05763ae 121/399: counsel.el (counsel-git): Fix default-directory, (continued)
- [elpa] master 05763ae 121/399: counsel.el (counsel-git): Fix default-directory, Oleh Krehel, 2019/07/20
- [elpa] master aef1242 118/399: ivy-overlay.el (ivy-overlay-impossible-p): Simplify, Oleh Krehel, 2019/07/20
- [elpa] master 3cb9d72 120/399: ivy-overlay.el (ivy-display-function-overlay): Fix weird offset, Oleh Krehel, 2019/07/20
- [elpa] master ea6ef81 122/399: Allow recursive minibuffers to use ivy-display-function-alist, Oleh Krehel, 2019/07/20
- [elpa] master 5e54abd 123/399: Fix counsel-org-tag-agenda, Oleh Krehel, 2019/07/20
- [elpa] master 1998783 125/399: counsel.el (counsel-find-file-ignore-regexp): Add nested hidden dotfiles, Oleh Krehel, 2019/07/20
- [elpa] master bb5d0d4 119/399: ivy-overlay.el (ivy-display-function-overlay): Refactor, Oleh Krehel, 2019/07/20
- [elpa] master f9b64c3 126/399: swiper.el (swiper-isearch): Add, Oleh Krehel, 2019/07/20
- [elpa] master 1606918 129/399: ivy.el (ivy-read): Allow :update-fn to be 'auto, Oleh Krehel, 2019/07/20
- [elpa] master f4431d4 133/399: doc/ivy.org (automatically integrated packages): Add, Oleh Krehel, 2019/07/20
- [elpa] master 0465711 124/399: counsel.el (counsel-org-tag-agenda): Check org-version,
Oleh Krehel <=
- [elpa] master 3416142 128/399: counsel.el (counsel--async-sentinel): Fix index jumping randomly, Oleh Krehel, 2019/07/20
- [elpa] master 31a554d 130/399: swiper.el (swiper-isearch): Anchor to line-beginning-position, Oleh Krehel, 2019/07/20
- [elpa] master adad2e4 127/399: counsel.el: Strip space from initial input of counsel-package, Oleh Krehel, 2019/07/20
- [elpa] master df8901f 132/399: swiper.el (swiper-query-replace): Add preview overlays, Oleh Krehel, 2019/07/20
- [elpa] master dc3f469 131/399: swiper.el (swiper-isearch): Extend, Oleh Krehel, 2019/07/20
- [elpa] master bc479ed 134/399: swiper.el (swiper-isearch): Fix minibuffer height, Oleh Krehel, 2019/07/20
- [elpa] master fa2e02d 137/399: ivy-overlay.el (ivy-cursor): Customize for dark background, Oleh Krehel, 2019/07/20
- [elpa] master 8edde1c 135/399: swiper.el (swiper-isearch): Change prompt, Oleh Krehel, 2019/07/20
- [elpa] master 66961f8 138/399: swiper.el (swiper-isearch-action): Add a cursor overlay, Oleh Krehel, 2019/07/20
- [elpa] master ce31009 144/399: swiper.el (swiper-isearch-function): Use text with faces, Oleh Krehel, 2019/07/20