Re: [O] [BUG] remote execution in heterogeneous environment

2013-01-08 Thread Michael Albinus
Achim Gratz  writes:

>> +  (let ((input-file (org-babel-temp-file "input-"))
>> +(error-file (if error-buffer (org-babel-temp-file "scor-") nil))
>> +(shell-file-name
>> + (if (file-executable-p
>> +  (concat (file-remote-p default-directory) shell-file-name))
>> + shell-file-name
>> +   "/bin/sh"))
>
> The hard-coded /bin/sh breaks testing with NT-Emacs and using Cygwin as
> the backend because of the different path conventions in both
> environments.  This is a hack, but it works when setting SHELL=dash,
> note that there are no path components in there and even if your test
> would fail: NTEmacs knows nothing about Cygwin's path.  Can you please
> arrange that shell-file-name is used without alteration when the
> execution is local?  Even for remote execution hardcoding /bin/sh seems
> a bit heavy-handed to me…

What about this:

--8<---cut here---start->8---
--- a/lisp/ob-eval.el
+++ b/lisp/ob-eval.el
@@ -137,11 +137,17 @@ specifies the value of ERROR-BUFFER."
   t)))
   (let ((input-file (org-babel-temp-file "input-"))
(error-file (if error-buffer (org-babel-temp-file "scor-") nil))
+   ;; Unfortunately, `executable-find' does not support file name
+   ;; handlers.  Therefore, we could use it in the local case
+   ;; only.
(shell-file-name
-(if (file-executable-p
- (concat (file-remote-p default-directory) shell-file-name))
-shell-file-name
-  "/bin/sh"))
+(cond ((and (not (file-remote-p default-directory))
+(executable-find shell-file-name))
+   shell-file-name)
+  ((file-executable-p
+(concat (file-remote-p default-directory) shell-file-name))
+   shell-file-name)
+  ("/bin/sh")))
exit-status)
 ;; There is an error in `process-file' when `error-file' exists.
 ;; This is fixed in Emacs trunk as of 2012-12-21; let's use this
--8<---cut here---end--->8---

The use of "/bin/sh" as fallback should be OK. In the local case, the
first cond clause shall be selected (otherwise there is something really
wrong). And for remote execution, "/bin/sh" should exist execept in case
of remote MS Windows or Android devices. Once you want run shells from
org there, we could even tweak this :-)

> Regards,
> Achim.

Best regards, Michael.



Re: [O] Emacs hangs in org file

2013-01-08 Thread Stelian Iancu
On Mon, Jan 7, 2013 at 2:41 PM, Nick Dokos  wrote:

> Stelian Iancu  wrote:
>
> >  I have a fairly simple org file with only a couple of headings, TODOs
> > and some notes. The issue I'm seeing is that Emacs hangs to the point
> > where I have to force close it when I'm trying to expand a
> > headline. The behavior seems random, i.e. it's not always the same
> > header and I don't have specific steps to reproduce.
> >
> > Versions:
> > GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
> 2012-12-30 on bob.porkrind.org
> >
> > Org-mode version 7.9.2 (7.9.2-181-ge8aaca-elpaplus @
> /Users/stelianiancu/.emacs.d/elpa/
> > org-plus-contrib-20121231/)
> >
> > Any ideas how can I debug this further or why this might happen?
> >
>
> Does it hang or is is stuck in a loop? Check whether emacs is is
> accumulating CPU time with ps.
>
> If it's in a loop and C-g works to get it out, you can set
> debug-on-quit, interrupt it and ponder the backtrace. Doing it a couple
> of times might indicate where the problem is.
>
> If not, then the only thing I can think of is attaching strace to the
> emacs process, and figuring out what it is doing.
>
> In either case, easier said than done, but desperate times call for
> desperate measures.
>
> Nick
>
>
Well it seems that it didn't hang at all. What happens is that the buffer
which contains the org file doesn't seem to accept any keyboard input
anymore. If I use the mouse to switch to another buffer, there the keyboard
input works as it should. Then if I switch back to the problematic file, it
works as well, for a while. Also, I've noticed that the problem seems to be
happening when I try to expand a heading.

For now I can do this mouse switching of buffers but I'd really like to
know what happens and how can it be fixed.


[O] "Encrypting org Files" tutorial: two changes?

2013-01-08 Thread Ramon Diaz-Uriarte


Dear All,

Two comments about the the "Encrupting org Files" tutorial
(http://orgmode.org/worg/org-tutorials/encrypting-files.html), which might
be specific to Debian.


1. In section "Encrypting the Whole File Using EasyPG" it says

"If you want to encrypt the whole file using gnupg, but still have the
decrypted file recognized as an org file, you should make: " (...)

however, as far as I can tell, with both Emacs 23 and Emacs 24 anything
with a name whatever.org.gpg will be automatically recognized as an org
file even if one does not use that first line.  Without that first line,
however, it does prompt for a key whenever the file is saved.


Maybe this section could be rewritten as:

"Any file saved with the .org.gpg extension will be recognized as an org
file when decrypted. If you do not want to be prompted for a password
every time you save a file, add  to the first line of the file".



2. At least in Debian

(require 'epa-file)
(epa-file-enable)

are not needed.


Best,


R.



P.D. Versions of Emacs where I just verified it:

Emacs 23: 23.4.1, from emacs23 23.4+1-4 in Debian.
Emacs 24, 24.3.50.1, from emacs-snapshot 2:20121217-1  in Debian

Nevertheless, these features have worked this way for quite some time (at
least one or two years).







-- 
Ramon Diaz-Uriarte
Department of Biochemistry
Universidad Autónoma de Madrid  
Instituto de Investigaciones Biomédicas “Alberto Sols” (UAM-CSIC)
Madrid
Spain



Dirección - Address:

  Laboratorio B-25
  Departamento de Bioquímica
  Facultad de Medicina 
  Universidad Autónoma de Madrid 
  Arzobispo Morcillo, 4
  28029 Madrid
  Spain

  Phone: +34-91-497-2412

  Email: ramon.d...@iib.uam.es
 rdia...@gmail.com
 
  http://ligarto.org/rdiaz




[O] Org-mode release 7.9.3

2013-01-08 Thread Bastien
Hi everyone,

I just released 7.9.3, which is a bugfix release but not only:
I tried hard to speed up the agenda generation, and I hope you
will see some progress in this area.

As a test, try (setq org-agenda-use-tag-inheritance nil) and
see how your TODO agenda are doing...

Details about this on the list of changes:
  http://orgmode.org/Changes.html#sec-1

You can get Org 7.9.3 by downloading the package here:

  http://orgmode.org/org-7.9.3.zip
  http://orgmode.org/org-7.9.3.tar.gz

This will most probably be the version included in Emacs 24.3,
which is still in pretest.

I cannot insist enough: *thanks* to everyone who contributed
to this release and who contributes actively to Org 8.0, we
are making the Emacs world better!

Cheers,

-- 
 Bastien




Re: [O] "Encrypting org Files" tutorial: two changes?

2013-01-08 Thread Bastien
Hi Ramon,

would you like to edit the file yourself?  If so, please
just send me (or Jason) your public key so that I can add
you as a committer to worg.git.

Thanks!

-- 
 Bastien



[O] Editing table.el tables in Org files

2013-01-08 Thread Jacobo de Vera
Hi List,

I am trying to include to include a table with multi line cells in an org
file and found out from the manual that it has to be a table.el table. I
also read that those tables cannot be edited in org-mode directly, so I am
trying to use C-c ' to edit them. I was expecting, because of the wording
of the manual, that this would bring the whole table into a new buffer, as
it does for code snippets, but instead, what I get is a formula editor. Is
this normal?

What I have done so far is to create a new file myself, copy the table
over, edit there and copy back to org file, but it seems like there should
be an easier way to go about this. Is there one?

Thanks for this amazing piece of software that has made this hardcore vim
user for 10 years start using emacs :)

-- 
Jacobo de Vera


Re: [O] Org-mode release 7.9.3

2013-01-08 Thread Rainer Stengele
Am 08.01.2013 12:31, schrieb Bastien:
> Hi everyone,
> 
> I just released 7.9.3, which is a bugfix release but not only:
> I tried hard to speed up the agenda generation, and I hope you
> will see some progress in this area.
> 
> As a test, try (setq org-agenda-use-tag-inheritance nil) and
> see how your TODO agenda are doing...
> 
> Details about this on the list of changes:
>   http://orgmode.org/Changes.html#sec-1
> 
> You can get Org 7.9.3 by downloading the package here:
> 
>   http://orgmode.org/org-7.9.3.zip
>   http://orgmode.org/org-7.9.3.tar.gz
> 
> This will most probably be the version included in Emacs 24.3,
> which is still in pretest.
> 
> I cannot insist enough: *thanks* to everyone who contributed
> to this release and who contributes actively to Org 8.0, we
> are making the Emacs world better!
> 
> Cheers,
> 
Hi Bastien,

thanks for the new release. Orgmode is getting better all the time!

Speeding up the agenda generation is very welcome. I am just about to
test it.
What I now get is that the non-inherited tags are shown directly after
the item text, that is the alignment to a certain column seems to be lost.
Did you change that behaviour?

Cheers, Rainer



Re: [O] Org-mode release 7.9.3

2013-01-08 Thread Bastien
Hi Rainer,

Rainer Stengele  writes:

> What I now get is that the non-inherited tags are shown directly after
> the item text, that is the alignment to a certain column seems to be lost.
> Did you change that behaviour?

I introduced a bug here, fixed now.  Please continue to test heavily:
Emacs is in pretest, and we'll release 7.9.4 soon if needed.

Thanks!

-- 
 Bastien



Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Bastien
Hi Jacobo,

Jacobo de Vera  writes:

> What I have done so far is to create a new file myself, copy the
> table over, edit there and copy back to org file, but it seems like
> there should be an easier way to go about this. Is there one?

I'd suggest to simply wrap the table into a "#+BEGIN_EXAMPLE" block or
a "#+BEGIN_SRC text" source block.  That way C-c ' will do the right
thing.

Hope that helps,

-- 
 Bastien



Re: [O] Org-mode release 7.9.3

2013-01-08 Thread Rainer Stengele
Am 08.01.2013 14:30, schrieb Bastien:
> Hi Rainer,
>
> Rainer Stengele  writes:
>
>> What I now get is that the non-inherited tags are shown directly after
>> the item text, that is the alignment to a certain column seems to be lost.
>> Did you change that behaviour?
> I introduced a bug here, fixed now.  Please continue to test heavily:
> Emacs is in pretest, and we'll release 7.9.4 soon if needed.
>
> Thanks!
>
Hi Bastien,

works as expected!
Agenda Performance is much faster now. Awesome!

Thanks!
Rainer



Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Jacobo de Vera
On Tue, Jan 8, 2013 at 1:38 PM, Bastien  wrote:

> Hi Jacobo,
>
> Jacobo de Vera  writes:
>
> > What I have done so far is to create a new file myself, copy the
> > table over, edit there and copy back to org file, but it seems like
> > there should be an easier way to go about this. Is there one?
>
> I'd suggest to simply wrap the table into a "#+BEGIN_EXAMPLE" block or
> a "#+BEGIN_SRC text" source block.  That way C-c ' will do the right
> thing.
>
> Hope that helps,
>
> --
>  Bastien
>

It helps indeed, only now when I export it to html I get the ascii table
rather than the html table. I guess I'm supposed to wrap my table in an
example block or a source block only temporarily. But I still wonder if
this is what the manual refers to when it says that you can edit the table
with C-c ', that is, just the formulas, not the table itself.

Regards,

-- 
Jacobo de Vera


Re: [O] Org-mode release 7.9.3

2013-01-08 Thread Bastien
Rainer Stengele  writes:

> Agenda Performance is much faster now. Awesome!

Glad to read this -- if 2 Org users spare 10 seconds
each per day, that's more than 2 days of everyone's time
spared per day... :)

-- 
 Bastien



Re: [O] Fill-mode not working when lines start with *bold* word

2013-01-08 Thread John Hendy
On Tue, Jan 8, 2013 at 1:05 AM, Bastien  wrote:
> Hi John,
>
> John Hendy  writes:
>
>> I have the following fill-mode related settings:
>>
>> (setq-default fill-column 90)
>> (add-hook 'text-mode-hook 'turn-on-auto-fill)
>>
>> I just noticed this behavior the other day when adding a note for a report:
>>
>> #+begin_src org
>> Note: this line, starting with a plain vanilla word will wrap just
>> fine. It will not go
>> on and on and on and on.
>>
>> /Note:/ this line, starting with a word in italics markup will wrap
>> just fine. It will
>> not go on and on and on.
>>
>> *Note:* this line, starting with a word in bold markup will not wrap
>> just fine. It will go on and on and on.
>> #+end_src
>
> This should be fixed, thanks for reporting this!

Confirmed fixed. As always, thanks for the prompt response/fix!

John

>
> --
>  Bastien



Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Bastien
Hi Jacobo,

Jacobo de Vera  writes:

> It helps indeed, only now when I export it to html I get the ascii
> table rather than the html table. I guess I'm supposed to wrap my
> table in an example block or a source block only temporarily. But I
> still wonder if this is what the manual refers to when it says that
> you can edit the table with C-c ', that is, just the formulas, not
> the table itself.

This is a regression, fixed now.

Thanks!

-- 
 Bastien



Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Jacobo de Vera
On Tue, Jan 8, 2013 at 2:57 PM, Bastien  wrote:

> Hi Jacobo,
>
> Jacobo de Vera  writes:
>
> > It helps indeed, only now when I export it to html I get the ascii
> > table rather than the html table. I guess I'm supposed to wrap my
> > table in an example block or a source block only temporarily. But I
> > still wonder if this is what the manual refers to when it says that
> > you can edit the table with C-c ', that is, just the formulas, not
> > the table itself.
>
> This is a regression, fixed now.
>
> Thanks!
>
> --
>  Bastien
>

Great! That was fast, thanks!

-- 
Jacobo de Vera


Re: [O] command missing from Org manual

2013-01-08 Thread Bastien
Hi Nathaniel,

Nathaniel Cunningham  writes:

> "org-mark-subtree" and its keybinding are useful to me, but not
> documented in the (PDF) manual, v7.9.3.  I just spent awhile trying
> to recall this command -- please add it to the documentation!

Done, thanks.  I also documented `org-mark-element' (M-h) which 
might be useful to know too.

-- 
 Bastien



Re: [O] org-e-latex: ignoreheading is not working any more.

2013-01-08 Thread Sebastian Hofer
At Wed, 21 Nov 2012 14:21:25 +0100,
Nicolas Goaziou wrote:

> >> I have been using example setting suggested by Nicolas
> >> (http://article.gmane.org/gmane.emacs.orgmode/55972) to tell exporter to 
> >> skip
> There are only two changes:
> 
> #+BEGIN_SRC emacs-lisp
> (add-to-list 'org-e-latex-translate-table '(headline . my-e-latex-headline))
> #+END_SRC
> 
> is obsolete since `org-e-latex-translate-table' variable has been
> removed. If you want to install a new translator, you have to create
> a derived back-end, which is easy (see the example at the end of that
> link).
Hi Nicolas,

Using said code-snippet I get following error:

funcall: Wrong number of arguments: (lambda (headline contents info)
(if (member "ignoreheading" (org-element-property :tags headline))
contents (org-e-latex-headline headline contents info))), 2

Does this have to do with this next comment, or is this unrelated?

> Also, the hook will now be called with an argument: the back-end used as
> a symbol.
>
> Otherwise, the thread is still valid.

If yes I couldn't figure out which hook you were talking about. Could
you give a few more details please?

Thanks in advance
Sebastian




Re: [O] BBDB(3) or org-contacts

2013-01-08 Thread Daniel Clemente

Hi,

El Mon, 7 Jan 2013 21:03:24 +0100 Gour va escriure:
> of bbdb-to-org-contacts converter wrote: "Once I point org-contacts at
> my newly generated file containing 831 records it make org-contacts
> really really slow down. I wouldn't care about the normal record
> searching process for just looking something up, but it makes loading a
> message in gnus unusable (5 second delay per message)."
> 

  I use org-contacts with Wanderlust and I see it makes contact completion very 
slow (5 seconds for each keypress, and that's with only 200 contacts).
  Therefore I use its infrastructre (because I like it) but I don't run its 
code. I'll explain myself:

  I keep this structure in an .org file:

** John von Neumann 
:mathematic:
   :PROPERTIES:
   :EMAIL:  j...@neumann.com
   :END:
- some info


  I use tags, I store e-mails, and I can write any infos, subsections, 
appointments, tasks, etc. which I want; even clock in.
  If I want to search for a contact, I simply open that buffer and use C-s or 
do a tags search.
  You can use org-capture to fill that file.


  I strongly prefer this system over BBDB.


Greetings,
Daniel



Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Jacobo de Vera
On Tue, Jan 8, 2013 at 2:57 PM, Bastien  wrote:

> Hi Jacobo,
>
> Jacobo de Vera  writes:
>
> > It helps indeed, only now when I export it to html I get the ascii
> > table rather than the html table. I guess I'm supposed to wrap my
> > table in an example block or a source block only temporarily. But I
> > still wonder if this is what the manual refers to when it says that
> > you can edit the table with C-c ', that is, just the formulas, not
> > the table itself.
>
> This is a regression, fixed now.
>
> Thanks!
>
> --
>  Bastien
>

Hi,

I just tested the fix, but what seems to be happening now is that C-c '
will jump to formula editing in all cases, when a table.el table is
directly on the org buffer, when it is within an example block and when it
is within a source block. I understood the fix would do the opposite, i.e.,
have C-c ' edit the table itself in all these three cases. Did I
misunderstand or this still a bug?

Thanks,

-- 
Jacobo de Vera


Re: [O] Org-mode release 7.9.3

2013-01-08 Thread J. David Boyd
Bastien  writes:

> Hi everyone,
>
> I just released 7.9.3, which is a bugfix release but not only:
> I tried hard to speed up the agenda generation, and I hope you
> will see some progress in this area.
>
> As a test, try (setq org-agenda-use-tag-inheritance nil) and
> see how your TODO agenda are doing...
>
> Details about this on the list of changes:
>   http://orgmode.org/Changes.html#sec-1
>
> You can get Org 7.9.3 by downloading the package here:
>
>   http://orgmode.org/org-7.9.3.zip
>   http://orgmode.org/org-7.9.3.tar.gz
>
> This will most probably be the version included in Emacs 24.3,
> which is still in pretest.
>
> I cannot insist enough: *thanks* to everyone who contributed
> to this release and who contributes actively to Org 8.0, we
> are making the Emacs world better!
>
> Cheers,

Thanks for working so hard on this.

Now however, I can't export my mobile-org data.   It writes nothing to
my define mobile-org directory.   I'll see if I can find some time to
dig into it a little deeper..

Dave




Re: [O] Org-mode release 7.9.3

2013-01-08 Thread J. David Boyd
da...@adboyd.com (J. David Boyd) writes:

> Bastien  writes:
>
>> Hi everyone,
>>
>> I just released 7.9.3, which is a bugfix release but not only:
>> I tried hard to speed up the agenda generation, and I hope you
>> will see some progress in this area.
>>
>> As a test, try (setq org-agenda-use-tag-inheritance nil) and
>> see how your TODO agenda are doing...
>>
>> Details about this on the list of changes:
>>   http://orgmode.org/Changes.html#sec-1
>>
>> You can get Org 7.9.3 by downloading the package here:
>>
>>   http://orgmode.org/org-7.9.3.zip
>>   http://orgmode.org/org-7.9.3.tar.gz
>>
>> This will most probably be the version included in Emacs 24.3,
>> which is still in pretest.
>>
>> I cannot insist enough: *thanks* to everyone who contributed
>> to this release and who contributes actively to Org 8.0, we
>> are making the Emacs world better!
>>
>> Cheers,
>
> Thanks for working so hard on this.
>
> Now however, I can't export my mobile-org data.   It writes nothing to
> my define mobile-org directory.   I'll see if I can find some time to
> dig into it a little deeper..
>
> Dave

Without knowing any elisp, one symptom I see is that while preparing the
export, the status line says

org-agenda-finalize: Buffer is read-only: #

then the export stops.

I've tried deleting the SUMO buffer, and running it again, but the same
thing happens.

If I go back to version 7.9.2, it works as it should...

Dave




Re: [O] OBBDB(3) or org-contacts

2013-01-08 Thread Wes Hardaker
Gour  writes:

> Based on this description it seems that org-contacts is more suitable
> for the task than BBDB(3) offering ability to have custom format, easy
> editing of contacts etc., but I do wonder about scalability considering
> the following post
> (http://www.hardakers.net/code/bbdb-to-org-contacts/) where the author
> of bbdb-to-org-contacts converter wrote: "Once I point org-contacts at
> my newly generated file containing 831 records it make org-contacts
> really really slow down. I wouldn't care about the normal record
> searching process for just looking something up, but it makes loading a
> message in gnus unusable (5 second delay per message)."

FYI, I tried (again) to use org-contacts a while back and still see the
same speed problems.  It's great for small contacts, but not for large.

I think what would be needed would be to read the file and store it in
an elisp structure and then just stat() the file every time a lookup
happened and if it hasn't changed, then use the elisp or else reparse.
It's not like the data should be changing *that* much so it shouldn't
need to be reread a lot.  And it's the parsing/searching that takes too
long.

But I certainly like the org-mode format much much much better than
bbdb(3).  Which I'm still using, unfortunately.
-- 
Wes Hardaker 
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/



Re: [O] [BUG] remote execution in heterogeneous environment

2013-01-08 Thread Achim Gratz
Michael Albinus writes:
> What about this:
[...]

Looks good, I can test it tomorrow.

> The use of "/bin/sh" as fallback should be OK. In the local case, the
> first cond clause shall be selected (otherwise there is something really
> wrong).

Yes.  But on Windows there is always something wrong… :-)

> And for remote execution, "/bin/sh" should exist execept in case
> of remote MS Windows or Android devices. Once you want run shells from
> org there, we could even tweak this :-)

I was thinking towards being able to use a restricted shell.


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Bastien
Jacobo de Vera  writes:

> I just tested the fix, but what seems to be happening now is that C-c
> ' will jump to formula editing in all cases, when a table.el table is
> directly on the org buffer, when it is within an example block and
> when it is within a source block. I understood the fix would do the
> opposite, i.e., have C-c ' edit the table itself in all these three
> cases. Did I misunderstand or this still a bug?

Indeed, this is now fixed.  Thanks!

-- 
 Bastien



Re: [O] Org-mode release 7.9.3

2013-01-08 Thread Bastien
da...@adboyd.com (J. David Boyd) writes:

> Without knowing any elisp, one symptom I see is that while preparing the
> export, the status line says
>
> org-agenda-finalize: Buffer is read-only: #
>
> then the export stops.

Can you test latest maint or master branch?  I think I've fixed it.

Thanks...

-- 
 Bastien



Re: [O] [BUG] remote execution in heterogeneous environment

2013-01-08 Thread Eric Schulte
Achim Gratz  writes:

> Michael Albinus writes:
>> What about this:
> [...]
>
> Looks good, I can test it tomorrow.
>
>> The use of "/bin/sh" as fallback should be OK. In the local case, the
>> first cond clause shall be selected (otherwise there is something really
>> wrong).
>
> Yes.  But on Windows there is always something wrong… :-)
>
>> And for remote execution, "/bin/sh" should exist execept in case
>> of remote MS Windows or Android devices. Once you want run shells from
>> org there, we could even tweak this :-)
>
> I was thinking towards being able to use a restricted shell.
>

I'm jumping in late here a without context, so forgive me if this
suggestion is not useful.

Do either the `org-babel-sh-command' or the :shebang header argument
affect this behavior?  If not should they, or should we add a new header
argument (say :remote-shell) to allow for customization of the choice of
shell for remote execution?

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



Re: [O] simple script to convert txt tables to Org-mode tables on the command line

2013-01-08 Thread Achim Gratz
Eric Schulte writes:
> I added a note to the manual.  Thanks for double-checking.

Thanks.  Did I understand correctly that the same also happens for the
:rownames argument and should there be some similar wording like there
is for :colnames?


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Jacobo de Vera
On Tue, Jan 8, 2013 at 5:33 PM, Bastien  wrote:

> Jacobo de Vera  writes:
>
> > I just tested the fix, but what seems to be happening now is that C-c
> > ' will jump to formula editing in all cases, when a table.el table is
> > directly on the org buffer, when it is within an example block and
> > when it is within a source block. I understood the fix would do the
> > opposite, i.e., have C-c ' edit the table itself in all these three
> > cases. Did I misunderstand or this still a bug?
>
> Indeed, this is now fixed.  Thanks!
>
> --
>  Bastien
>

Hi Bastien,

I just tested the second fix. It works as I was expecting it to work at
first, but only if the cursor is in one of the horizontal lines of a
table.el table when pressing C-c '. I can work with this just fine, but it
seems a bit confusing if one doesn't know, right?

I have also noticed that when coming back from the buffer where the table
is isolated (Using C-c ' on this buffer), the table gets indented in the
org file, but only the first time, then it stays there even when edited. Is
this expected?

Thanks for looking into this.

-- 
Jacobo de Vera


Re: [O] Emacs hangs in org file

2013-01-08 Thread David Engster
Stelian Iancu writes:
> Well it seems that it didn't hang at all. What happens is that the
> buffer which contains the org file doesn't seem to accept any keyboard
> input anymore.

This bug is currently being discussed on emacs-devel:

http://thread.gmane.org/gmane.emacs.devel/156120

Jan has already posted a possible fix; maybe you can help testing it?

-David



Re: [O] BBDB(3) or org-contacts

2013-01-08 Thread Gour
On Tue, 08 Jan 2013 17:14:43 +0100
Daniel Clemente  wrote:

>   I use org-contacts with Wanderlust and I see it makes contact
> completion very slow (5 seconds for each keypress, and that's with
> only 200 contacts). 

Uhh...that's slow.

>   I use tags, I store e-mails, and I can write any infos,
> subsections, appointments, tasks, etc. which I want; even clock in.
> If I want to search for a contact, I simply open that buffer and use
> C-s or do a tags search. You can use org-capture to fill that file.

Thanks. Looks interesting.


Sincerely,
Gour


-- 
When your intelligence has passed out of the dense forest 
of delusion, you shall become indifferent to all that has 
been heard and all that is to be heard.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810



Re: [O] OBBDB(3) or org-contacts

2013-01-08 Thread Gour
On Tue, 08 Jan 2013 09:16:41 -0800
Wes Hardaker  wrote:

> FYI, I tried (again) to use org-contacts a while back and still see
> the same speed problems.  It's great for small contacts, but not for
> large.

:-(

> I think what would be needed would be to read the file and store it in
> an elisp structure and then just stat() the file every time a lookup
> happened and if it hasn't changed, then use the elisp or else reparse.
> It's not like the data should be changing *that* much so it shouldn't
> need to be reread a lot.  And it's the parsing/searching that takes
> too long.

I'm just starting (again) with Emacs/orgmode and I plan to learn some
elisp eventually, but not there (yet).

> But I certainly like the org-mode format much much much better than
> bbdb(3).  Which I'm still using, unfortunately.

Do you use bbdb3 and what are important things it brings over bbdb2?

Have you, maybe, tried mu4e or should I simply stick with proven Gnus?


Sincerely,
Gour

-- 
For him who has conquered the mind, the mind is the best of 
friends; but for one who has failed to do so, his mind will 
remain the greatest enemy.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


signature.asc
Description: PGP signature


[O] Upgrade to org 7.9.3.: clock in/out and org-odt export

2013-01-08 Thread Martin Butz

Hello,

I just upgraded from 7.6 to 7.9.3. I went through the installation 
process as described in [1]. I dicovered two things, which I do not know 
how to solve on my own:


(1) Clock in/out just by toggeling the task state does not work anymore. 
For starting and stopping the clock I have the code from Sacha Chua [2] 
in my dot-emacs. I suppose, that this does not work any more with the 
new org-code. As I frequently rely on the clock I would be glad to solve 
the problem. Does someone have a hint for me?


(2) I did some tests with the org-odt-exporter, which where successful 
in case of a small test file but failed with some of my daily used file. 
In one case the emacs message buffer seemed to contain the whole export 
output (pasting just a few lines here)

---8<
#("  " 0 10 (face org-indent)) wrap-prefix #("  " 0 10 
(face org-indent))) 48810 49241 (fontified nil org-category 
"hfk-design-durch-aneignung" line-prefix #("  " 0 10 (face 
org-indent)) wrap-prefix #(" " 0 13 (face org-indent))) 
49241 49242 (fontified nil org-category "hfk-design-durch-aneignung" 
line-prefix #("  " 0 10 (face org-indent)) wrap-prefix #(" 
" 0 10 (face org-indent))) 49242 49340 (fontified nil org-category 
"hfk-design-durch-aneignung" line-prefix #("  " 0 10 (face 
org-indent)) wrap-prefix #(" " 0 13 (face org-indent))) 
49341 49361 (original-indentation 0) 49361 49362 (fontified nil 
org-category "hfk-design-durch-aneignung" line-prefix #("  " 0 
10 (face org-indent)) wrap-prefix #(" " 0 13 (face 
org-indent))) 49362 49374 (fontified nil org-category 
"hfk-design-durch-aneignung" line-prefix #(

---8<

I did get nothing else and wonder, what's the best way to debug such a case?

Greetings
Martin

[1] 
[2] 

--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |




Re: [O] Has anybody noticed ellipses instead of the top line of the window?

2013-01-08 Thread Samuel Wales
The following occurs when isearch ends:

On 12/6/12, Samuel Wales  wrote:
>> === beginning of window
>> ...
>> *** Above all
>> Above all, it is a collapse of the uneasy and corrupt
>> identification of science -- that principled, unbiased, at
>> times necessarily subversive, transparent, open-minded, and
>> often selfless search for natural reality -- with rank
>> authority.  The sloppy emulsion of water in oil.
>> === end of window
>>
>> Note the "..." on the first line.  (Above that is merely ordinary body
>> text in a sibling.)

Please note how that ellipsis carries no useful information.

I have tried to fix this and other visibility problems (namely,
canonical visibility is impossible to achieve using standard Org
variables) for years, and I still have not found out how to do it.

As best I can tell, there is a post command hook when isearch exits,
and that calls Org's visibility code.

Org's visibility code then inserts the ... at the top line of the
window for unknown reasons.

I don't need fancy recentering of the headline, if that helps.

Anybody know why?  I'd like that ellipsis not to be there.

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is no hope without action.



[O] [PATCH] Update documentation on handling internal links

2013-01-08 Thread François Allisson
Hi,

The attached documentation patch updates the mention to the obsolete
variable `org-link-to-org-use-id' with a mention to the newer variable
`org-id-link-to-org-use-id'.

Furthermore, it mentions that (require 'org-id) is necessary for
`org-id-link-to-org-use-id' to work. Perhaps it is not what should be
done. Shall org-id be required by default?

Best,
and thanks all for 7.9.3a ! I'm testing.

François
>From 0dc2100e3ce1da1f6a5738dd0cbc13e39d39e433 Mon Sep 17 00:00:00 2001
From: François Allisson 
Date: Tue, 8 Jan 2013 21:54:19 +0100
Subject: [PATCH] org.texi: Update documentation on `org-id-link-to-org-use-id'

---
 doc/org.texi |8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 6625ed8..35adfa9 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -3445,13 +3445,15 @@ be the description@footnote{If the headline contains a timestamp, it will be
 removed from the link and result in a wrong link---you should avoid putting
 timestamp in the headline.}.

-@vindex org-link-to-org-use-id
+@vindex org-id-link-to-org-use-id
 @cindex property, CUSTOM_ID
 @cindex property, ID
 If the headline has a @code{CUSTOM_ID} property, a link to this custom ID
 will be stored.  In addition or alternatively (depending on the value of
-@code{org-link-to-org-use-id}), a globally unique @code{ID} property will be
-created and/or used to construct a link.  So using this command in Org
+@code{org-id-link-to-org-use-id}), a globally unique @code{ID} property will
+be created and/or used to construct a link@footnote{In order to use
+@code{org-id} facilities, @code{(require 'org-id)} has to be found in your
+@file{.emacs}.}. So using this command in Org
 buffers will potentially create two links: a human-readable from the custom
 ID, and one that is globally unique and works even if the entry is moved from
 file to file.  Later, when inserting the link, you need to decide which one
--
1.7.10.4


Re: [O] [BUG] remote execution in heterogeneous environment

2013-01-08 Thread Michael Albinus
Achim Gratz  writes:

>> The use of "/bin/sh" as fallback should be OK. In the local case, the
>> first cond clause shall be selected (otherwise there is something really
>> wrong).
>
> Yes.  But on Windows there is always something wrong… :-)

Again: under Windows, on the local host, `shell-file-name' should do. For
the remote case you are right, but I doubt that any org user has ever
tried to run a remote Windows shell via Tramp.

>> And for remote execution, "/bin/sh" should exist execept in case
>> of remote MS Windows or Android devices. Once you want run shells from
>> org there, we could even tweak this :-)
>
> I was thinking towards being able to use a restricted shell.

`shell-file-name' is your friend. "/bin/sh" is just the last resort. If
you dislike it, you could raise an error instead :-)

> Regards,
> Achim.

Best regards, Michael.



Re: [O] BBDB(3) or org-contacts

2013-01-08 Thread Michael Strey
On Tue, Jan 08, 2013 at 05:14:43PM +0100, Daniel Clemente wrote:

[...]

>   Therefore I use its infrastructre (because I like it) but I don't run its 
> code. I'll explain myself:
> 
>   I keep this structure in an .org file:
> 
> ** John von Neumann   
> :mathematic:
>:PROPERTIES:
>:EMAIL:j...@neumann.com
>:END:
> - some info

1+

I've more than 1000 contacts and this system works well and with
reasonable speed.  For integration with mutt, I use Karl Voit's lbdb
module for org-contact [fn:1].

I've defined a set of properties derived from the VCard specification
and like Daniel, I have a Capture template to create new organisations
and contacts below them.

I use this as Customer Relationship Management (CRM) system.


Footnotes:

[fn:1] http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg01059.html


Regards
-- 
Michael Strey 
www.strey.biz



Re: [O] Powerpoint like slideshow from default html export

2013-01-08 Thread Benny Simonsen
Hi Sander

I am using your orgmode-slideshow - nice tool!

2012/2/11 Sander Boer 

> Hi All,
>
> I usually give presentations that are graphically heavy and typically have
> 3 or 4 movies in them. Powerpoint/impress is too much of a hassle esp. with
> movies and latex/beamer is nice, but the movie package stopped working for
> me.
>
> So I hacked together a javascript and a css that transforms the default
> html export of my org file to a slide show:
> http://www.mauc.nl/**presentations/test.html
>
> Here's the org-file:
> http://www.mauc.nl/**presentations/test.org
>
> Here's the rest:
> http://www.mauc.nl/assets/css/**orgmode-slideshow.css
> http://www.mauc.nl/assets/js/**orgmode-slideshow.js
> (depends on jQuery)
>

No support for deeper trees (yet), no mouse nav and I'm personally not fond
> of how the images are handled.
>
> Let me know what you think, I will keep you updated of the progress.
>

Do you have made support for deeper trees, then I would like to get it.

Any other updates?

I have made a small patch, which makes imgresize() resize images correct if
the only text is an , the patch is listed below.

Thank you
Benny Simonsen

The patch for imgresize():

pub/scripts/orgmode-slideshow/orgmode-slideshow.js
index 844bac6..6404540 100644
--- INDEX:/pub/scripts/orgmode-slideshow/orgmode-slideshow.js
+++ WORKDIR:/pub/scripts/orgmode-slideshow/orgmode-slideshow.js
@@ -323,7 +323,7 @@ function mykeys(){

 function imgresize(){
 var count=$(".figure:visible").length;
-if ($(".outline-text-2:visible p:first").text()){
+if ($(".outline-text-2:visible p:first").text() ||
$(".outline-text-2:visible ul:first").text()){
 count++;
 }
 $(".figure:visible").each(function(index){


Re: [O] Powerpoint like slideshow from default html export

2013-01-08 Thread Eric Schulte
Benny Simonsen  writes:

> Hi Sander
>
> I am using your orgmode-slideshow - nice tool!
>

Maybe this tool should be added to the relevant page on worg.

  http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html

>
> 2012/2/11 Sander Boer 
>
>> Hi All,
>>
>> I usually give presentations that are graphically heavy and typically have
>> 3 or 4 movies in them. Powerpoint/impress is too much of a hassle esp. with
>> movies and latex/beamer is nice, but the movie package stopped working for
>> me.
>>
>> So I hacked together a javascript and a css that transforms the default
>> html export of my org file to a slide show:
>> http://www.mauc.nl/**presentations/test.html
>>
>> Here's the org-file:
>> http://www.mauc.nl/**presentations/test.org
>>
>> Here's the rest:
>> http://www.mauc.nl/assets/css/**orgmode-slideshow.css
>> http://www.mauc.nl/assets/js/**orgmode-slideshow.js
>> (depends on jQuery)
>>
>
> No support for deeper trees (yet), no mouse nav and I'm personally not fond
>> of how the images are handled.
>>
>> Let me know what you think, I will keep you updated of the progress.
>>
>
> Do you have made support for deeper trees, then I would like to get it.
>
> Any other updates?
>
> I have made a small patch, which makes imgresize() resize images correct if
> the only text is an , the patch is listed below.
>
> Thank you
> Benny Simonsen
>
> The patch for imgresize():
>
> pub/scripts/orgmode-slideshow/orgmode-slideshow.js
> index 844bac6..6404540 100644
> --- INDEX:/pub/scripts/orgmode-slideshow/orgmode-slideshow.js
> +++ WORKDIR:/pub/scripts/orgmode-slideshow/orgmode-slideshow.js
> @@ -323,7 +323,7 @@ function mykeys(){
>
>  function imgresize(){
>  var count=$(".figure:visible").length;
> -if ($(".outline-text-2:visible p:first").text()){
> +if ($(".outline-text-2:visible p:first").text() ||
> $(".outline-text-2:visible ul:first").text()){
>  count++;
>  }
>  $(".figure:visible").each(function(index){

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



Re: [O] [PATCH] Update documentation on handling internal links

2013-01-08 Thread Bastien
Hi François,

François Allisson  writes:

> The attached documentation patch updates the mention to the obsolete
> variable `org-link-to-org-use-id' with a mention to the newer variable
> `org-id-link-to-org-use-id'.

Yes.

> Furthermore, it mentions that (require 'org-id) is necessary for
> `org-id-link-to-org-use-id' to work. Perhaps it is not what should be
> done. Shall org-id be required by default?

No, it should not.  (require 'org-id) is not the only way to use id,
you can also "loading" org-id through `org-mobules'.  

Can you update your patch mentioning this and adding a commit message
and adding TINYCHANGE at the end?

Thanks!

-- 
 Bastien



Re: [O] Powerpoint like slideshow from default html export

2013-01-08 Thread Bastien
Eric Schulte  writes:

> Maybe this tool should be added to the relevant page on worg.
>
>   http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html

Done.

-- 
 Bastien



Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Bastien
Hi Jacobo,

Jacobo de Vera  writes:

> I just tested the second fix. It works as I was expecting it to work
> at first, but only if the cursor is in one of the horizontal lines of
> a table.el table when pressing C-c '. I can work with this just fine,
> but it seems a bit confusing if one doesn't know, right?

Fixed, thanks.

> I have also noticed that when coming back from the buffer where the
> table is isolated (Using C-c ' on this buffer), the table gets
> indented in the org file, but only the first time, then it stays
> there even when edited. Is this expected?

Yes, I think so.

Thanks!

-- 
 Bastien



Re: [O] Upgrade to org 7.9.3.: clock in/out and org-odt export

2013-01-08 Thread Bastien
Hi Martin,

Martin Butz  writes:

> (1) Clock in/out just by toggeling the task state does not work anymore. 
> For starting and stopping the clock I have the code from Sacha Chua [2] 
> in my dot-emacs. I suppose, that this does not work any more with the 
> new org-code. As I frequently rely on the clock I would be glad to solve 
> the problem. Does someone have a hint for me?

You can add a function to `org-after-todo-state-change-hook',
which will call `org-clock-in/out' at some point.  But better to ask
Sacha since this is her code.

> (2) I did some tests with the org-odt-exporter, which where successful 
> in case of a small test file but failed with some of my daily used file. 
> In one case the emacs message buffer seemed to contain the whole export 
> output (pasting just a few lines here)
> #("  " 0 10 (face org-indent)) wrap-prefix #("  " 0 10 
> (face org-indent))) 48810 49241 (fontified nil org-category 
> "hfk-design-durch-aneignung" line-prefix #("  " 0 10 (face 
> org-indent)) wrap-prefix #(" " 0 13 (face org-indent))) 
> 49241 49242 (fontified nil org-category "hfk-design-durch-aneignung" 
> line-prefix #("  " 0 10 (face org-indent)) wrap-prefix #(" 
>  " 0 10 (face org-indent))) 49242 49340 (fontified nil org-category 
> "hfk-design-durch-aneignung" line-prefix #("  " 0 10 (face 
> org-indent)) wrap-prefix #(" " 0 13 (face org-indent))) 
> 49341 49361 (original-indentation 0) 49361 49362 (fontified nil 
> org-category "hfk-design-durch-aneignung" line-prefix #("  " 0 
> 10 (face org-indent)) wrap-prefix #(" " 0 13 (face 
> org-indent))) 49362 49374 (fontified nil org-category 
> "hfk-design-durch-aneignung" line-prefix #(
>
> I did get nothing else and wonder, what's the best way to debug such
> a case?

I suggest to bisect the .org source file until you find the part that
prevents ODT exports.

Best,

-- 
 Bastien



[O] [PATCH] Use geiser for babel scheme evaluation.

2013-01-08 Thread Michael Gauland
On 06/01/13 19:56, Bastien wrote:
> Well, I'm afraid we'll have to go the clean way: just document the
> deleted functions, the new ones, and the ones that have been
> rewritten. No need to go too much into details. Also let's rename
> `cleanse-org-babel-scheme-repl-map' to
> `org-babel-scheme-cleanse-repl-map'.

I've done the rename, un-dangled the parentheses, and prepared a changelog:


Babel: Use geiser to manage scheme sessions

* lisp/ob-scheme.el: Load the geiser library
(run-scheme): Removed
(org-babel-scheme-eoe): Removed
(org-babel-scheme-cmd): Removed
(scheme-program-name): Removed
(org-babel-scheme-repl-map): Hash mapping session names to sessions.
(org-babel-scheme-cleanse-repl-map): Remove dead sessions from map.
(org-babel-scheme-get-session-buffer): Return buffer associated with a
session.
(org-babel-scheme-set-session-buffer): Record the buffer associated with
a session.
(org-babel-scheme-get-buffer-impl): Return the scheme implementation
geiser associates with a buffer.
(org-babel-scheme-get-repl): Switch to the scheme REPL buffer for a
session, creating it if it doesn't exist.
(org-bable-scheme-make-session-name): Generate a name for a session, if
one was not specified.
(org-babel-scheme-execute-with-geiser): Execute scheme code, creating
the REPL if necessary.
(org-babel-execute-scheme): Rewritten to use geiser.
(org-babel-prep-session:scheme): Removed
(org-babel-scheme-initiate-session): Removed

This uses geiser to evaluate babel scheme source blocks, and generally
improves scheme support.

From bc33a46041086abd5d1fec321f104aa034823576 Mon Sep 17 00:00:00 2001
From: Michael Gauland 
Date: Wed, 9 Jan 2013 12:41:13 +1300
Subject: [PATCH] Use geiser for babel scheme evaluation.

---
 lisp/ob-scheme.el |  192 -
 1 files changed, 117 insertions(+), 75 deletions(-)

diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el
index c9fa44a..31e0cad 100644
--- a/lisp/ob-scheme.el
+++ b/lisp/ob-scheme.el
@@ -2,7 +2,7 @@
 
 ;; Copyright (C) 2010-2013 Free Software Foundation, Inc.
 
-;; Author: Eric Schulte
+;; Authors: Eric Schulte, Michael Gauland
 ;; Keywords: literate programming, reproducible research, scheme
 ;; Homepage: http://orgmode.org
 
@@ -33,27 +33,16 @@
 ;; - a working scheme implementation
 ;;   (e.g. guile http://www.gnu.org/software/guile/guile.html)
 ;;
-;; - for session based evaluation cmuscheme.el is required which is
-;;   included in Emacs
+;; - for session based evaluation geiser is required, which is available from
+;;   ELPA.
 
 ;;; Code:
 (require 'ob)
-(eval-when-compile (require 'cl))
-
-(declare-function run-scheme "ext:cmuscheme" (cmd))
+(load-library "geiser-impl")
 
 (defvar org-babel-default-header-args:scheme '()
   "Default header arguments for scheme code blocks.")
 
-(defvar org-babel-scheme-eoe "org-babel-scheme-eoe"
-  "String to indicate that evaluation has completed.")
-
-(defcustom org-babel-scheme-cmd "guile"
-  "Name of command used to evaluate scheme blocks."
-  :group 'org-babel
-  :version "24.1"
-  :type 'string)
-
 (defun org-babel-expand-body:scheme (body params)
   "Expand BODY according to PARAMS, return the expanded body."
   (let ((vars (mapcar #'cdr (org-babel-get-header params :var
@@ -65,70 +54,123 @@
 ")\n" body ")")
   body)))
 
-(defvar scheme-program-name)
+
+(defvar org-babel-scheme-repl-map (make-hash-table :test 'equal)
+  "Map of scheme sessions to session names.")
+
+(defun org-babel-scheme-cleanse-repl-map ()
+  "Remove dead buffers from the REPL map."
+  (maphash
+   (lambda (x y)
+ (when (not (buffer-name y))
+   (remhash x org-babel-scheme-repl-map)))
+   org-babel-scheme-repl-map))
+
+(defun org-babel-scheme-get-session-buffer (session-name)
+  "Look up the scheme buffer for a session; return nil if it doesn't exist."
+  (org-babel-scheme-cleanse-repl-map) ; Prune dead sessions
+  (gethash session-name org-babel-scheme-repl-map))
+
+(defun org-babel-scheme-set-session-buffer (session-name buffer)
+  "Record the scheme buffer used for a given session."
+  (puthash session-name buffer org-babel-scheme-repl-map))
+
+(defun org-babel-scheme-get-buffer-impl (buffer)
+  "Returns the scheme implementation geiser associates with the buffer."
+  (with-current-buffer (set-buffer buffer)
+geiser-impl--implementation))
+
+(defun org-babel-scheme-get-repl (impl name)
+  "Switch to a scheme REPL, creating it if it doesn't exist:"
+  (let ((buffer (org-babel-scheme-get-session-buffer name)))
+(or buffer 
+(progn
+  (run-geiser impl)
+  (if name
+	  (progn 
+	(rename-buffer name t)
+	(org-babel-scheme-set-session-buffer name (current-buffer
+  (current-buffer)
+
+(defun org-babel-scheme-make-session-name (buffer name impl)
+  "Generate a name for the session buffer.
+
+For a named session, the buffer name will be the session name.
+
+If the session is unnamed (nil), generate a name.
+
+If the session is 'none', use nil for th

[O] Filter based on timestamp with repeater

2013-01-08 Thread Thomas Moyer
I have some entries in one of my agenda files that have timestamp with
repeaters. What I would like to do is show only those items tagged with the
tag :task: that are for the given day. However the only thing I could come
up with was filter by tag in the following way:

task+TIMESTAMP=""

That only works on the day that the timestamp is for. For example:

<2013-01-01 Tue +1w>

Will only show up on Jan. 1 in the filter. Is there a way to filter for
things that would show up on a given day?

Thanks!

-Tom


[O] [PATCH] Add an attribute to the new LaTeX exporter

2013-01-08 Thread Thomas S. Dye
Aloha all,

A journal is asking for a section of figure legends created like this:

\section*{Figure Legends}
\begin{figure}[!ht]
\begin{center}
%\includegraphics[width=4in]{figure_name.2.eps}
\end{center}
\caption{
{\bf Bold the first sentence.}  Rest of figure 2  caption.  Caption 
should be left justified, as specified by the options to the caption 
package.
}
\label{Figure_label}
\end{figure}

The attached patch introduces an attribute to toggle commenting the
\includegraphics call.

All the best,
Tom

>From b1eeaf68296e765b5653e77ca0533b2f21808473 Mon Sep 17 00:00:00 2001
From: Thomas Dye 
Date: Tue, 8 Jan 2013 14:04:14 -1000
Subject: [PATCH] New LaTeX exporter: Added an attribute

* contrib/lisp/org-e-latex.el: Added an attribute, :comment-include,
  to toggle commenting the \includegraphics call.

Journals sometimes ask for a list of figure captions.
---
 contrib/lisp/org-e-latex.el | 32 +++-
 1 file changed, 19 insertions(+), 13 deletions(-)

diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el
index 7987369..79ae355 100644
--- a/contrib/lisp/org-e-latex.el
+++ b/contrib/lisp/org-e-latex.el
@@ -74,13 +74,15 @@
 ;; (i.e. "inparaenum").  The second one allows to specify optional
 ;; arguments for that environment (square brackets are not mandatory).
 ;;
-;; Images accept `:float', `:placement' and `:options' as attributes.
-;; `:float' accepts a symbol among `wrap', `multicolumn', and
-;; `figure', which defines the float environment for the table (if
-;; unspecified, an image with a caption will be set in a "figure"
-;; environment).  `:placement' is a string that will be used as
-;; argument for the environment chosen.  `:options' is a string that
-;; will be used as the optional argument for "includegraphics" macro.
+;; Images accept `:float', `:placement', `:comment-include', and
+;; `:options' as attributes.  `:float' accepts a symbol among `wrap',
+;; `multicolumn', and `figure', which defines the float environment
+;; for the table (if unspecified, an image with a caption will be set
+;; in a "figure" environment).  `:comment-include' is a boolean that
+;; toggles whether to comment out the \includegraphics
+;; call. `:placement' is a string that will be used as argument for
+;; the environment chosen.  `:options' is a string that will be used
+;; as the optional argument for "includegraphics" macro.
 ;;
 ;; This back-end also offers enhanced support for footnotes.  Thus, it
 ;; handles nested footnotes, footnotes in tables and footnotes in item
@@ -1745,6 +1747,10 @@ used as a communication channel."
 		  ((eq float 'figure)
 		   (format "[%s]" org-e-latex-default-figure-position))
 		  (t ""
+	 (comment-include
+	  (let ((cmt-inc (plist-get attr :comment-include)))
+	(cond (cmt-inc "%")
+		  (t ""
 	 ;; Options for "includegraphics" macro. Make sure it is
 	 ;; a string with square brackets when non empty.  Default to
 	 ;; `org-e-latex-image-default-option' when possible.
@@ -1760,16 +1766,16 @@ used as a communication channel."
 (case float
   (wrap (format "\\begin{wrapfigure}%s
 \\centering
-\\includegraphics%s{%s}
-%s\\end{wrapfigure}" placement options path caption))
+%s\\includegraphics%s{%s}
+%s\\end{wrapfigure}" placement comment-include options path caption))
   (multicolumn (format "\\begin{figure*}%s
 \\centering
-\\includegraphics%s{%s}
-%s\\end{figure*}" placement options path caption))
+%s\\includegraphics%s{%s}
+%s\\end{figure*}" placement comment-include options path caption))
   (figure (format "\\begin{figure}%s
 \\centering
-\\includegraphics%s{%s}
-%s\\end{figure}" placement options path caption))
+%s\\includegraphics%s{%s}
+%s\\end{figure}" placement comment-include options path caption))
   (t (format "\\includegraphics%s{%s}" options path)
 
 (defun org-e-latex-link (link desc info)
-- 
1.8.0.2



-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com


[O] C / C++ Standard org file

2013-01-08 Thread 42 147
Has anyone made an org file out of the C / C++ standards? Would make
looking things up much more convenient.


[O] org-id garbage collection?

2013-01-08 Thread James Harkins
Hi,

Does org-id ever remove deleted items from
~/.emacs.d/.org-id-locations?

I did find the function org-id-update-id-locations, which definitely
compacts the locations file. I haven't verified if this actually
removes items, or merely reorganizes the list to be stored more
efficiently.

A curious thing about that function -- if duplicate IDs are found, it
says to check the Messages buffer, but Messages is full of lines like:

Finding ID locations (659/674 files): ~/Documents/mobileorg/semester.org
Finding ID locations (660/674 files): ~/Documents/mobileorg/semester.org
Finding ID locations (661/674 files): ~/Documents/mobileorg/semester.org
Finding ID locations (662/674 files): ~/Documents/mobileorg/semester.org
Finding ID locations (663/674 files): ~/Documents/mobileorg/semester.org

Since older entries are removed from Messages, these lines caused the
duplicate ID info to be lost.

Thanks.

hjh




Re: [O] Upgrade to org 7.9.3.: clock in/out and org-odt export

2013-01-08 Thread Jambunathan K
Martin Butz  writes:

> (2) I did some tests with the org-odt-exporter, which where successful 
> in case of a small test file but failed with some of my daily used file. 
> In one case the emacs message buffer seemed to contain the whole export 
> output (pasting just a few lines here)

org-odt.el - The old exporter - hasn't changed much for most of one full
year.  I wouldn't be surprised, if the problem is elsewhere.

If you can git bisect well and good.

Or

You can post the BEGINNING of stack trace.  (Your stacktrace doesn't
seem to be from the beginning).  Btw, it is not clear to me whether you
are getting a backtrace.

Or

Try minimal Emacs:  emacs  -L ~/src/org-mode/lisp  -L 
~/src/org-mode/contrib/lisp


I am willing to address whatever problem that you are seeing.
-- 



Re: [O] Editing table.el tables in Org files

2013-01-08 Thread Jacobo de Vera
On Tue, Jan 8, 2013 at 10:45 PM, Bastien  wrote:

> Hi Jacobo,
>
> Jacobo de Vera  writes:
>
> > I just tested the second fix. It works as I was expecting it to work
> > at first, but only if the cursor is in one of the horizontal lines of
> > a table.el table when pressing C-c '. I can work with this just fine,
> > but it seems a bit confusing if one doesn't know, right?
>
> Fixed, thanks.
>
>
Hi Bastien,

I checked the last fix, everything seems to be working as expected now.
Thanks for the quick fixes.

-- 
Jacobo de Vera


Re: [O] [BUG] remote execution in heterogeneous environment

2013-01-08 Thread Achim Gratz
Michael Albinus  gmx.de> writes:
> What about this:

Works a treat.  Please install!


Regards,
Achim.






[O] C / C++ standard org file

2013-01-08 Thread Noah Eli Abrams

Has anyone made an org-file out of the C / C++ standards? Would make
looking things up much more convenient.