Re: [O] org-todo-yesterday and 23:59

2016-04-21 Thread Adam Porter
Samuel Wales  writes:

> can org-todo-yesterday be made to use [2016-04-20 Wed] instead of
> [2016-04-20 Wed 23:59]?

I guess you could add :after advice to the function and remove the time
from the new timestamp.




Re: [O] koma letter export receiver address

2016-04-21 Thread York Zhao
Just wanted to follow up with this issue. I just tested it with the latest
org-mode (git commit 7e320e2), the problem was still there. Any chance this
can
be addressed?

Thanks,
York


On Sun, Mar 6, 2016 at 8:34 PM, York Zhao  wrote:

> Hi Rasmus,
>
> Thanks for your help. Here's my .emacs:
>
> #+BEGIN_SRC emacs-lisp
>   (require 'org)
>   (add-to-list 'load-path
>"~/.emacs.d/lisp/vendor/org-mode/contrib/lisp")
>   (require 'ox-koma-letter)
> #+END_SRC
>
> M-x org-version produces:
>
> Org-mode version 8.3.3 (release_8.3.3-640-g2b3c72 @
> /usr/local/share/emacs/site-lisp/org/)
>
> Please find attach the file "test.org" and "test.pdf" produced by hitting
> C-c
> C-e C-s k o.
>
> Thanks,
> York
>
> On Sun, Mar 6, 2016 at 2:06 PM, Rasmus  wrote:
> > York Zhao  writes:
> >
> >> Dear org-mode koma letter developers,
> >>
> >> I just noticed that when using org koma letter export, the receiver's
> address
> >> has been moved from left side to page center. Is this the new default
> or an
> >> introduced bug? If it's the new default, how do I change it back to the
> old
> >> behavior?
> >
> > I guess it would depend on the style/LCO files you are using.  There
> > should be no such change.
> >
> > Could you share an example which produces the wrong pdf when starting
> > Emacs without your configuration, i.e. start Emacs as "emacs -q" and load
> > ox-koma-letter.
> >
> > Thanks,
> > Rasmus
> >
> > --
> > Dung makes an excellent fertilizer
> >
> >
>


Re: [O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Vikas Rawal

> 
>> I am trying to run R source code blocks on a remote server (defined in my 
>> ~/.ssh/config as cesp).
>> 
>> I am facing several problems.
>> 
>> 1.  The following sample block, when used with ":results value" does not 
>> give any results.
>> 
>> #+NAME: level1
>> #+begin_src R :results value :exports results :colnames yes :hline yes 
>> :session cesp :dir /cesp:/home/vikas/
>> c(1:5)
>> #+end_src
>> 
>> I get the following message:
>> 
>> tramp-flush-directory-property: Wrong type argument: arrayp, nil
>> 
> 
> I think this is an issue with having different version of ESS on your local 
> and remote systems.
> 
> In particular, newer and older versions of `.ess.eval' have different 
> arguments. You can check this by running `args(.ess.eval)' in the session of 
> your remote server and in a session on your local system.
> 
> In any case, I'd suggest asking on ess-h...@r-project.org 
>  for help in fixing this.
> 


Thanks for this. I did not think that ess on the remote system would be needed 
at all. I just want emacs+ess on my system to use R on the remote system.

Having to maintain version compatibility between every machine, and across 
multiple users, is an impossible situation.

But let me see what folks at ess-help have to say.

Thanks very much,

Vikas





[O] org-todo-yesterday and 23:59

2016-04-21 Thread Samuel Wales
can org-todo-yesterday be made to use [2016-04-20 Wed] instead of
[2016-04-20 Wed 23:59]?

at least to my thinking, this would indicate that there is
indeterminate time, which is what i would prefer.

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

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] orgmode and anova

2016-04-21 Thread Kyle Andrews
If you wanted to fit a linear regression model with R, you could do so with
the lm function. Calling anova on the output of the regression would give
you a regression anova table.

model <- lm(delivered_seeing ~ zeenith_seeing, data = delsee)
anova(model)

You would need non-zero residuals for that to be useful of course.

Otherwise, you need to stack your *_seeing columns into one column with
another column saying which kind of seeing it was and then:

model.aov <- aov(seeing ~ factor(kind), data = delsee2)

You could do the stacking in a number of ways. My favorite is to use the
gather function in the tidyr package.

aov is just a wrapper around lm, so just take the same approach as before
to get the ANOVA table. Hope that helps.

On Thu, Apr 21, 2016, 15:10 Uwe Brauer  wrote:

> Hello
>
> Using Kubuntu I just installed R and the following code works nicely
>
> #+tblname: delsee
> | airmass | zenith_seeing | delivered_seeing |
> |-+---+--|
> | 1.3 |  0.95 |1.1119612 |
> | 1.3 |   1.0 |1.1704854 |
> | 1.3 |   1.1 |1.2875340 |
> | 1.3 |   1.2 |1.4045825 |
> #+TBLFM: $3=$2*($1**0.6)
>
>
> #+begin_src R :results output :var delsee=delsee
> summary(delsee)
> #+end_src
>
>
> Does somebody know whether I could do an ANOVA, comparing these columns
> (which does not make much sense, but this is not the point.
>
> Any help is strongly appreciated.
>
> thanks
>
> Uwe Brauer
>
>
>


Re: [O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Tim Howes
On 4/21/16 3:53 AM, Vikas Rawal wrote:
> 
> 2. Is there a way to be able to use screen/byobu with remote processing?

This thread suggests using dtach:
http://grokbase.com/t/r/ess-help/1536b42tjy/ess-remote-r




Re: [O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Cook, Malcolm
I believe some of the inter-process communication magic depends upon i/o 
through a file that exists in /tmp on the remote host

If the remote server shares a file system with localhost (does it?), you could 
contrive for that temp file to live there (~/.emacs.d/ESS.IPC.HACK) instead.

I've been stung by similar in the past.

What version of ESS and org are you using? (meta-x org-version and meta-x 
ess-version) - this has been a bit of a moving target.  I've most recently had 
tramp/ess/org work FINE.  That is when I am editing a file on a remote host via 
tramp.  The R process starts up on the remote host (as does a shell for "#+SRC 
sh" blocks).   This _should_ work for you

~Malcolm

 > -Original Message-
 > From: Emacs-orgmode [mailto:emacs-orgmode-
 > bounces+mec=stowers@gnu.org] On Behalf Of Charles C. Berry
 > Sent: Thursday, April 21, 2016 5:05 PM
 > To: Vikas Rawal 
 > Cc: org-mode mailing list 
 > Subject: Re: [O] Using tramp to run R source code blocks on remote server
 > 
 > On Thu, 21 Apr 2016, Charles C. Berry wrote:
 > 
 > > On Thu, 21 Apr 2016, Charles C. Berry wrote:
 > >
 > >> On Thu, 21 Apr 2016, Vikas Rawal wrote:
 > >>
 > >>> I am trying to run R source code blocks on a remote server (defined in my
 > >>> ~/.ssh/config as cesp).
 > >>>
 > >>> I am facing several problems.
 > >>>
 > >>> 1.  The following sample block, when used with ":results value" does not
 > >>> give any results.
 > >>>
 > >>> #+NAME: level1
 > >>> #+begin_src R :results value :exports results :colnames yes :hline yes
 > >>> :session cesp :dir /cesp:/home/vikas/
 > >>> c(1:5)
 > >>> #+end_src
 > >>>
 > >>> I get the following message:
 > >>>
 > >>> tramp-flush-directory-property: Wrong type argument: arrayp, nil
 > >>>
 > >>
 > >> I think this is an issue with having different version of ESS on your 
 > >> local
 > >> and remote systems.
 > >>
 > >
 > > OOPS!
 > >
 > > The `different versions' issue affected my setup. But after correcting it, 
 > > I
 > > still get the error you cited above.
 > >
 > > Not sure exactly where the fault lies.
 > >
 > 
 > 
 > Maybe in `org-babel-comint-eval-invisibly-and-wait-for-file', but I am not
 > sure what/how.
 > 
 > I tried to instrument the function (C-u C-M-x on the function source) and
 > run it. And it ran without error when I stepped thru it. Then I removed
 > instrumentation with C-M-x and reran - again no error.
 > 
 > I tried removing the *.elc and restarting emacs, but that seems to make no
 > difference - the error is still there till I instrument the code.
 > 
 > Until this is sorted out, you might try the instrument/uninstrument gambit
 > as a workaround.
 > 
 > HTH,
 > 
 > Chuck
 > 




Re: [O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Charles C. Berry

On Thu, 21 Apr 2016, Charles C. Berry wrote:


On Thu, 21 Apr 2016, Charles C. Berry wrote:


On Thu, 21 Apr 2016, Vikas Rawal wrote:

I am trying to run R source code blocks on a remote server (defined in my 
~/.ssh/config as cesp).


I am facing several problems.

1.  The following sample block, when used with ":results value" does not 
give any results.


#+NAME: level1
#+begin_src R :results value :exports results :colnames yes :hline yes 
:session cesp :dir /cesp:/home/vikas/

c(1:5)
#+end_src

I get the following message:

tramp-flush-directory-property: Wrong type argument: arrayp, nil



I think this is an issue with having different version of ESS on your local 
and remote systems.




OOPS!

The `different versions' issue affected my setup. But after correcting it, I 
still get the error you cited above.


Not sure exactly where the fault lies.




Maybe in `org-babel-comint-eval-invisibly-and-wait-for-file', but I am not 
sure what/how.


I tried to instrument the function (C-u C-M-x on the function source) and 
run it. And it ran without error when I stepped thru it. Then I removed 
instrumentation with C-M-x and reran - again no error.


I tried removing the *.elc and restarting emacs, but that seems to make no 
difference - the error is still there till I instrument the code.


Until this is sorted out, you might try the instrument/uninstrument gambit 
as a workaround.


HTH,

Chuck




Re: [O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Charles C. Berry

On Thu, 21 Apr 2016, Charles C. Berry wrote:


On Thu, 21 Apr 2016, Vikas Rawal wrote:

I am trying to run R source code blocks on a remote server (defined in my 
~/.ssh/config as cesp).


I am facing several problems.

1.  The following sample block, when used with ":results value" does not 
give any results.


#+NAME: level1
#+begin_src R :results value :exports results :colnames yes :hline yes 
:session cesp :dir /cesp:/home/vikas/

c(1:5)
#+end_src

I get the following message:

tramp-flush-directory-property: Wrong type argument: arrayp, nil



I think this is an issue with having different version of ESS on your local 
and remote systems.




OOPS!

The `different versions' issue affected my setup. But after 
correcting it, I still get the error you cited above.


Not sure exactly where the fault lies.

Chuck



[O] orgmode and anova

2016-04-21 Thread Uwe Brauer
Hello

Using Kubuntu I just installed R and the following code works nicely

#+tblname: delsee
| airmass | zenith_seeing | delivered_seeing |
|-+---+--|
| 1.3 |  0.95 |1.1119612 |
| 1.3 |   1.0 |1.1704854 |
| 1.3 |   1.1 |1.2875340 |
| 1.3 |   1.2 |1.4045825 |
#+TBLFM: $3=$2*($1**0.6)


#+begin_src R :results output :var delsee=delsee 
summary(delsee)
#+end_src


Does somebody know whether I could do an ANOVA, comparing these columns
(which does not make much sense, but this is not the point.

Any help is strongly appreciated.

thanks

Uwe Brauer 




[O] coloured entries in index entries?

2016-04-21 Thread Sharon Kimble

I am having great difficulty in indexing a document involving exporting
to latex. Specifically using colour within the index entry.

╭
│\index{Dutasteride!s/e!common - dizziness} = works
╰

however if I try these, they don't work

╭
│\index{Dutasteride!\textcolor{Green}{dizziness}} = fails
│\index{Dutasteride!\textcolor{Green}{dizziness} = fails
╰

Using a latex index entry from another file which does work in
straight-latex like so -

╭
│\index{Bicalutamide!\textbf{\textcolor{Green}{generalised body pain}}}
╰

it fails like this -

╭
│\index\{Bicalutamide!\textbf\{\textcolor{Green}{generalised body pain}\}\}
╰

So is it possible to have coloured text in index entries then please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.0.92


signature.asc
Description: PGP signature


Re: [O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Charles C. Berry

On Thu, 21 Apr 2016, Vikas Rawal wrote:


I am trying to run R source code blocks on a remote server (defined in my 
~/.ssh/config as cesp).

I am facing several problems.

1.  The following sample block, when used with ":results value" does not give 
any results.

#+NAME: level1
#+begin_src R :results value :exports results :colnames yes :hline yes :session 
cesp :dir /cesp:/home/vikas/
c(1:5)
#+end_src

I get the following message:

tramp-flush-directory-property: Wrong type argument: arrayp, nil



I think this is an issue with having different version of ESS on your 
local and remote systems.


In particular, newer and older versions of `.ess.eval' have different 
arguments. You can check this by running `args(.ess.eval)' in the session 
of your remote server and in a session on your local system.


In any case, I'd suggest asking on ess-h...@r-project.org for help in 
fixing this.


HTH,

Chuck



Re: [O] How to export ASCII paintings to HTML

2016-04-21 Thread Charles C. Berry

On Thu, 21 Apr 2016, Luis wrote:


Still get the build error: org-html-table-cell: Args out of range: [left
left left], 3

On Thu, Apr 21, 2016 at 10:33 AM, Adam Porter  wrote:


I think you're looking for #+BEGIN_VERBATIM.  :)


I don't think so.

But a #+BEGIN/END EXAMPLE blcok will set your drawing using 
..., which seems to be what you are after.


HTH,

Chuck




Re: [O] Export to OpenDocument text doesn't work in org-mode 8.3.4

2016-04-21 Thread Lohan G
On 04/21/2016 06:10 PM, John Kitchin wrote:
> Probably you need to put this in an init file:
> 
> (require 'ox-odt)
> 

Thank you very much! It worked!

-Lohan

> Lohan G writes:
> 
>> I am running org-mode version 8.3.4 with Emacs 24.5.1. I believe this is
>> the latest stable version of org-mode. I want to export some of my org
>> files to Open Document format. But it does not show the option to export
>> to Open Document ("export as OpenDocument Text")
>>
>> BUT, I got another machine that runs org-mode 7.9.3f with Emacs 24.3.1
>> and it shows this option among several other exports including Doc Book
>> and LaTex.
>>
>> What should I do to enable this option in the latest version of org-mode?
>>
>> Regards,
>> Lohan
> 
> 
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
> 




Re: [O] Export to OpenDocument text doesn't work in org-mode 8.3.4

2016-04-21 Thread Eric S Fraga
On Thursday, 21 Apr 2016 at 12:07, Lohan G wrote:
> I am running org-mode version 8.3.4 with Emacs 24.5.1. I believe this is
> the latest stable version of org-mode. I want to export some of my org
> files to Open Document format. But it does not show the option to export
> to Open Document ("export as OpenDocument Text")

For version 8.x of org, you need to

(require 'ox-odt)

to enable ODT export.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-655-g9fb077



Re: [O] Export to OpenDocument text doesn't work in org-mode 8.3.4

2016-04-21 Thread John Kitchin
Probably you need to put this in an init file:

(require 'ox-odt)

Lohan G writes:

> I am running org-mode version 8.3.4 with Emacs 24.5.1. I believe this is
> the latest stable version of org-mode. I want to export some of my org
> files to Open Document format. But it does not show the option to export
> to Open Document ("export as OpenDocument Text")
>
> BUT, I got another machine that runs org-mode 7.9.3f with Emacs 24.3.1
> and it shows this option among several other exports including Doc Book
> and LaTex.
>
> What should I do to enable this option in the latest version of org-mode?
>
> Regards,
> Lohan


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Export to OpenDocument text doesn't work in org-mode 8.3.4

2016-04-21 Thread Marco Wahl
Lohan G  writes:

> I am running org-mode version 8.3.4 with Emacs 24.5.1. I believe this is
> the latest stable version of org-mode. I want to export some of my org
> files to Open Document format. But it does not show the option to export
> to Open Document ("export as OpenDocument Text")
>
> BUT, I got another machine that runs org-mode 7.9.3f with Emacs 24.3.1
> and it shows this option among several other exports including Doc Book
> and LaTex.
>
> What should I do to enable this option in the latest version of org-mode?

Quick guess: You want to look at
http://comments.gmane.org/gmane.emacs.orgmode/106198.


Regards,
-- 
Marco




Re: [O] [PATCH] new :async feature for org-babel-clojure

2016-04-21 Thread Frederick Giasson

Hi Nicolas,


As for 3 and 4, I think a more general mechanism for asynchrnous
eval'ing would be preferable. Besides, AFAIU, because of

; Wait until the nREPL code finished to be processed
(while (not (member "done" status))
  (nrepl-dict-put response "status" (remove "need-input" status))
  (accept-process-output nil 0.01)
  (redisplay))

`org-babel-execute:clojure' is still somewhat synchronous, isn't it?



Yes, and this is what I was mentioning initially (here, I think, and on 
my blogpost about it). I just don't know how all this processing could 
be handled in a different thread. That way it would free the current 
threads and we could continue to work with the current instance while 
the processing is happening because as I mentioned, everything is still 
stuck during the processing.


Right now, async is really more about "feedback" than "asynchronous". 
However it has never been clear is it was possible or not, and if so, how :)


Any pointers on how this could be done in emacs?

Thanks,

Fred




Regards,






[O] Export to OpenDocument text doesn't work in org-mode 8.3.4

2016-04-21 Thread Lohan G
I am running org-mode version 8.3.4 with Emacs 24.5.1. I believe this is
the latest stable version of org-mode. I want to export some of my org
files to Open Document format. But it does not show the option to export
to Open Document ("export as OpenDocument Text")

BUT, I got another machine that runs org-mode 7.9.3f with Emacs 24.3.1
and it shows this option among several other exports including Doc Book
and LaTex.

What should I do to enable this option in the latest version of org-mode?

Regards,
Lohan



Re: [O] Bug: File mode specification error opening Org file without headline on first line [8.3.4 (8.3.4-39-ge0acd8-elpa @ /home/nlj/.emacs.d/elpa/org-20160418/)]

2016-04-21 Thread N. Jackson
Thanks Kyle.

At 21:41 -0400 on Wednesday 2016-04-20, Kyle Meyer wrote:
>
> Based on your configuration dump, it seems like you're using outshine,

You are right. I had installed navi-mode (and its dependencies outshine
and outorg) a few months ago to try it out. I have removed them and the
problem is fixed. [FWIW, I had version 2.0 of all three files.]

Thank you, and sorry for the noise.

[I never found the time to actually try navi-mode; perhaps I'll have
some spare time in the future when I can re-install it and give it a
test drive.]

N.




[O] Using tramp to run R source code blocks on remote server

2016-04-21 Thread Vikas Rawal
I am trying to run R source code blocks on a remote server (defined in my 
~/.ssh/config as cesp).

I am facing several problems.

1.  The following sample block, when used with ":results value" does not give 
any results.

#+NAME: level1
#+begin_src R :results value :exports results :colnames yes :hline yes :session 
cesp :dir /cesp:/home/vikas/
c(1:5)
#+end_src

I get the following message:

tramp-flush-directory-property: Wrong type argument: arrayp, nil

I get the expected output if I use ":results output”, but I don’t want that.

2. Is there a way to be able to use screen/byobu with remote processing? I have 
tried various options of using shell, term, or ansi-term. Each of them gives 
some problem or the other. Does anyone have experience with using any of these?

Would appreciate help

Vikas


Re: [O] How to export ASCII paintings to HTML

2016-04-21 Thread Nicolas Goaziou
Hello,

Luis  writes:

> Is there any way I can export the "ascii drawing" correctly???

What about

  #+begin_example
  ...
  #+end_example

?


Regards,

-- 
Nicolas Goaziou



Re: [O] How to export ASCII paintings to HTML

2016-04-21 Thread Luis
can you see the picture in the first mail?  that's my code.

my export configuration is below:

;; === Org Publish =(setq
org-publish-project-alist
  '(("github-blog"
 :base-directory "/Users/douhua/lx/github/blog/org/post/"
 :publishing-directory "/Users/douhua/lx/github/blog/_posts/"
 ;;:base-directory "/Users/douhua/lx/org/post/"
 ;;:publishing-directory "/Users/douhua/lx/org/_posts/"
 :prepare-function nil
 :completion-function nil
 :exclude "*.html"
 :recursive nil
 :base-extension "org"
 :publishing-function org-html-publish-to-html
 :body-only t
 )))


On Thu, Apr 21, 2016 at 11:45 AM, Adam Porter  wrote:

> Luis  writes:
>
> > Still get the build error: org-html-table-cell: Args out of range:
> > [left left left], 3
>
> It would be easier to help if you provided the code you're trying to
> export, e.g:
>
> #+BEGIN_SRC org
> * A heading
>
> Some text
>
> #+BEGIN_VERBATIM
> | this is cool ---> org-mode |
> #+END_VERBATIM
>
> #+END_SRC
>
>
>


-- 
Best Regards,
Zhengchao Xu


Re: [O] Invalid-read-syntax

2016-04-21 Thread Colin Baxter

I would like to thank everyone for their help in resolving something
which I should have done myself had I but gave the matter a little more
thought.

Best wishes,

Colin.