Re: [O] Capture mode fails until "reload org uncompiled" is used

2011-11-30 Thread David Maus
At Tue, 29 Nov 2011 20:02:22 + (UTC),
Felix wrote:
>
> When I fire up emacs and use C-c c t to enter a task (see .emacs below), I get
> the message "Capture template `t': org-called-interactively-p" and nothing
> happens. However, if I use the menu option "Org->Refresh/Reload->Reload Org
> Uncompiled", then C-c c t works correctly every time. I have provided a
> backtrace below (without "reload org uncompiled", since that fixes the 
> problem).
>
> Any suggestions to fix this so that I don't have to "reload org uncompiled"
> every time I start emacs? Thanks.

`org-called-interactively-p' is a macro, so maybe recompiling Org will
fix the problem. I.e. I cannot reproduce it with

Org-mode version 7.7 (release_7.7.532.gf48321)

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of
2010-12-11 on raven, modified by Debian

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpKFMIRX5uBZ.pgp
Description: PGP signature


Re: [O] Capture mode fails until

2011-11-30 Thread Felix
Thanks, David. It worked.

Sincerely,
Felix





Re: [O] [OT] CSV to Org

2011-11-30 Thread Eric S Fraga
Samuel Wales  writes:

> I have an old CSV that looks like this.  I'd like to convert
> it to Org format.

I've used csv-mode in the past for this but I cannot do this now as
there is some bug in csv-mode that is causing problems with, of all
things, my mode-line-format...  sigh.

Anyway, check out that mode in case it gives you enough to then import
the result as an org table.

HTH,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
: using Org-mode version 7.7 (release_7.7.381.g05ea.dirty)



[O] "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?)

2011-11-30 Thread Steinar Bang
> Steinar Bang :
> Olaf Dietsche :
>> [snip!]
>>> You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"),
>>> then this string is used instead of "LOGBOOK".

> Actually I tried doing it, but since the variable wasn't available, I
> thought I needed a newer version of org-mode, than the one that comes
> with emacs 23.

> But it turns out that I just needed to load-library `org-clock' before
> I could customize the variable, and then set to to "CLOCKS" (without
> the quotes).

And when clocking in on an item, a ":CLOCKS:" drawer is created under
that item.

However the "CLOCKS" drawer doesn't behave like a real drawer on emacs
23.2 on Windows:
 - The ":CLOCKS:..." string is plain black, and not the purple of the
   :LOGBOOK: drawer (and presumably other drawers)
 - Pressing `TAB' doesn't open and close the drawer
 - Closing and reopening the item, shows the contents of the drawer, but
   the drawer can't be collapsed with `TAB'

I tried installing org-mode 7.7 on the machine, but the "CLOCKS"
behaviour was the same there.

Anyone have any idea how to fix this?

Thanks!


- Steinar




Re: [O] [OT] CSV to Org

2011-11-30 Thread Eric Schulte
I'm coming to this thread late, so forgive me if this has already been
mentioned, but `org-table-import' always works for me.

Best,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2

2011-11-30 Thread Bernt Hansen
Steinar Bang  writes:

>> Steinar Bang :
>> Olaf Dietsche :
>>> [snip!]
 You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"),
 then this string is used instead of "LOGBOOK".
>
>> Actually I tried doing it, but since the variable wasn't available, I
>> thought I needed a newer version of org-mode, than the one that comes
>> with emacs 23.
>
>> But it turns out that I just needed to load-library `org-clock' before
>> I could customize the variable, and then set to to "CLOCKS" (without
>> the quotes).
>
> And when clocking in on an item, a ":CLOCKS:" drawer is created under
> that item.
>
> However the "CLOCKS" drawer doesn't behave like a real drawer on emacs
> 23.2 on Windows:
>  - The ":CLOCKS:..." string is plain black, and not the purple of the
>:LOGBOOK: drawer (and presumably other drawers)
>  - Pressing `TAB' doesn't open and close the drawer
>  - Closing and reopening the item, shows the contents of the drawer, but
>the drawer can't be collapsed with `TAB'
>
> I tried installing org-mode 7.7 on the machine, but the "CLOCKS"
> behaviour was the same there.
>
> Anyone have any idea how to fix this?

Maybe add CLOCKS to the org-drawers variable?

Regards,
Bernt



Re: [O] "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2

2011-11-30 Thread Achim Gratz
Steinar Bang  writes:
> And when clocking in on an item, a ":CLOCKS:" drawer is created under
> that item.

By default it would clock into LOGBOOK.  If you define a CLOCKS drawer,
then you need to make that known to org-mode as a valid drawer (either
globally with org-drawers or file-local with a #+DRAWERS: line).


HTH,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




[O] Editing using emacs-lisp after export

2011-11-30 Thread Mukherjee, Rajat, LAUSANNE, Clinical Operations
Dear Org-mode gurus,

I use org-mode to generate documents with latex and R codes. I also use
some R function (package: Hmisc) to generate latex tables. One of the
functions produces a blank line with-in the table environment which
causes a fatal error in the .tex file. Is there a way that I can use
emacs-lisp commands like "replace-string" from within the .org file to
act on the .tex file that is exported or other "#+options:"  for export
that will do this edit without having to open the .tex file? Thank you
for your help.

Best regards,

Rajat Mukherjee,
Biostatistician

 



Re: [O] "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2

2011-11-30 Thread Olaf Dietsche
Steinar Bang  writes:

>> Steinar Bang :
>> Olaf Dietsche :
>>> [snip!]
 You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"),
 then this string is used instead of "LOGBOOK".
>
>> Actually I tried doing it, but since the variable wasn't available, I
>> thought I needed a newer version of org-mode, than the one that comes
>> with emacs 23.
>
>> But it turns out that I just needed to load-library `org-clock' before
>> I could customize the variable, and then set to to "CLOCKS" (without
>> the quotes).
>
> And when clocking in on an item, a ":CLOCKS:" drawer is created under
> that item.
>
> However the "CLOCKS" drawer doesn't behave like a real drawer on emacs
> 23.2 on Windows:
>  - The ":CLOCKS:..." string is plain black, and not the purple of the
>:LOGBOOK: drawer (and presumably other drawers)
>  - Pressing `TAB' doesn't open and close the drawer
>  - Closing and reopening the item, shows the contents of the drawer, but
>the drawer can't be collapsed with `TAB'
>
> I tried installing org-mode 7.7 on the machine, but the "CLOCKS"
> behaviour was the same there.
>
> Anyone have any idea how to fix this?

Unfortunately, back then I suggested the name CLOCKS. But the default
clocks drawer name is CLOCK without the S.

So, you can either use "CLOCK" instead of "CLOCKS"

(custom-set-variables
 '(org-clock-into-drawer "CLOCK"))

or as Bernt and Achim already suggested, you can

(add-to-list 'org-drawers "CLOCKS")

Regards, Olaf



Re: [O] Editing using emacs-lisp after export

2011-11-30 Thread John Rakestraw
Hi, Rajat --

> I use org-mode to generate documents with latex and R codes. I also use
> some R function (package: Hmisc) to generate latex tables. One of the
> functions produces a blank line with-in the table environment which
> causes a fatal error in the .tex file. Is there a way that I can use
> emacs-lisp commands like "replace-string" from within the .org file to
> act on the .tex file that is exported or other "#+options:"  for export
> that will do this edit without having to open the .tex file? Thank you
> for your help.

I definitely don't consider myself a guru, but I had a similar problem. I
built a function that finds and removes the empty line and then added this
via add-hook to org-export-latex-final-hook. I suspect one of the real
gurus can suggest a better way to do this, but this works for me.

Here's my code that you can adapt as necessary.

--8<---cut here---start->8---
(defun remove-line-from-exam.tex ()

(if (search-forward-regexp "\\documentclass\[[0-9]+pt]{exam}" nil t nil)
(while (re-search-forward "question\n\n" nil t)
  (replace-match "question\n"
  
(add-hook 'org-export-latex-final-hook (function remove-line-from-exam.tex))
--8<---cut here---end--->8---

-- 
John Rakestraw



[O] Implement a new emphasis style to hide text

2011-11-30 Thread Stefan Janik
Hello, 
for some purposes I need to hide some words. (It would help to memorize these
words). In the enriched mode I can do this just by marking the words and
choosing M-x facemenu-set-background and then typing "black" for the "Background
color". 

In the org-mode the enriched mode doesn't work. 

A perfect solution for me would be a new emphasis style: 
Maybe something like $a hidden text.$ --> $JUSTABLACKBOX$
(like the _underline style_ ). 
How can I do that? (Or any other suggestions?)
 
Thanks.

Best regard, Stephan 




Re: [O] Updating Worg re standard source block syntax

2011-11-30 Thread Jason Dunsmore
On Wed, Nov 23 2011, Sebastien Vauban wrote:

> Hi Nick,
>
> Nick Dokos wrote:
>> Martyn Jago  wrote:
>>
>>> There are literally hundreds of uses of #+srcname and #+source within
>>> Worg - should I be updating these to #+name ? In other words, does Worg
>>> reflect the last official release (the Emacs release), or the bleeding
>>> edge (I tend to assume the latter because of the Org community spirit of
>>> Worg), but I fail to find any specific notice regarding this.
>>> 
>>> Advice would be appreciated since I've found myself appreciating, and
>>> adding to Worg more and more - and it seems to me it is a real quality of
>>> Org that Worg can exist in the first place.
>>> 
>>
>> Is there any way to find out what the org version is at the worg site?
>> This is something that I've wondered about in the past, but I keep
>> forgetting to ask the question. E.g. it would be good to know the
>> version, so when I make a change to worg content and test the change by
>> publishing the site locally, I can use the exact version that is going
>> to be used on the real site. Right now, I test with whatever version is
>> running on my machine, which can lead to false conclusions (both positive
>> and negative).
>
> IIUC, the answer is no. But the best place for such information should be in
> the output log of the publish process, that is at
> http://orgmode.org/worg/publishing.txt
>
> Adding
>
> (message "Org-mode %s on Emacs %s." org-version emacs-version)

I added this to the new worg publishing process.  Here's an example of
what the first few lines of output will look like:

--8<---cut here---start->8---
worg publish process 5432 started at 11/30/11@10:01:48
Loading /home/emacs/.emacs.el (source)...
Loading /home/emacs/.emacs-custom.el (source)...
Org-mode 7.7 on Emacs 23.2.1.
Loading /home/emacs/.org-timestamps/worg-org-faq.cache...
Loading vc-git...
Skipping unmodified file /home/emacs/git/worg/org-faq.org
[...]
--8<---cut here---end--->8---

I'll send an email to the list soon about the new worg setup.

Regards,
Jason



[O] Hang on incomplete input

2011-11-30 Thread Ken Williams
Apparently, org-mode Babel (or maybe Emacs, or ESS) will hang when given 
incomplete input, like the following:

#+begin_src R
ddply(x,
#+end_src

I was just tearing my hair out trying to figure out why my code was hanging, 
because of course it's much longer and I didn't notice the missing paren.

Is this replicable on other people's platforms too?  I'm using GNU Emacs on 
Windows, with org-mode 7.7 and ESS 5.14.

There are other situations where I really wish org-mode (or Emacs, or ESS) 
didn't freeze up while evaluating R code - for example if I accidentally did 
'debug()' on a function that's now being called, or even just on long-running 
calculations.  Any chance evaluation could be done in a separate thread or 
something?

Thanks.

--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com


CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution of any kind is strictly 
prohibited. If you are not the intended recipient, please contact the sender 
via reply e-mail and destroy all copies of the original message. Thank you.



Re: [O] "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2

2011-11-30 Thread Steinar Bang
> Olaf Dietsche :

> Unfortunately, back then I suggested the name CLOCKS. But the default
> clocks drawer name is CLOCK without the S.

Ah, ok! :-)

> So, you can either use "CLOCK" instead of "CLOCKS"

> (custom-set-variables
>  '(org-clock-into-drawer "CLOCK"))

> or as Bernt and Achim already suggested, you can

> (add-to-list 'org-drawers "CLOCKS")

I think I'll go for the simple solution and use "CLOCK".

I just want something other than LOGBOOK, since I use LOGBOOK to take
notes.

Thanks (to all).


- Steinar




Re: [O] Hang on incomplete input

2011-11-30 Thread Rafael
Ken Williams  writes:

> Apparently, org-mode Babel (or maybe Emacs, or ESS) will hang when
> given incomplete input, like the following:
>
> #+begin_src R
> ddply(x,
> #+end_src
>
> I was just tearing my hair out trying to figure out why my code was
> hanging, because of course it's much longer and I didn't notice the
> missing paren.
>
> Is this replicable on other people's platforms too?  I'm using GNU
> Emacs on Windows, with org-mode 7.7 and ESS 5.14.
>
> There are other situations where I really wish org-mode (or Emacs, or
> ESS) didn't freeze up while evaluating R code - for example if I
> accidentally did 'debug()' on a function that's now being called, or
> even just on long-running calculations.  Any chance evaluation could
> be done in a separate thread or something?

In Ubuntu 10.10, emacs 23.2 and recent org, I get an *Org-Babel Error
Output* buffer, saying:

Error: unexpected '}' in:
"ddply(x,
}"
Execution halted



[O] how to show deadlines in global to-do list?

2011-11-30 Thread James Harkins
Hi,

Apologies if this is a common question -- I did do some google
searching, but didn't find a straightforward answer and the agenda
options are too complex for me to figure out quickly -- I'm too busy
to devote a couple of hours figuring out the right way.

I like the out-of-the-box to-do list, except one thing: I would like
to see the items' deadlines. The weekly agenda view shows the
deadlines, but I need a view where I can see *only* to-do items and
their deadlines.

I read in the manual about creating custom agenda views, and I see a
lot about defining custom searches, but it isn't obvious (to me) how
to customize the display of an existing search. I also checked M-x
customize-group for agenda options, to do display options and line
format, but I don't see anything self-evident. (I don't want to make a
custom time-grid view searching only todos: I want the todos displayed
in *priority* order, just, if there's a deadline, show it.)

I'm quite busy and I have approximately 5 more minutes to devote to
this, so if somebody could send me a simple way to add deadlines to
the to-do list, I'd be much obliged. Thanks.

James

-- 
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks