From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Subject: Bug: agenda-tag-filter-preset not working, when ":newline" inside a tag radiogroup [9.2.3 (9.2.3-20-g31873e-elpaplus @ /home/msm/.emacs.d/elpa/org-plus-contrib-20190527/)] Date: Tue, 28 May 2019 11:34:09 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008253df0589ef5f2b" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVYVI-0002ql-JS for emacs-orgmode@gnu.org; Tue, 28 May 2019 05:34:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVYVG-0005ja-Qh for emacs-orgmode@gnu.org; Tue, 28 May 2019 05:34:44 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44598) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVYVG-0005i7-12 for emacs-orgmode@gnu.org; Tue, 28 May 2019 05:34:42 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4FC7716006C for ; Tue, 28 May 2019 11:34:38 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 45Cpb06pZ2z6tmH for ; Tue, 28 May 2019 11:34:36 +0200 (CEST) Received: by mail-lf1-f53.google.com with SMTP id h13so14018266lfc.7 for ; Tue, 28 May 2019 02:34:36 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --0000000000008253df0589ef5f2b Content-Type: text/plain; charset="UTF-8" --text follows this line-- I use the org-agenda-tag-filter-preset in my custom agenda commands. This breaks, when there is a (:newline) inside a radiogroup in org-tag-alist. When calling the agenda command, it gives the error: "mapcar: Wrong type argument: char-or-string-p, :newline" and the agenda gets built without the filter-preset. The minimal configuration (via customize-interface) below, shows the state triggering the error. Remove the (:newline) from inside the radiogroup in org-tag-alist and the filter-preset works again. Please fix it, so the filter-presets can be used together with (:newline) in tag-radiogroups. Questions anytime.. Thanks for your effort and great piece of software! -Jens Emacs : GNU Emacs 26.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-04-12 Package: Org mode version 9.2.3 (9.2.3-20-g31873e-elpaplus @ /home/msm/.emacs.d/elpa/org-plus-contrib-20190527/) current state: ============== (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-agenda-files '("~/org-test.org") org-tag-alist '((:startgroup) ("domain" . 32) (:grouptags) ("work" . 119) (:newline) ("private" . 112) (:endgroup) (:newline) ("other" . 32)) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql)) org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("id" :follow org-id-open) ("eww" :follow eww :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path)))) ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path)))) ("https" :follow (lambda (path) (browse-url (concat "https:" path)))) ("mailto" :follow (lambda (path) (browse-url (concat "mailto:" path)))) ("news" :follow (lambda (path) (browse-url (concat "news:" path)))) ("shell" :follow org--open-shell-link)) org-agenda-custom-commands '(("n" "Agenda and all TODOs" ((agenda "" nil) (alltodo "" nil)) ((org-agenda-tag-filter-preset (quote ("-work"))))) ) ) --0000000000008253df0589ef5f2b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
--t= ext follows this line--

I use the org-agenda-tag-filter-preset in my= custom agenda
commands.

This breaks, when there is a (:newline) = inside a radiogroup in
org-tag-alist. When calling the agenda command, i= t gives the error:

"mapcar: Wrong type argument: char-or-string= -p, :newline"

and the agenda gets built without the filter-pres= et.

The minimal configuration (via customize-interface) below, shows= the state triggering the error. Remove the (:newline) from inside the radi= ogroup in org-tag-alist and the filter-preset works again.

Please fi= x it, so the filter-presets can be used together with
(:newline) in tag-= radiogroups.

Questions anytime..

Thanks for your effort and great piece of soft= ware!
-Jens


Emacs =C2=A0: GNU Emacs 26.2 (build 2, x86_64-pc-= linux-gnu, GTK+ Version 3.22.30)
=C2=A0of 2019-04-12
Package: Org mod= e version 9.2.3 (9.2.3-20-g31873e-elpaplus @ /home/msm/.emacs.d/elpa/org-pl= us-contrib-20190527/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D
(setq
=C2=A0org-src-mode-hook '(org-src-babel-con= figure-edit-buffer org-src-mode-configure-edit-buffer)
=C2=A0org-metadow= n-hook '(org-babel-pop-to-session-maybe)
=C2=A0org-clock-out-hook &#= 39;(org-clock-remove-empty-clock-drawer)
=C2=A0org-agenda-files '(&q= uot;~/org-test.org")
=C2=A0org-= tag-alist '((:startgroup) ("domain" . 32) (:grouptags) ("= ;work" . 119) (:newline) ("private" . 112)
(:endgroup)= (:newline) ("other" . 32))
=C2=A0org-mode-hook '(#[0 &quo= t;\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show= -all append local] 5]
#[0 "\300\301\302\303\304$\207"
= =C2=A0 [add-hook change-major-mode-hook org-babel-show-result-all append l= ocal] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes org-eld= oc-load)
=C2=A0org-archive-hook '(org-attach-archive-delete-maybe)=C2=A0org-confirm-elisp-link-function 'yes-or-no-p
=C2=A0org-agend= a-before-write-hook '(org-agenda-add-entry-text)
=C2=A0org-metaup-ho= ok '(org-babel-load-in-session-maybe)
=C2=A0org-bibtex-headline-form= at-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY= )"]
=C2=A0org-babel-pre-tangle-hook '(save-buffer)
=C2=A0org= -tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-a= rg-expand)
=C2=A0org-src-lang-modes '(("arduino" . arduino= ) ("redis" . redis) ("php" . php) ("C" . c) (= "C++" . c++)
=C2=A0 =C2=A0 =C2=A0("asymptote" . a= sy) ("bash" . sh) ("beamer" . latex) ("calc" = . fundamental) ("cpp" . c++)
=C2=A0 =C2=A0 =C2=A0("dit= aa" . artist) ("dot" . fundamental) ("elisp" . ema= cs-lisp) ("ocaml" . tuareg)
=C2=A0 =C2=A0 =C2=A0("scre= en" . shell-script) ("shell" . sh) ("sqlite" . sql= ))
=C2=A0org-occur-hook '(org-first-headline-recenter)
=C2=A0org-= cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-line= s
=C2=A0org-optimize-window-after-visibility-change)
=C2=A0org-spe= ed-command-hook '(org-speed-command-activate org-babel-speed-command-ac= tivate)
=C2=A0org-confirm-shell-link-function 'yes-or-no-p
=C2=A0= org-link-parameters '(("id" :follow org-id-open) ("eww&q= uot; :follow eww :store org-eww-store-link)
=C2=A0 =C2=A0 =C2=A0 (&qu= ot;rmail" :follow org-rmail-open :store org-rmail-store-link)
= =C2=A0 =C2=A0 =C2=A0 ("mhe" :follow org-mhe-open :store org-mhe-s= tore-link)
=C2=A0 =C2=A0 =C2=A0 ("irc" :follow org-irc-visi= t :store org-irc-store-link :export org-irc-export)
=C2=A0 =C2=A0 =C2= =A0 ("info" :follow org-info-open :export org-info-export :store = org-info-store-link)
=C2=A0 =C2=A0 =C2=A0 ("gnus" :follow o= rg-gnus-open :store org-gnus-store-link)
=C2=A0 =C2=A0 =C2=A0 ("= docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link)
=C2=A0 =C2=A0 =C2=A0 ("bibtex" = :follow org-bibtex-open :store org-bibtex-store-link)
=C2=A0 =C2=A0 = =C2=A0 ("bbdb" :follow org-bbdb-open :export org-bbdb-export :com= plete org-bbdb-complete-link
:store org-bbdb-store-link)
=C2=A0= =C2=A0 =C2=A0 ("w3m" :store org-w3m-store-link) ("file+sys&= quot;) ("file+emacs")
=C2=A0 =C2=A0 =C2=A0 ("doi"= :follow org--open-doi-link) ("elisp" :follow org--open-elisp-lin= k)
=C2=A0 =C2=A0 =C2=A0 ("file" :complete org-file-complete= -link)
=C2=A0 =C2=A0 =C2=A0 ("ftp" :follow (lambda (path) (= browse-url (concat "ftp:" path))))
=C2=A0 =C2=A0 =C2=A0 (&q= uot;help" :follow org--open-help-link)
=C2=A0 =C2=A0 =C2=A0 (&qu= ot;http" :follow (lambda (path) (browse-url (concat "http:" = path))))
=C2=A0 =C2=A0 =C2=A0 ("https" :follow (lambda (pat= h) (browse-url (concat "https:" path))))
=C2=A0 =C2=A0 =C2= =A0 ("mailto" :follow (lambda (path) (browse-url (concat "ma= ilto:" path))))
=C2=A0 =C2=A0 =C2=A0 ("news" :follow (= lambda (path) (browse-url (concat "news:" path))))
=C2=A0 = =C2=A0 =C2=A0 ("shell" :follow org--open-shell-link))
=C2=A0or= g-agenda-custom-commands '(("n" "Agenda and all TODOs&qu= ot; ((agenda "" nil) (alltodo "" nil))
=C2=A0 = =C2=A0 =C2=A0 ((org-agenda-tag-filter-preset (quote ("-work")))))=
=C2=A0 =C2=A0 =C2=A0)
=C2=A0)
--0000000000008253df0589ef5f2b--