[O] Highlight text in org-agenda-prefix-format

2019-04-12 Thread Abdo Haji-Ali
I want to highlight certain text in my todo list in org-agenda.
I thought I could do something like this

  (defun my-func
(propertize "texty" 'face 'org-warning))
  (setq org-agenda-prefix-format '((todo .  "%(my-func) ")))

But the text appears without any formatting. Is there a reason for this?
Is there another way to highlight text in the todo-list in org agenda?



Re: [O] Commenting in org-mode 9.2.1

2019-02-04 Thread Abdo Haji-Ali
> I cannot reproduce your issue, neither or maint nor on master.
Thanks. I was using Emacs 25.2.2. Updating to Emacs 27.0.50 solves this issue.

-- 
Abdo Haji-Ali



Re: [O] Bug: org-copy-subtree: Invalid function: org-preserve-local-variables

2019-02-04 Thread Abdo Haji-Ali
Updating to the latest org-mode (9.2.1) seems to solve this issue.

On Sun, Feb 3, 2019 at 4:40 PM Abdo Haji-Ali 
wrote:

> I just updated emacs to 27.0.50 and I am seeing the exact same error.
> I think org-preserve-local-variables is in org-macs which is part of
> org-mode source code.
>
> On Sun, Feb 3, 2019 at 4:14 PM Kyle Meyer  wrote:
> >
> > Hello,
> >
> > Abdo Haji-Ali  writes:
> >
> > > On the latest org-mode version, 9.2, I keep receiving the error
> > > 'org-copy-subtree: Invalid function: org-preserve-local-variables'
> > > whenever I try to move a subtree or when I access my agenda.
> > >
> > > This happens even if I run emacs with '-Q'.
> > >
> > > Emacs  : GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version
> 3.22.10)
> >
> > This is very likely a problem in your Org installation due to an
> > interaction with the Org version that comes with Emacs 25.  (It lacks
> > the macro org-preserve-local-variables.)
> >
> > See <https://orgmode.org/worg/org-faq.html#mixed-install>.
>
>
>
> --
> Abdo Haji-Ali
>


-- 
Abdo Haji-Ali


[O] Commenting in org-mode 9.2.1

2019-02-04 Thread Abdo Haji-Ali
I just updated to the latest org-mode (9.2.1) and noticed that when I press
M-; (or call `org-comment-dwim`) inside a `#+BEGIN_SRC emacs-lisp` section,
I get the following error message
`org-comment-dwim: Wrong number of arguments: (0 . 2), 3`

Calling the function outside a source section works fine though.


Re: [O] Bug: org-copy-subtree: Invalid function: org-preserve-local-variables

2019-02-03 Thread Abdo Haji-Ali
I just updated emacs to 27.0.50 and I am seeing the exact same error.
I think org-preserve-local-variables is in org-macs which is part of
org-mode source code.

On Sun, Feb 3, 2019 at 4:14 PM Kyle Meyer  wrote:
>
> Hello,
>
> Abdo Haji-Ali  writes:
>
> > On the latest org-mode version, 9.2, I keep receiving the error
> > 'org-copy-subtree: Invalid function: org-preserve-local-variables'
> > whenever I try to move a subtree or when I access my agenda.
> >
> > This happens even if I run emacs with '-Q'.
> >
> > Emacs  : GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.10)
>
> This is very likely a problem in your Org installation due to an
> interaction with the Org version that comes with Emacs 25.  (It lacks
> the macro org-preserve-local-variables.)
>
> See <https://orgmode.org/worg/org-faq.html#mixed-install>.



-- 
Abdo Haji-Ali



[O] Bug: org-copy-subtree: Invalid function: org-preserve-local-variables

2019-02-03 Thread Abdo Haji-Ali
On the latest org-mode version, 9.2, I keep receiving the error
'org-copy-subtree: Invalid function: org-preserve-local-variables'
whenever I try to move a subtree or when I access my agenda.

This happens even if I run emacs with '-Q'.

Emacs  : GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.10)
 of 2017-10-30
Package: Org mode version 9.2 (9.2-43-gf9a8cc-elpa @
/home/ah180/.emacs.d/elpa/org-20190128/)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-occur-hook '(org-first-headline-recenter)
 org-src-tab-acts-natively t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-capture-after-finalize-hook '((lambda nil (org-gcal-sync)))
 org-src-window-setup 'current-window
 org-confirm-shell-link-function 'yes-or-no-p
 org-gcal-file-alist '(("abdo.haji@gmail.com" .
"~/Work/Projects/dropbox-git/gcal.org"))
 org-tab-before-tab-emulation-hook '(org-tempo-complete-tag)
 org-agenda-custom-commands '(("c" "Simple agenda view" ((agenda "")
(alltodo ""
 org-default-notes-file "~/Work/Projects/dropbox-git/tasks.org"
 org-todo-keyword-faces '(("TODO" :foreground "#00" :weight bold
:box (:line-width 1 :style none))
  ("NEXT" :foreground "red" :weight bold :box
(:line-width 1 :style none))
  ("DONE" :foreground "forest green" :weight bold :box
   (:line-width 1 :style none))
  ("WAITING" :foreground "orange" :weight bold :box
   (:line-width 1 :style none))
  ("HOLD" :foreground "cyan" :weight bold :box
(:line-width 1 :style none))
  ("CANCELLED" :foreground "forest green"
:weight bold :box
   (:line-width 1 :style none))
  )
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp "\\"
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(org-tempo-setup (lambda nil (org-bullets-mode))
 #[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-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t))
("WAITING" ("WAITING" . t))
("HOLD" ("WAITING") ("HOLD" . t))
(done ("WAITING") ("HOLD"))
("TODO" ("WAITING") ("CANCELLED") ("HOLD"))
("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
("DONE" ("WAITING") ("CANCELLED") ("HOLD")))
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-directory "~/Work/Projects/dropbox-git/"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAITING(w)" "|" "DONE(d)")
 (sequence "HOLD(h@/!)" "|" "CANCELLED(c@/!)"))
 org-modules '(org-tempo org-w3m org-bbdb org-bibtex org-docview
org-gnus org-info org-irc org-mhe
   org-rmail org-eww)
 org-capture-before-finalize-hook '(org-gcal--capture-post)
 org-gcal-client-secret "L87mfr8h7vhETM1jRUn9Hdwy"
 org-confirm-elisp-link-function 'yes-or-no-p
 org-gcal-client-id
"543829701868-rl0ndisa6fk111rv0s1vq0eeiu7dfcsa.apps.googleusercontent.com"
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 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