[O] how to add font-lock keywords

2011-08-23 Thread Le Wang
Hi all, I wasn't able to google a clear examples of how to do this. For example, I'd like to highlight all text between double-quotes. -- Le

Re: [O] how to add font-lock keywords

2011-08-23 Thread Le Wang
ng. Does anyone know a better solution to handle escaped characters in font-lock? On Wed, Aug 24, 2011 at 9:17 AM, John Wiegley wrote: >>>>>> John Wiegley writes: > >>>>>> Le Wang writes: >>> I wasn't able to google a clear examples of how

[O] headline navigation and refiling.

2011-10-05 Thread Le Wang
Hi all, I like using the org-refile interface to navigate. It's very intuitive to me. But I want to navigate to headlines deeper than my org-refile-target :max-level. Is there anything to do other than rolling my own? I can see wouldn't be hard. It feels headline navigation was just bolted on

Re: [O] headline navigation and refiling.

2011-10-05 Thread Le Wang
On Wed, Oct 5, 2011 at 10:31 PM, Carsten Dominik wrote: > > On 5.10.2011, at 12:05, Le Wang wrote: > >> Hi all, >> >> I like using the org-refile interface to navigate.  It's very >> intuitive to me.  But I want to navigate to headlines deeper than my >

Re: [O] headline navigation and refiling.

2011-10-05 Thread Le Wang
On Wed, Oct 5, 2011 at 11:43 PM, Dave Abrahams wrote: > > on Wed Oct 05 2011, Le Wang wrote: > >> But doesn't the fact that a user didn't know he could navigate with >> org-refile speak laudly for refactoring it into its own key-stroke? > > So... is any

[O] org-outline-completion-in-steps

2011-10-07 Thread Le Wang
Hi all, So I've started Emacs 23.3 with -q option, and I've got an org document open. How do I go about completing in steps? org-outline-path-complete-in-steps is a variable defined in `org.el'. Its value is t Documentation: Non-nil means, complete the outline path in hierarchical steps. When O

Re: [O] org-outline-completion-in-steps

2011-10-07 Thread Le Wang
On Fri, Oct 7, 2011 at 5:15 PM, Carsten Dominik wrote: > To get deeper, you need to customize `org-refile-targets'. > What does "in-steps" mean here? I thought that I'd have to complete top level, then complete the next level, etc, etc. I've evaled (setq org-refile-targets '((nil :maxlevel . 3

Re: [O] org-outline-completion-in-steps

2011-10-07 Thread Le Wang
On Fri, Oct 7, 2011 at 5:49 PM, Carsten Dominik wrote: > > (setq org-refile-targets '((nil :maxlevel . 3))) > > Do you have (setq org-refile-use-outline-path t) > > ??? > No, I was starting from emacs -q. I do now. And it works as expected. Thanks. -- Le

[Orgmode] importing google docs document into org

2011-02-17 Thread Le Wang
Hi all, Does anyone have a good workflow for doing this? I keep a bunch of notes on google docs with a plain outline structure of using styles "Heading 1", etc, bullets and hyperlinks. All of this is easily doable in org-mode. It would be great if I import them into org. Now that I find myself

Re: [Orgmode] importing google docs document into org

2011-02-17 Thread Le Wang
o org-mode? On Fri, Feb 18, 2011 at 2:41 AM, Puneeth Chaganti wrote: > On Thu, Feb 17, 2011 at 9:13 PM, Le Wang wrote: > > Hi all, > > Does anyone have a good workflow for doing this? I keep a bunch of notes > on > > google docs with a plain outline structure

Re: [Orgmode] importing google docs document into org

2011-02-18 Thread Le Wang
On Fri, Feb 18, 2011 at 1:24 PM, Puneeth Chaganti wrote: > You could try using Pandoc [1]. It can parse various markups > (including html) and reformat it into various other markups (including > org). There may be a few rough ends in the org-exporter, but it might > be good enough for you. > Outs

Re: [Orgmode] importing google docs document into org

2011-02-19 Thread Le Wang
On Fri, Feb 18, 2011 at 8:57 PM, Puneeth Chaganti wrote: > > Actually, if you can describe the problems that you were faced with, I > would be interested in spending some time and trying to fix those > problems with Pandoc or atleast report issues and get them fixed. (I > had contributed the orig

Re: [O] Release 7.5

2011-03-11 Thread Le Wang
Even though I stay at the shallow end of the org-mode pool, using it mostly for note taking, I've already noticed some subtle improvements in usability. My compliments to the chefs. -- Le

[O] `session-jump-to-last-change' and org-mode

2011-03-16 Thread Le Wang
Hi, One of my favorite key cords is C-xC-/, which is bound to `session-jump-to-last-change' from session.el ( http://emacs-session.sourceforge.net/). If I'm editing a large file, it allows me to revisit all the locations that I've "touched". However, when the related section is folded in org-mod

Re: [O] `session-jump-to-last-change' and org-mode

2011-03-16 Thread Le Wang
Yes, I didn't know about `org-reveal'. That could work. But how do I figure out if I need to expand the heading? The last change could be to a folded heading itself, in which case, it shouldn't be expanded. Is there a org-goto-char type of function that always goes to that location in the buffe

Re: [O] `session-jump-to-last-change' and org-mode

2011-03-16 Thread Le Wang
On Thu, Mar 17, 2011 at 12:27 AM, Le Wang wrote: > Yes, I didn't know about `org-reveal'. That could work. But how do I > figure out if I need to expand the heading? The last change could be to a > folded heading itself, in which case, it shouldn't be expanded. >

Re: [O] `session-jump-to-last-change' and org-mode

2011-03-17 Thread Le Wang
On Thu, Mar 17, 2011 at 3:02 PM, Carsten Dominik wrote: > (defadvice session-jump-to-last-change (after org-expand activate compile) > "Reveal hidden point after jumping." > (when (and (eq major-mode 'org-mode) > (outline-invisible-p)) >(org-reveal))) > Thanks Carsten! That's x

Re: [O] `session-jump-to-last-change' and org-mode

2011-03-17 Thread Le Wang
On Thu, Mar 17, 2011 at 10:27 PM, Nick Dokos wrote: > Why would you need to coordinate with the session author about advising > a function? It's your own personal advice and you can do whatever you > want. Of course, as Carsten pointed out, there is good advice and there > is bad advice, and you

[O] C-0 C-c | throws emacs into infinite loop

2011-03-18 Thread Le Wang
The doc-string of `org-table-convert-region' doesn't specifically address 0 as SEPARATOR, but 0 is an integer. It shouldn't hang in any case. When I C-g out of the loop, my undo limit was exceeded because the line filled with hundreds of thousands of empty cells. I think the correct behavior is

Re: [O] C-0 C-c | throws emacs into infinite loop

2011-03-19 Thread Le Wang
On Sat, Mar 19, 2011 at 2:43 PM, Carsten Dominik wrote: > > On 18.3.2011, at 15:29, Le Wang wrote: > > > The doc-string of `org-table-convert-region' doesn't specifically address > 0 as SEPARATOR, but 0 is an integer. It shouldn't hang in any case. When I >

[O] BUG: time entry window scrollbar always scrolls right

2011-03-19 Thread Le Wang
In the time entry prompt "C-c !", when I press the up or down on the scroll-bar right scroll happens. -- Le

Re: [O] Re: org-src-fontify-natively makes things very, very slow

2011-03-19 Thread Le Wang
On Sun, Mar 20, 2011 at 4:34 AM, Eric S Fraga wrote: > yes, I used to use yasnippet a lot but I don't any longer.  I am > actually in confusion as to which completion mechanism to use in Emacs > these days and am going a little crazy... :(  I'm currently playing with > auto-complete. Why did you

Re: [O] Re: org-src-fontify-natively makes things very, very slow

2011-03-20 Thread Le Wang
On Mon, Mar 21, 2011 at 3:41 AM, Eric S Fraga wrote: > Le Wang writes: > >> Why did you give up on yasnippet? > > Confusion amongst the key bindings, between org, yasnippet and the > autocompletion tools I have been trying.  I want to be able to use TAB > for completion

[O] Re: BUG: time entry window scrollbar always scrolls right

2011-03-20 Thread Le Wang
On Mon, Mar 21, 2011 at 6:19 AM, Bernt Hansen wrote: > Le Wang writes: > >> In the time entry prompt "C-c !", when I press the up or down on the >> scroll-bar right scroll happens. > > Hi, > > I can reproduce this (after enabling the scroll bar which i

[O] Using org-mode for recipes (i.e. cooking)

2011-03-24 Thread Le Wang
Hi all, I'm fairly new to org-mode, and I only use it as an outliner / note taking tool. It seems recipes, being a list of ingredients and a series of steps is a perfect match for org-mode. Out of the box, org already works pretty well for recipes, but I think there are some areas for improved i

Re: [O] `session-jump-to-last-change' and org-mode

2011-04-12 Thread Le Wang
On Fri, Mar 18, 2011 at 4:13 AM, Carsten Dominik wrote: > A good solution would be for session to provide a hook that we can use. Christoph has submitted version 2.3a of session http://sourceforge.net/projects/emacs-session/files/session/ The required hook has been added, maybe someone who knows

[O] org-contacts and birthdays without year

2011-05-17 Thread Le Wang
Hi Julien, I'm just starting with org-contacts, and my first step was translating my %%(diary-anniversary... entries into contacts. Maybe you can help me with these issues. It seems that an "EMAIL" property indicates the current heading is a contact. How can I store contacts that I don't have a

Re: [O] org-contacts and birthdays without year

2011-05-18 Thread Le Wang
On Wed, May 18, 2011 at 12:00 AM, Julien Danjou wrote: > You change that rule. It's a defcustom, simply set it to be "there's an > EMAIL or a BIRTHDAY". You mean `org-contacts-matcher'? How does org-make-tags-matcher work? After googling and looking during some cursory investigation, it's still

Re: [O] org-contacts and birthdays without year

2011-05-19 Thread Le Wang
On Thu, May 19, 2011 at 1:46 PM, Le Wang wrote: > You mean `org-contacts-matcher'?  How does org-make-tags-matcher work? >  After googling and looking during some cursory investigation, it's > still not clear to me how to match EMAIL or BIRTHDAY. Found the tags and properties

Re: [O] org-contacts and dates before 1970

2011-05-22 Thread Le Wang
On Thu, May 19, 2011 at 1:46 PM, Le Wang wrote: >>> Is it possible to specify birthdays without year?  I often want to jot >>> down someone's birthday so I'm not surprised next year, but don't want >>> to ask them how old they are.  :) >> >&

Re: [O] org-contacts and dates before 1970

2011-05-23 Thread Le Wang
On Mon, May 23, 2011 at 2:03 AM, Eric S Fraga wrote: > Le Wang writes: > >> On Thu, May 19, 2011 at 1:46 PM, Le Wang wrote: >>>>> Is it possible to specify birthdays without year?  I often want to jot >>>>> down someone's birthday so I'm not

[O] bug: org-sort-list, `f'

2011-05-25 Thread Le Wang
patch fixes sorting lists with custom getkey-func. Bug was trying to evaluate getkey-func while setting it, so it was always nil. -- Le org-list.el.diff Description: Binary data

[O] BUG: setting comment-use-syntax to nil causes problems in Emacs head

2012-10-06 Thread Le Wang
This value was changed from the default of 'undecided to nil in 4d00c5bf4 . In turn, it exposes bug in Emacs HEAD, see: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12583 Is there a compelling reason for this change? -- Le

[O] [patch] fix bug introduced in commit aba9e2b9

2012-10-28 Thread Le Wang
This commit broke editing any source section with blank lines. Patch included. -- Le org-src.el.diff Description: Binary data

[O] [PATCH] org-edit-special too much space if starting with empty block

2012-11-05 Thread Le Wang
Some tests: Case 1: Start with emacs -Q I insert " #+begin_src javascript #+end_src " with point before "#+end_src", I press " C-c ' " to start editing the source I enter "foobar" into the source buffer and immediately exit with " C-c ' " Case 2: restart with " #+begin_src javascript #+en

Re: [O] [PATCH] org-edit-special too much space if starting with empty block

2012-11-08 Thread Le Wang
Can someone take a look at these test cases and if this patch or some other fixes is appropriate? I use org-mode to take lots of notes of source code and this is annoying. On Mon, Nov 5, 2012 at 10:31 PM, Le Wang wrote: > Some tests: > > Case 1: > > Start with emacs

Re: [O] [PATCH] org-edit-special too much space if starting with empty block

2012-11-17 Thread Le Wang
On Fri, Nov 9, 2012 at 8:23 AM, Nicolas Goaziou wrote: > Thank you for your patch. > > Would you mind adding comments in the function in order to explain the > need for two pass. Also, you may want to reverse the if test in order to > get rid of the progn. I've refactored and added comments. > F

Re: [O] source code disappears

2012-11-17 Thread Le Wang
Hi all, This is what my patch http://www.mail-archive.com/emacs-orgmode@gnu.org/msg62256.html is meant to fix. @Neil, can you confirm the fix? On Sat, Nov 17, 2012 at 8:41 PM, Bastien wrote: > I will take care of this before the end of the pretest week. -- Le

Re: [O] [PATCH] org-edit-special too much space if starting with empty block

2012-11-23 Thread Le Wang
Has anyone had a chance to check this out? Others have run into this problem. On Sun, Nov 18, 2012 at 1:49 PM, Le Wang wrote: > On Fri, Nov 9, 2012 at 8:23 AM, Nicolas Goaziou wrote: >> Thank you for your patch. >> >> Would you mind adding comments in the function in

Re: [O] [PATCH] org-edit-special too much space if starting with empty block

2012-12-13 Thread Le Wang
On Fri, Nov 30, 2012 at 9:23 PM, Nicolas Goaziou wrote: > I've pushed your changes. Thank you. > > Btw, have you signed the FSF papers for larger patches? Thanks Nicolas. I have signed assignment papers for Emacs. -- Le

Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss

2012-12-13 Thread Le Wang
On Thu, Dec 13, 2012 at 9:42 PM, Bernt Hansen wrote: > I'll try this patch and report back later today. That commit was from me, and I did not test against Emacs < 24.2. I will submit another patch to add some tests. Do tests get automatically run on some kind of Travis CI setup? In the mean t

Re: [O] [PATCH] org-edit-special too much space if starting with empty block

2012-12-13 Thread Le Wang
On Thu, Dec 13, 2012 at 11:15 PM, Bastien wrote: > Nicolas Goaziou writes: > >> Le Wang writes: >> >>> Thanks Nicolas. I have signed assignment papers for Emacs. >> >> Great. I have added you to the list of contributors, in Worg. > > Note: I did not

Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss

2012-12-13 Thread Le Wang
On Thu, Dec 13, 2012 at 11:17 PM, Bastien wrote: > Hi Le, > > No we don't. If anyone knows how to set this up for our needs, > please share. I've only done this for projects hosted on github, others may have more experience. But having a continuous integration service is definitely helpful. Fo

Re: [O] [PATCH] org-edit-special too much space if starting with empty block

2012-12-13 Thread Le Wang
On Fri, Dec 14, 2012 at 2:09 AM, Achim Gratz wrote: > Le Wang writes: >> I'm not sure how to check, but I signed it and sent it back a while >> ago and got a confirmation e-mail from Donald on Aug 9. AFAIK >> everything is sorted. > > Did you just get a confirmat

Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss

2012-12-13 Thread Le Wang
On Fri, Dec 14, 2012 at 12:25 AM, Bastien wrote: > I superseded the first one with my patch, and just applied the > third one. > > Can you explain the bug behind the second one? If I press C-' before on a line BEFORE "+begin_src ...", then doing comparison with ">=" with beg==nil and end==nil ca

Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss

2012-12-13 Thread Le Wang
... one more to fix misuse of signal -- Le 0006-fix-mix-use-of-signal.patch Description: Binary data

Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss

2012-12-14 Thread Le Wang
On Fri, Dec 14, 2012 at 8:04 AM, Bernt Hansen wrote: > I get the following error when doing C-c ' in a table > > --8<---cut here---start->8--- > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > org-edit-src-code() > org-edit-speci

Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss

2012-12-16 Thread Le Wang
On Fri, Dec 14, 2012 at 5:39 PM, Bastien wrote: > Le Wang writes: > >>;; Move marker with inserted text for case when src block is >>;; just one empty line, i.e. beg == end. >> - (end (copy-marker (make-marker) t)) >> + (

[O] [PATCH] exiting source block edit without change should not change buffer-modified sttatus

2013-01-12 Thread Le Wang
Currently when I press "C-c '", and immediately exit with "C-c '", the org buffer's modified flag is set, even though I didn't change anything. Code changes with testcases included. I'm not sure if this can be made generic for other types of special edit. -- Le 0001-add-tests-for-round-trip-s

[O] patch to org-refile for more accurate completing-read

2012-01-27 Thread Le Wang
Here: https://gist.github.com/1689071 When we are using using refile as navigation, require must-match regardless of org-refile-allow-creating-parent-nodes. -- Le

Re: [O] patch to org-refile for more accurate completing-read

2012-01-28 Thread Le Wang
Sure. On Sat, Jan 28, 2012 at 7:42 AM, Bernt Hansen wrote: > Le Wang writes: > > > Here: https://gist.github.com/1689071 > > > > When we are using using refile as navigation, require must-match > > regardless of org-refile-allow-creating-parent-nodes. > >

[O] using org-edit-special to edit javascript embeded in HTML

2012-02-05 Thread Le Wang
Hi, I would like to use "C-c '" to edit the current

Re: [O] using org-edit-special to edit javascript embeded in HTML

2012-02-13 Thread Le Wang
Hmmm. I feel someone must have done this for HTML or some templating language. So no sample code for me to start investigating? On Sun, Feb 5, 2012 at 5:09 PM, Le Wang wrote: > Hi, > > I would like to use "C-c '" to edit the current

[O] org-edit-special is available to other buffers

2012-02-23 Thread Le Wang
Hi, I asked about this a while ago on this list, but no one seemed interested. So I've gone ahead and implemented this myself. https://github.com/lewang/generic-edit-special This allows you to define beginning/ending regexps with corresponding language, and edit the region in between just like o