Re: [O] Using org-entities to escape symbols

2016-05-10 Thread drymer
It's working! Thank you very much for your time, this will be very useful. Kaushal Modi: > On Tue, May 10, 2016 at 6:51 PM Kaushal Modi wrote: > >> I will see if I can find a workaround for it on 24.5. >> > > Here's a final try .. > > Please replace the advising function with this one: > > (d

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread Kaushal Modi
I have updated the final version here: http://emacs.stackexchange.com/a/16746/115 (also attached for reference) -- -- Kaushal Modi modi-org-entity.el Description: Binary data

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread Kaushal Modi
On Tue, May 10, 2016 at 6:51 PM Kaushal Modi wrote: > I will see if I can find a workaround for it on 24.5. > Here's a final try .. Please replace the advising function with this one: (defun modi/org-insert-org-entity-maybe (orig-fun &rest args) "When the universal prefix C-u is used before

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread Kaushal Modi
On Tue, May 10, 2016 at 6:16 PM drymer wrote: > Very strange. I have that piece of code in a file with other things, and > all of them (behind and after the snippet) is getting evaluated. Also, > what you're saying still doesn't work. > > And now I see. I casually have installed emacs 25 and I ju

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread drymer
Very strange. I have that piece of code in a file with other things, and all of them (behind and after the snippet) is getting evaluated. Also, what you're saying still doesn't work. And now I see. I casually have installed emacs 25 and I just remembered it. It works fine there. Kaushal Modi: > O

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread Kaushal Modi
On Tue, May 10, 2016 at 5:25 PM drymer wrote: > I'll try the other approach if we can't make this work, because I like > it more x) > I've evaluated all of it, even re-opened emacs. > > Uh, in my description of that function it doesn't say the same, it's the > regular one. I've executed toggle-de

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread drymer
I'll try the other approach if we can't make this work, because I like it more x) I've evaluated all of it, even re-opened emacs. Uh, in my description of that function it doesn't say the same, it's the regular one. I've executed toggle-debug-on-error and re-evaluated and nothing. It seems that is

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread Thomas S. Dye
Aloha John, Nice! I had to (require 's) in order to evaluate the function (s-starts-with?). All the best, Tom John Kitchin writes: > you might find this approach helpful: > http://kitchingroup.cheme.cmu.edu/blog/2015/11/21/Insert-org-entities-into-org-mode-with-helm/ > > drymer writes: > >> Hi

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread Kaushal Modi
On Tue, May 10, 2016 at 4:25 PM drymer wrote: > Hi > I didn't explain myself. It inserts four *, as it didn't find the > entity. I'm using emacs 24.5.3 and org-mode 8.34, which is the maint > branch. I've also tried with plain emacs without configuration. > Those emacs and org versions are fine.

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread John Kitchin
you might find this approach helpful: http://kitchingroup.cheme.cmu.edu/blog/2015/11/21/Insert-org-entities-into-org-mode-with-helm/ drymer writes: > Hi > I didn't explain myself. It inserts four *, as it didn't find the > entity. I'm using emacs 24.5.3 and org-mode 8.34, which is the maint > bra

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread drymer
Hi I didn't explain myself. It inserts four *, as it didn't find the entity. I'm using emacs 24.5.3 and org-mode 8.34, which is the maint branch. I've also tried with plain emacs without configuration. Kaushal Modi: >> >> On Tue, May 10, 2016 at 3:28 PM drymer wrote: >> >>> I evaluated the >>> fu

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread Kaushal Modi
> > On Tue, May 10, 2016 at 3:28 PM drymer wrote: > >> I evaluated the >> functions, and supposedly it should something like \ast when executing >> C-u *, but it doesn't happen. >> > I reread your initial email.. so look like you see nothing getting inserted when in do "C-u *"? That is odd. Can y

Re: [O] Using org-entities to escape symbols

2016-05-10 Thread Kaushal Modi
On Tue, May 10, 2016 at 3:28 PM drymer wrote: > Hi, > > So I saw this thread (first link at the very bottom) which response was > to use a couple of functions. So the thing is that I evaluated the > functions, and supposedly it should something like \ast when executing > C-u *, but it doesn't hap