Re: [O] [PATCH] org-manual, org.texi: Fix typo in variable name

2018-03-29 Thread Nicolas Goaziou
Hello,

daim...@omecha.info (Grégoire Jadi) writes:

> Hello,
>
> Here is a patch to fix a small typo in the manual.

Applied. Thank you.

> I haven't followed the recent development of org-mode so I don't know
> what is the new process regarding the manual. Thus, I patched both the
> =org-manual.org= and =org.texi=.

For the time being, I suggest to patch "org-manual.org" only. "org.texi"
will be re-generated from "org.texi" from time to time. You can also
regenerate it just after modifying "org-manual.org", of course.

Regards,

-- 
Nicolas Goaziou



Re: [O] Exponential numbers in latex table export

2018-03-29 Thread Nicolas Goaziou
Hello,

Carsten Dominik  writes:

> On Thu, Mar 29, 2018 at 5:51 PM, Julius Dittmar 
> wrote:
>
>>
>> On 29.03.2018 10:37, Carsten Dominik wrote:
>>
>>> I believe I ended up using this because I wanted something that is not
>>> dependent on having math-mode in the table column.  What I would have
>>> really preferred is "%s\times10^{%s}", but that is less stable because
>>> you need then to know if the column will have math-mode or not.
>>>
>>
>> How about \ensuremath{%s\times10^{%s}} ?
>
>
> That would do the trick, yes.

So, what should be the default value :

  \ensuremath{%s\times10^{%s}}

or

  nil

I don't mind either way.

Regards,

-- 
Nicolas Goaziou



Re: [O] Exponential numbers in latex table export

2018-03-29 Thread Carsten Dominik
On Thu, Mar 29, 2018 at 5:51 PM, Julius Dittmar 
wrote:

>
> On 29.03.2018 10:37, Carsten Dominik wrote:
>
>> I believe I ended up using this because I wanted something that is not
>> dependent on having math-mode in the table column.  What I would have
>> really preferred is "%s\times10^{%s}", but that is less stable because
>> you need then to know if the column will have math-mode or not.
>>
>
> How about \ensuremath{%s\times10^{%s}} ?


That would do the trick, yes.

Carsten

>
>
> Julius
>
>


[O] Trouble with scheduled item with deadline on agenda

2018-03-29 Thread Alex Branham
Hello -

I have this item in one of my agenda files:

** TODO Pay estimated taxes
SCHEDULED: <2018-03-31 Sat> DEADLINE: <2018-04-17 Tue -20d>

and org-agenda-skip-deadline-prewarning-if-scheduled set to 'prescheduled. 
Since it is scheduled for a date later than today I would expect that it 
doesn't appear on my agenda today. However, it looks like the prewarning -20d 
is causing it to appear anyway.

Am I misunderstanding something here or is this a bug?

Thanks,
Alex



Re: [O] [PATCH] support insert link without write result to :file link

2018-03-29 Thread Berry, Charles

> On Mar 28, 2018, at 8:39 PM, stardiviner  wrote:
> 
> `:results file` will write non-empty result to `:file`. But `:results link` 
> don't, it just insert a link of `:file` at result. And that is what I want to 
> solve in the first post of this thread.


The :post header arg will allow this. 

In the examples below the first code line in the src block writes a file that 
is not subsequently overwritten.

#+name: file-output
#+begin_src emacs-lisp  
(org-babel-result-to-file *this*) 
#+end_src

#+begin_src R :results raw :post file-output()
cat("this is a test",file="testit.out")
"testit.out"
#+end_src

#+RESULTS:
[[file:testit.out]]


#+name: file-output2
#+begin_src emacs-lisp :var fname="xxx" 
(org-babel-result-to-file fname) 
#+end_src

#+begin_src R :results raw :post file-output2("testit2.out")
cat("this is a test",file="testit2.out")
#+end_src

#+RESULTS:
[[file:testit2.out]]

HTH,

Chuck



Re: [O] emacs , windows, gpg, org-crypt

2018-03-29 Thread hymie!

Thank you!  Your suggestion led me to the answer.

In our last episode, the evil Dr. Lacto had captured our hero,
  Jonathan Leech-Pepin , who said:

> On 29 March 2018 at 09:59, hymie!  wrote:
>
>> Greetings.
>>
>> I set this all up years ago, I just got a new computer, I'm not an expert
>> with Windows, and I've been unable to find my problem with Google.
>>
>> I have Windows 10, I have emacs, I have Org 9.0.3 (yes, I need to update),
>> and I have GPG4Win.  I have entries in my .emacs file:

I missed the most important entry in my .emacs file:
  (setq exec-path '("C:\\Program Files (x86)\\GNU\\GnuPG"))

The file path has changed on my new computer
  (setq exec-path '("C:\\Program Files (x86)\\GnuPG\\bin"))

and now gpg.exe is in emacs's local exec-path.

> I'd take a look at ~C-h v -gpg TAB~ -> possible suggestion is
> epg-gpg-program which points to "gpg" by default.

This was the variable I couldn't figure out.  TIL that you can tab-complete
in the middle of a variable too.

--hymie! http://lactose.homelinux.net/~hymiehy...@lactose.homelinux.net




Re: [O] emacs , windows, gpg, org-crypt

2018-03-29 Thread Jonathan Leech-Pepin
On 29 March 2018 at 09:59, hymie!  wrote:

> Greetings.
>
> I set this all up years ago, I just got a new computer, I'm not an expert
> with Windows, and I've been unable to find my problem with Google.
>
> I have Windows 10, I have emacs, I have Org 9.0.3 (yes, I need to update),
> and I have GPG4Win.  I have entries in my .emacs file:
>
>  (require 'org-crypt)
>  (org-crypt-use-before-save-magic)
>  (setq org-tags-exclude-from-inheritance (quote ("crypt")))
>  [...]
>  (setq org-crypt-key "")
>;; GPG key to use for encryption
>  [...]
>  (global-set-key "\C-cd" 'org-decrypt-entry)
>  (global-set-key "\C-ce" 'org-encrypt-entry)
>
> But when I try to decrypt something, I get this error:
>
>   Searching for program: no such file or directory, gpg
>
> The only responses I can find are to add gpg to my %PATH% , but
> I don't think my employer's GPO will let me.


There is a machine/system %PATH% and a Current User %PATH%.
Normally GPOs will block you from modifying the system %PATH% but
allow you to change the User Path.  This may be an option.

I was hoping to find a place in org-crypt where "gpg" is defined so that
> I can specify a full path instead, but as yet, I haven't found it.


I'd take a look at ~C-h v -gpg TAB~ -> possible suggestion is
epg-gpg-program which points to "gpg" by default.
~org-encrypt-string~ uses epg for encryption purposes so changing
that program path should fix the issue.

--
Jon


> Can somebody give me a push?
>
> --hymie! http://lactose.homelinux.net/~hymie
> hy...@lactose.homelinux.net
>
>
>


Re: [O] Exponential numbers in latex table export

2018-03-29 Thread Julius Dittmar


On 29.03.2018 10:37, Carsten Dominik wrote:
I believe I ended up using this because I wanted something that is not 
dependent on having math-mode in the table column.  What I would have 
really preferred is "%s\times10^{%s}", but that is less stable because

you need then to know if the column will have math-mode or not.


How about \ensuremath{%s\times10^{%s}} ?

Julius



Re: [O] emacs , windows, gpg, org-crypt

2018-03-29 Thread Adonay Felipe Nogueira
> The only responses I can find are to add gpg to my %PATH% , but

That's the most recommended way.

> I don't think my employer's GPO will let me.

That's very limitting indeed. In various GNU+Linux system distributions,
even the user-friendly ones such as Trisquel ([1]), allow each user to
have their own ${PATH}.

I cannot help you on solving Windows only-issues (not to be confused
with: Emacs or Org mode issues manifested in Windows), so I suggest you
to install a free/libre system distribution such as Trisquel ([1])
instead.

[1] .

-- 
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
  instantaneamente comigo no endereço abaixo.
- Contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
  Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
  GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
  (apenas sem DRM), PNG, TXT, WEBM.



[O] emacs , windows, gpg, org-crypt

2018-03-29 Thread hymie!
Greetings.

I set this all up years ago, I just got a new computer, I'm not an expert
with Windows, and I've been unable to find my problem with Google.

I have Windows 10, I have emacs, I have Org 9.0.3 (yes, I need to update),
and I have GPG4Win.  I have entries in my .emacs file:

 (require 'org-crypt)
 (org-crypt-use-before-save-magic)
 (setq org-tags-exclude-from-inheritance (quote ("crypt")))
 [...]
 (setq org-crypt-key "")
   ;; GPG key to use for encryption
 [...]
 (global-set-key "\C-cd" 'org-decrypt-entry)
 (global-set-key "\C-ce" 'org-encrypt-entry)

But when I try to decrypt something, I get this error:

  Searching for program: no such file or directory, gpg

The only responses I can find are to add gpg to my %PATH% , but
I don't think my employer's GPO will let me.

I was hoping to find a place in org-crypt where "gpg" is defined so that
I can specify a full path instead, but as yet, I haven't found it.

Can somebody give me a push?

--hymie! http://lactose.homelinux.net/~hymiehy...@lactose.homelinux.net




[O] NA in R source code block

2018-03-29 Thread Vikas Rawal
NAs in a data frame that is created by an R source code block show up in the 
results as nil. Can I change it to something else (say, “—“)?

Vikas




Re: [O] Exponential numbers in latex table export

2018-03-29 Thread Carsten Dominik
On Wed, Mar 28, 2018 at 1:55 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Günter Lichtenberg  writes:
>
> > I have a document with many automatically generated tables that contain
> > numbers in exponential Format, e.g. 2e09. When I export the tables to
> LaTeX
> > and pdf I get something like 2 (-09) in the pdf, if there is no character
> > after the number in the table
> >
> > Minimal Example:
> > |--|
> > | 1.2e09 (abs) |
> > |  2.3e-09 |
> > |   3.4e09 |
> > |--|
> >
> > exports to a latex table as
> >
> > \begin{center}
> > \begin{tabular}{r}
> > \hline
> > 1.2e09 (abs)\\
> > 2.3\,(-09)\\
> > 3.4\,(09)\\
> > \hline
> > \end{tabular}
> >
> > Note that in the first line the number is an exponential, the following
> 2 are
> > not. I could not find anything in the documentation. What am I missing?
> >
> > orgmode version is 9.1.4, but the same happens with emacs 25.3 built-in
> > version 8.3.
>
> See `org-latex-table-scientific-notation'. I also find the default value
> a bit surprising. I believe it is what Carsten uses.
>

Hi,

I believe I ended up using this because I wanted something that is not
dependent on having math-mode in the table column.  What I would have
really preferred is "%s\times10^{%s}", but that is less stable because you
need then to know if the column will have math-mode or not.

I agree that it is a bit odd and non-standard - so maybe using nil as
default would be fine.

Carsten


>
> Regards,
>
> --
> Nicolas Goaziou
>
>


[O] [PATCH] org-manual, org.texi: Fix typo in variable name

2018-03-29 Thread Grégoire Jadi
Hello,

Here is a patch to fix a small typo in the manual. I haven't followed
the recent development of org-mode so I don't know what is the new
process regarding the manual. Thus, I patched both the =org-manual.org=
and =org.texi=.

From 9f030f2e8e37e4d36245234878435a79677b1511 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= 
Date: Thu, 29 Mar 2018 08:29:55 +0200
Subject: [PATCH] org-manual, org.texi: Fix typo in variable name

---
 doc/org-manual.org | 4 ++--
 doc/org.texi   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 35ab95134..61a572084 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -6398,7 +6398,7 @@ prompted about what to do with it.
 
  #+cindex: @samp{CLOCK_MODELINE_TOTAL}, property
  #+cindex: @samp{LAST_REPEAT}, property
- #+vindex: org-clock-modeline-total
+ #+vindex: org-clock-mode-line-total
  #+vindex: org-clock-in-prepare-hook
  While the clock is running, Org shows the current clocking time
  in the mode line, along with the title of the task.  The clock
@@ -21022,7 +21022,7 @@ this to ~org-clock-in-prepare-hook~.
 [fn:73] The last reset of the task is recorded by the =LAST_REPEAT=
 property.
 
-[fn:74] See also the variable ~org-clock-modeline-total~.
+[fn:74] See also the variable ~org-clock-mode-line-total~.
 
 [fn:75] The corresponding in-buffer setting is: =#+STARTUP:
 lognoteclock-out=.
diff --git a/doc/org.texi b/doc/org.texi
index b78a22ef2..190e07fda 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -7064,7 +7064,7 @@ clock stopped.
 
 @cindex @samp{CLOCK_MODELINE_TOTAL}, property
 @cindex @samp{LAST_REPEAT}, property
-@vindex org-clock-modeline-total
+@vindex org-clock-mode-line-total
 @vindex org-clock-in-prepare-hook
 While the clock is running, Org shows the current clocking time
 in the mode line, along with the title of the task.  The clock
@@ -7078,7 +7078,7 @@ the @samp{CLOCK_MODELINE_TOTAL} property.  It may have the values
 @samp{current} to show only the current clocking instance, @samp{today} to
 show all time clocked on this tasks today---see also the
 variable @code{org-extend-today-until}, @code{all} to include all time, or
-@code{auto} which is the default@footnote{See also the variable @code{org-clock-modeline-total}.}.  Clicking with
+@code{auto} which is the default@footnote{See also the variable @code{org-clock-mode-line-total}.}.  Clicking with
 @kbd{mouse-1} onto the mode line entry pops up a menu with
 clocking options.
 
-- 
2.16.2



signature.asc
Description: PGP signature