Re: prettify-symbols-mode in org agenda?

2021-10-26 Thread William Xu
Any updates here? I do hope the patch can be merged.. -- William

Re: prettify-symbols-mode in org agenda?

2021-06-22 Thread William Xu
Ihor Radchenko writes: > Oops. Forgot to rebase the patch to current master. The correct version > is attached. Thanks for the fix! I need to make below additional change, otherwise it works perfectly. I can't reproduce the original issue any more. Looking at the changes, I see you changed bel

Re: prettify-symbols-mode in org agenda?

2021-06-22 Thread William Xu
Ihor Radchenko writes: > William Xu writes: >> Thanks. At least not something weird in my emacs config. :) >> >> I think your patch is ready to be merged into orgMode. Hopefully it can be >> merged soon. > > I believe that I managed to fix the problem you obse

Re: prettify-symbols-mode in org agenda?

2021-05-17 Thread William Xu
Ihor Radchenko writes: > I can reproduce with ONGOING as well... In fact, I can reproduce the > issue with any TODO keyword of >4 chars length while using > prettify-symbols-mode (but not pretty-symbols-mode). Moreover, the > 'composition property is _not_ removed in agenda. Emacs... just does no

Re: prettify-symbols-mode in org agenda?

2021-05-16 Thread William Xu
Ihor Radchenko writes: > Sorry, I cannot reproduce on my side using Emacs master, Emacs 27, and > Emacs 25. I used the following recipe: > > 1. cd /path/to/org > 2. make clean > 3. make > 4. emacs -Q -L ./lisp/ -l org -l /tmp/1.el ~/Org/inbox.org > 5. M-x org-agenda < t > 6. M-x org-todo on the f

Re: prettify-symbols-mode in org agenda?

2021-05-14 Thread William Xu
Ihor Radchenko writes: >> I think I'm still seeing the issue. For example, if i change (M-x >> org-agenda-todo) a TODO item into next state ONGOING, which i have made >> prettified: >> >> (push '("ONGOING" . "👷" ) prettify-symbols-alist) >> >> So far so good. But as soon as I call org-agenda-re

Re: prettify-symbols-mode in org agenda?

2021-05-05 Thread William Xu
Ihor Radchenko writes: >>> The only issue I still see, is that when you org-agenda-redo-all, or >>> org-agenda-log-mode (which triggers org-agenda-redo-all), the >>> prettify gets lost again. Maybe org-buffer-substring-fontified call is >>> also required somewhere during org-agenda-redo-all? >>

Re: prettify-symbols-mode in org agenda?

2021-05-02 Thread William Xu
Ihor Radchenko writes: > See the updated patch. Thanks, it works quite nice now on the agenda line. The only issue I still see, is that when you org-agenda-redo-all, or org-agenda-log-mode (which triggers org-agenda-redo-all), the prettify gets lost again. Maybe org-buffer-substring-fontified c

Re: prettify-symbols-mode in org agenda?

2021-05-02 Thread William Xu
Ihor Radchenko writes: > This change is needed, for example, when you change todo-state using > `org-agenda-todo'. Refreshing the agenda line in > org-agenda-highlight-todo involves > > (insert (format org-agenda-todo-keyword-format s)) > > `insert' will destroy the 'composition as 'composition i

Re: prettify-symbols-mode in org agenda?

2021-05-01 Thread William Xu
Ihor Radchenko writes: > Bastien writes: > >> Thanks for bringing this idea up. >> >> If allowing prettify-symbols-mode in Org agenda mode does not slow >> down the agenda display and does not create spacing problems, then >> yes, why not. > > Here is the patch. It will be great if other people

Re: prettify-symbols-mode in org agenda?

2020-11-03 Thread William Xu
Ihor Radchenko writes: > Feel free to prepare a patch using my code and send it here. > I think the following function should be sufficient to preserve > pretty-symbols composition: > > (el-patch-defun org-agenda-highlight-todo ... > > I have added only 3 lines to the original org-agenda-highligh

prettify-symbols-mode in org agenda?

2020-10-31 Thread William Xu
Hi, Is there any plan to support prettify-symbols-mode in org agenda? With that mode, it would make it easier to, for example, replace the todo keywords with some nice looking unicode chars. >From reddit, I found yantar92 has posted some elisp changes to enable the >support: https://www.reddit

Re: [O] org-toggle-inline-images bug

2011-08-25 Thread William Xu
2011/8/25 Bastien : > Hi William, > > William Xu writes: > >> M-x org-toggle-inline-images doesn't work for links like this: >>   [[./ref/diskStructures.png]] > > It works well here on Emacs GNU Emacs 24.0.50.1 or 23.3.1 and > Org 7.7 (latest git version.)

[O] org-toggle-inline-images bug

2011-08-10 Thread William Xu
Hi, M-x org-toggle-inline-images doesn't work for links like this: [[./ref/diskStructures.png]] The problem lies in `org-display-inline-images': (let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([^]\n]+?" (substring (org-image-file-name-regexp) 0 -2) "\\)\\]" (if

[Orgmode] Re: schedule tasks

2009-09-07 Thread William Xu
PT writes: > I use a similar setup. As I understand if you want items to > appear on the date they are due you have to use the daily agenda. > > So I use a custom agenda which shows the agenda items and the > todo list together: > > > (setq org-agenda-custom-commands > '(("h" "My Agenda & T

[Orgmode] schedule tasks

2009-09-06 Thread William Xu
Hi folks, I'm trying to do this: 1. schedule a TODO on THIS_DAY 2. before THIS_DAY, don't show it in global todo list. So I have: (setq org-agenda-todo-ignore-scheduled t) 3. on(and after when not done) THIS_DAY, show it in global todo list While, to my surprise, on THIS_DAY, t

[Orgmode] Re: use non-alphabet ascii as todo keywords?

2008-06-09 Thread William Xu
"Dominik, C." <[EMAIL PROTECTED]> writes: > And here is how to do this: > > (add-hook 'org-mode-hook > (lambda () > (modify-syntax-entry ?- "w" org-mode-syntax-table) > (modify-syntax-entry ?> "w" org-mode-syntax-table))) > > Give it a try and report your experiences! Might actually wor

[Orgmode] use non-alphabet ascii as todo keywords?

2008-06-08 Thread William Xu
Hi! Can I use non-alphabet ascii as todo keywords? Like this: , | (setq org-todo-keywords | '((sequence "-" ">" "o" "x"))) ` where each stands for: todo, doing, done, cancelled. They seem much easier to recognize than TODO, DOING, DONE, CANCELLED, etc. -- William http://will

[Orgmode] Re: Does org-agenda modify org file?

2008-04-05 Thread William Xu
DigitalPig <[EMAIL PROTECTED]> writes: > I think you'd better update your Org-Mode. Mine is 5.23c. > Based on my observation, I don't think it is trying to modify you org > file when you start it. I am suspicious about your org-files > themselves. Thanks. It's been resolved in private mails. I

[Orgmode] Re: Does org-agenda modify org file?

2008-04-02 Thread William Xu
Carsten Dominik <[EMAIL PROTECTED]> writes: > It does not for me, se we need more info like version numbers of Emacs > and Org, > a backtrace would be nice, etc. I don't get a backtrace, only: ,[ *Message* ] | Debug on Error enabled globally | Press key for agenda command, or [1] or [0] to

[Orgmode] Does org-agenda modify org file?

2008-04-02 Thread William Xu
Hi folks, I just started to learn Org. I find that org-agenda will complain "buffer is read only" if the org file buffer is read only, like in view-mode or my personal less-minor-mode[1]. Does org-agenda try to modify the org files? If not, maybe `let' around with (inhibit-read-only t) is good.