[O] Embedded video in html-export

2014-10-13 Thread Dov Grobgeld
Is it currently possible to inline a video file in the html export? Right,
now I only get a link, while what I would like to have is:


Sorry, no video in this browser.


Thanks,
Dov


Re: [O] Downloadable mailing list archive?

2014-10-13 Thread Rainer M Krug
Bastien  writes:

> Hi Rainer,
>
> Rainer M Krug  writes:
>
>> is there a downloadable mailing list archive in maildir format for
>> org-mode?
>
> ftp://lists.gnu.org/emacs-orgmode/
>
> HTH,

Thanks - But as I found gmane search in gnus, I don't have to download
them anymore.

Thanks,

Rainer

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpig6MKeQOyM.pgp
Description: PGP signature


Re: [O] Math formatting in HTML export - The Org Manual

2014-10-13 Thread Joseph Vidal-Rosset
Thanks for your reply.

2014-10-13 2:45 GMT+02:00 Grant Rettke :

> What version of Emacs and org mode are you using?
>

GNU Emacs 24.3.1


> What is your configuration?
>

I'm using org from Elpa.

OS: At the moment Xubuntu 14.04 , but the same problem occurred with Debian
testing.


>
> What action did you perform on what document?
>

Here is a minimal document as example

#+OPTIONS: tex:imagemagick
#+TITLE: Minimal logic
#+AUTHOR: Joseph Vidal-Rosset


\begin{equation}
\neg A \to (A \to B)
\end{equation}




> What did you want and expect to have happen with that action?
>
>
The export to latex works well.

BUT the export to html  works BUT...


> What happened instead?
>

produces always a corrupted png image for the equation. See the attachment.

Thanks for your help

Best wiishes

Jo.


Re: [O] export "simple" HTML?

2014-10-13 Thread Fabrice Niessen
Eric Abrahamsen wrote:
> Grant Rettke writes:
>> Eric Abrahamsen wrote:
>>> Gary Oberbrunner writes:
>>>
 Has anyone created an HTML exporter that just exports "simple" HTML
 with no fancy CSS stuff, just "normal" tags like  and 
 and  and  and ?  Basically something that could be pasted
 into an email or a larger document.  The current HTML export is
 beautiful, but it adds all kinds of divs, spans, CSS tags, and
 other extraneous stuff.
>>>
>>> Try the "body only" export option: in the export dispatcher, hit
>>> "C-b" to toggle. That should give you clean HTML with no file
>>> template, and no bells and whistles.
>>
>> If it is an easy answer, how would one do this in batch mode?
>
> I've never actually exported anything in batch mode, so I won't be
> able to provide a real recipe, but body-only is one of the main export
> options, usually given as an argument to org-export-as (and
> family). If you're calling any one of those export functions directly
> as part of the batch export, you can just set that argument to t.

Making advertisement for my own stuff, you now have the option
"--body-only" to the Orgmk family of scripts (among others, org2html).

See https://github.com/fniessen/orgmk for more information (or example
code).

Best regards,
Fabrice

-- 
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/




Re: [O] beamer and changing font size for example environment

2014-10-13 Thread Eric S Fraga
On Saturday, 11 Oct 2014 at 10:42, Manfred Lotz wrote:
> Maybe a stupid question. 
>
> How could I change font size (in my case to smaller) for an example
> environment in org-mode? Needed in export to Beamer pdf.

Not sure what exactly you are asking but IIUC maybe something along
these lines will work for you:

--8<---cut here---start->8---
#+latex: {\footnotesize

  org stuff here

#+latex: }
--8<---cut here---end--->8---

Choose the font size you want.

You can also /shrink/ individual frames in beamer.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-408-g39f5f0



Re: [O] Embedded video in html-export

2014-10-13 Thread Eric Abrahamsen
Dov Grobgeld  writes:

> Is it currently possible to inline a video file in the html export?
> Right, now I only get a link, while what I would like to have is:
>
>  controls>
> Sorry, no video in this browser.
> 

Yup, you need to export as html5, and set the html5-fancy option to
true. See the manual:

(org) HTML doctypes




Re: [O] archive subtree with complete structure

2014-10-13 Thread Florian Lindner
Julien Cubizolles wrote:

> Can org-archive-subtree be made to archive the whole parent structure
> along with the subtree selected ?
> 
> I'm using an the same org file every year and I'd like to archive some
> of its contents at the end of the year. Something like:
> 
> 
[...]

You mean that:

http://comments.gmane.org/gmane.emacs.orgmode/86901

It's a feature I've been searching too for some time, but to no success.

I even thought about a bug bounty for that:

http://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00228.html

Best Regards,
Florian





Re: [O] Embedded video in html-export

2014-10-13 Thread Dov Grobgeld
Thanks! Works great!


On Mon, Oct 13, 2014 at 11:05 AM, Eric Abrahamsen 
wrote:

> Dov Grobgeld  writes:
>
> > Is it currently possible to inline a video file in the html export?
> > Right, now I only get a link, while what I would like to have is:
> >
> >  > controls>
> > Sorry, no video in this browser.
> > 
>
> Yup, you need to export as html5, and set the html5-fancy option to
> true. See the manual:
>
> (org) HTML doctypes
>
>
>


[O] Make * bold?

2014-10-13 Thread Rainer M Krug
Hi

I would like to make three stars bold - is this possible? I have the
following table and at the moment, I get what is in the latex
column. But I would like to have what is in the last column.

| org | latex| what I would like |
| *3.96e-21 *** * | \textbf{3.96e-21 **} *   | \textbf{3.96e-21 ***} |
| *4.11e-01   | \textbf{4.11e-01 \textbf{*}} | \textbf{4.11e-01 ***} |
| *2.07e-03 ***   | \textbf{2.07e-03 **} | \textbf{2.07e-03 **}  |
| *3.43e-02 **| \textbf{3.43e-02 *}  | \textbf{3.43e-02 *}   |

Line 1 and two are just tries to see if there iss a difference with or
without space *there is, but none works).

Line 3 and four, i.e. two and one stars, works as expected.

Any suggestions on how I can get the three stars in bold? I could
obviously use \textbf{} in the table, but I also export the document
to html - so this would not be an option.

Any suggestions?

Thanks,

Rainer
-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgp4wIsWraE2x.pgp
Description: PGP signature


Re: [O] [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

2014-10-13 Thread Marco Wahl
Hi Achim,

Thanks for your corrections and hints.

>> Patch pushed!
>
> It looks like that patch should have gone to maint rather than master

Sorry for that.  I was not aware that fixes should go to maint.  I just
naively took the first best branch (which was master) for applying the
change.  BTW: It looks like a good soul already merged the patch into
the maint branch.

> and please use a properly formatted commit message in the future:
>
> - The first line of the commit has been taken from the subject of your
>   post rather than being in the form that Org uses.
> - The commit description itself will be shortened to unintelligible
>   gibberish in the Emacs Changelog since the text before the first blank
>   line doesn't actually tell what the change has been about.

A formal error plus unintelligible gibberish.  Hard to imagine how a
commit message could be worse.  I try to be more careful the next time.


Thanks again,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

2014-10-13 Thread Marco Wahl
Aaron Ecay  writes:

> 2014ko urriak 11an, Achim Gratz-ek idatzi zuen:
>> It looks like that patch should have gone to maint rather than master
>> and please use a properly formatted commit message in the future:
>
> For reference, this link describes what Achim means about commit messages:
> .

Thanks for the link.

I just wonder if the text about line 1 is correct.

--8<---cut here---start->8---
Generally, it starts with the filename that has been changed, followed
by a column.
 ^^
--8<---cut here---end--->8---

Shouldn't this be 'colon'?


Best,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




[O] left aligned changes to right alignment in table after adding one row - possible bug?

2014-10-13 Thread Rainer M Krug

#+PROPERTY: header-args :exports both

* Changing alignment when one row is added
Despite of all values are strings, the alignment changes in the below
example. Is this a bug or am I missing something?

Thanks,

Rainer

** Here it works
The column pm and pb are left aligned as expected for strings (correct?).

#+begin_src R :colnames yes :rownames yes 
x <- structure(c("-1.358", "-1.957", "-1.752", "-1.773", "-1.886", 
"-1.948", "-1.754", "-1.730", "-1.859", "-1.900", "4.757", "5.708", 
"5.419", "5.408", "5.493", "5.581", "5.250", "5.193", "5.329", 
"5.396", "", "*0.000 *** *", "*0.034 **", "0.411", "*0.002 ***", 
"0.376", "0.055 .", "0.134", "*0.012 **", "0.243", "", "*0.000 *** *", 
"0.072 .", "0.833", "0.228", "0.549", "0.061 .", "0.756", "0.128", 
"0.916", "", "*0.000 *** *", "*0.048 **", "0.938", "0.389", "0.640", 
"*0.044 **", "0.598", "0.217", "0.941"), .Dim = c(10L, 5L), .Dimnames = list(
c("Quercus robur - single", "Quercus robur - 95", "Quercus robur - 90", 
"Quercus robur - 85", "Quercus robur - 80", "Quercus robur - 75", 
"Quercus robur - 70", "Quercus robur - 65", "Quercus robur - 60", 
"Quercus robur - 55"), c("slope", "intercept", "p", "pm", 
"pb")))

head(x, 5)
#+end_src

#+RESULTS:
||  slope | intercept | p| pm   | 
pb   |
|++---+--+--+--|
| Quercus robur - single | -1.358 | 4.757 |  |  |   
   |
| Quercus robur - 95 | -1.957 | 5.708 | *0.000 *** * | *0.000 *** * | 
*0.000 *** * |
| Quercus robur - 90 | -1.752 | 5.419 | *0.034 **| 0.072 .  | 
*0.048 **|
| Quercus robur - 85 | -1.773 | 5.408 | 0.411| 0.833| 
0.938|
| Quercus robur - 80 | -1.886 | 5.493 | *0.002 ***   | 0.228| 
0.389|

** Here it doesn't
By adding row 6, pm and pb become right aligned. This can also be
reproduced by only using columns 5:7 (~x[5:7,]~ instead of ~head(x,6)~).

#+begin_src R :colnames yes :rownames yes 
x <- structure(c("-1.358", "-1.957", "-1.752", "-1.773", "-1.886", 
"-1.948", "-1.754", "-1.730", "-1.859", "-1.900", "4.757", "5.708", 
"5.419", "5.408", "5.493", "5.581", "5.250", "5.193", "5.329", 
"5.396", "", "*0.000 *** *", "*0.034 **", "0.411", "*0.002 ***", 
"0.376", "0.055 .", "0.134", "*0.012 **", "0.243", "", "*0.000 *** *", 
"0.072 .", "0.833", "0.228", "0.549", "0.061 .", "0.756", "0.128", 
"0.916", "", "*0.000 *** *", "*0.048 **", "0.938", "0.389", "0.640", 
"*0.044 **", "0.598", "0.217", "0.941"), .Dim = c(10L, 5L), .Dimnames = list(
c("Quercus robur - single", "Quercus robur - 95", "Quercus robur - 90", 
"Quercus robur - 85", "Quercus robur - 80", "Quercus robur - 75", 
"Quercus robur - 70", "Quercus robur - 65", "Quercus robur - 60", 
"Quercus robur - 55"), c("slope", "intercept", "p", "pm", 
"pb")))

head(x, 6)
#+end_src

#+RESULTS:
||  slope | intercept | p|   pm |   
pb |
|++---+--+--+--|
| Quercus robur - single | -1.358 | 4.757 |  |  |   
   |
| Quercus robur - 95 | -1.957 | 5.708 | *0.000 *** * | *0.000 *** * | 
*0.000 *** * |
| Quercus robur - 90 | -1.752 | 5.419 | *0.034 **|  0.072 . |   
 *0.048 ** |
| Quercus robur - 85 | -1.773 | 5.408 | 0.411|0.833 |   
 0.938 |
| Quercus robur - 80 | -1.886 | 5.493 | *0.002 ***   |0.228 |   
 0.389 |
| Quercus robur - 75 | -1.948 | 5.581 | 0.376|0.549 |   
  0.64 |




-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpwumJFT4rM9.pgp
Description: PGP signature


[O] pgfplotstable and org -WAS: Make * bold or use colour for export to html and LaTeX

2014-10-13 Thread Rainer M Krug
Aaron Ecay  writes:

> Hi Rainer,
>
> 2014ko urriak 10an, Rainer M Krug-ek idatzi zuen:
>> 
>> Hi
>> 
>> I want to highlight the cells in the table below with "***" by using
>> color red for the font, "**' by using green for the font, ... or, if not 
>> possible, bold. Is any of this possible?
>> 
>> The table is generated in R, so the ascii package might help (just
>> thinking about it while typing)?
>
> If you’re exporting only to Latex, an option might be the pgfplotstable
> package.  Here’s some examples from tex.stackexchange:
>
> https://tex.stackexchange.com/questions/100458/pgfplotstable-conditional-post-processing-of-cell-content-on-a-per-column-basis
> https://tex.stackexchange.com/questions/126959/conditional-format-for-correlation-table
> https://tex.stackexchange.com/questions/156168/conditional-formatting-rounding-and-postprocessing-of-a-column-in-pgfplotstable

I must say pgfplotstable looks interesting but also quite complex.

Are there any examples on how I can use pgfplotstable within the org
context (apart from one huge LaTeX code block)?

Thanks,

Rainer
-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpUP97VPazet.pgp
Description: PGP signature


Re: [O] Math formatting in HTML export - The Org Manual

2014-10-13 Thread Eric S Fraga
On Monday, 13 Oct 2014 at 09:45, Joseph Vidal-Rosset wrote:

[...]

> Here is a minimal document as example
>
> #+OPTIONS: tex:imagemagick
> #+TITLE: Minimal logic
>
> #+AUTHOR: Joseph Vidal-Rosset
>
> \begin{equation}
> \neg A \to (A \to B)
> \end{equation}

This works perfectly fine for me with both dvipng (my default choice)
and imagemagick.  The problem may be in your LaTeX installation: what
fonts are used etc.?

What does the PDF or DVI for this LaTeX file:

--8<---cut here---start->8---
% Created 2014-10-13 Mon 12:43
\documentclass{minimal}
\begin{document}
\begin{equation}
\neg A \to (A \to B)
\end{equation}
% Emacs 24.4.50.1 (Org mode 8.3beta)
\end{document}
--8<---cut here---end--->8---

look like?
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-408-g39f5f0



Re: [O] Make * bold?

2014-10-13 Thread Andrea Rossetti
Rainer M Krug  krugs.de> writes:
> I would like to make three stars bold - is this possible? I have the
> following table and at the moment, I get what is in the latex
> column. But I would like to have what is in the last column.
> 
> | org | latex| what I would like |
> | *3.96e-21 *** * | \textbf{3.96e-21 **} *   | \textbf{3.96e-21 ***} |
> ...
> 
> Any suggestions?

Hi! using the "pretty entity" \ast{} works for me in HTML and PDF:

| *3.96e-21 \ast{}\ast{}\ast{}*  |

Does it work for you too? Regards, Andrea




Re: [O] Make * bold?

2014-10-13 Thread Rainer M Krug
Andrea Rossetti  writes:

> Rainer M Krug  krugs.de> writes:
>> I would like to make three stars bold - is this possible? I have the
>> following table and at the moment, I get what is in the latex
>> column. But I would like to have what is in the last column.
>> 
>> | org | latex| what I would like |
>> | *3.96e-21 *** * | \textbf{3.96e-21 **} *   | \textbf{3.96e-21 ***} |
>> ...
>> 
>> Any suggestions?
>
> Hi! using the "pretty entity" \ast{} works for me in HTML and PDF:
>
> | *3.96e-21 \ast{}\ast{}\ast{}*  |
>
> Does it work for you too? Regards, Andrea

Thanks - it does, indeed. Strange that it works for both export
backends.


But there are a few formating issues with this:

1) in tex, the spacing between two is different to the spacing between
three
2) in html, the asterix are at the bottom and
3) it is not very readable in org.

Thanks,

Rainer

>
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpCmXKOTmQdG.pgp
Description: PGP signature


Re: [O] Make * bold?

2014-10-13 Thread Andreas Leha
Hi Rainer,

Rainer M Krug  writes:

> Andrea Rossetti  writes:
>
>> Rainer M Krug  krugs.de> writes:
>>> I would like to make three stars bold - is this possible? I have the
>>> following table and at the moment, I get what is in the latex
>>> column. But I would like to have what is in the last column.
>>> 
>>> | org | latex| what I would like |
>>> | *3.96e-21 *** * | \textbf{3.96e-21 **} *   | \textbf{3.96e-21 ***} |
>>> ...
>>> 
>>> Any suggestions?
>>
>> Hi! using the "pretty entity" \ast{} works for me in HTML and PDF:
>>
>> | *3.96e-21 \ast{}\ast{}\ast{}*  |
>>
>> Does it work for you too? Regards, Andrea
>
> Thanks - it does, indeed. Strange that it works for both export
> backends.
>
>
> But there are a few formating issues with this:
>
> 1) in tex, the spacing between two is different to the spacing between
> three
> 2) in html, the asterix are at the bottom and
> 3) it is not very readable in org.

To help with 3) have a look at http://orgmode.org/manual/Special-symbols.html 
(esp. C-c C-x \)

Best,
Andreas




Re: [O] Make * bold?

2014-10-13 Thread Rainer M Krug
Andreas Leha  writes:

> Hi Rainer,
>
> Rainer M Krug  writes:
>
>> Andrea Rossetti  writes:
>>
>>> Rainer M Krug  krugs.de> writes:
 I would like to make three stars bold - is this possible? I have the
 following table and at the moment, I get what is in the latex
 column. But I would like to have what is in the last column.
 
 | org | latex| what I would like |
 | *3.96e-21 *** * | \textbf{3.96e-21 **} *   | \textbf{3.96e-21 ***} |
 ...
 
 Any suggestions?
>>>
>>> Hi! using the "pretty entity" \ast{} works for me in HTML and PDF:
>>>
>>> | *3.96e-21 \ast{}\ast{}\ast{}*  |
>>>
>>> Does it work for you too? Regards, Andrea
>>
>> Thanks - it does, indeed. Strange that it works for both export
>> backends.
>>
>>
>> But there are a few formating issues with this:
>>
>> 1) in tex, the spacing between two is different to the spacing between
>> three
>> 2) in html, the asterix are at the bottom and
>> 3) it is not very readable in org.
>
> To help with 3) have a look at http://orgmode.org/manual/Special-symbols.html 
> (esp. C-c C-x \)

Thanks - good point.

Rainer

>
> Best,
> Andreas
>
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpWetaUzhTHC.pgp
Description: PGP signature


Re: [O] org-mode for knowledge management

2014-10-13 Thread Brett Viren
Hi Louis,

Louis  writes:

> I've been using org-mode for a variety of purposes for a few years. I
> find that it suffers from the same problem that other such tools
> do. The problem is me. I can't remember week to week how I may have
> classified some scrap of information. Did I drop it into
> notes/someproduct.org or was it procedures/someprocess.org?

I hear you.  My strategy so far has been: just write org content and an
ideal lookup solution will eventually be found (via threads like this
one!).

This weekend I took a first step and *finally* got agenda-based
searching to work.  For better or worse, my setup intentionally spreads
org content over a few areas:

For a few explicit, "global" files (eg, todo.org)
  ~/org/*.org  

For daily, private notes:
  ~/org/web/notesnotes.org   

For a wiki-like blog / knowledge bank:
  ~/org-pub/topics//index.org

By default, my attempts with org agenda search was not finding files in
these areas.  Particularly the latter two were difficult for me to
figure out how to tell org about.  The final solution was to walk these
directories at initialization time and add all .org files found to
org-agenda-text-search-extra-files.  Here is the most concise way to do
that which I found after various searches:

(require 'find-lisp)
(setq  
 org-agenda-files (list "~/org")
 org-agenda-text-search-extra-files 
 (append
  (find-lisp-find-files "~/org-pub/topics/" "\\.org$")
  (find-lisp-find-files "~/org/web/notes/" "\\.org$"))
)

If anyone knows better ways to do this, I'm all ears.  I'm particularly
wondering how long-running org sessions will handle newly created topics
or notes in this setup.

-Brett.


pgp983NtKSPH7.pgp
Description: PGP signature


Re: [O] inline constant substitution

2014-10-13 Thread Eric S Fraga
On Sunday, 12 Oct 2014 at 18:13, Paul Rudin wrote:
> Thanks. If I *also* want to use that value in a table is there a way to
> do that? I experimented with:
>
> #+TBLFM: @1$1={{{foo}}}
>
> and 
>
> #+TBLFM: @1$1="{{{foo}}}"
>
> But neither of those work.

What about simply:

| {{{foo}}} |

i.e. put the macro reference directly in the table?


-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-408-g39f5f0



Re: [O] Getting lots of Emacs crashes

2014-10-13 Thread Noah Slater
Is there anything else I could provide that would help? It's still
happening to me occasionally.

On 5 October 2014 20:43, Noah Slater  wrote:
> Using Org version: release_8.3beta-38-gbaa2c5
>
> $ emacs --version
>
> GNU Emacs 24.4.50.1
>
> $ emacs --debug-init
>
> Fatal error 11: Segmentation fault/usr/local/bin/emacs: line 2: 18940
> Abort trap: 6
> /usr/local/Cellar/emacs/HEAD/Emacs.app/Contents/MacOS/Emacs -nw "$@"
>
> (Here I ran org-agenda, and it segfaulted.)
>
> I tried the above command again, and Emacs does not segfault. However,
> this time, I go to mark an Org item as done, and Emacs uses up 100%
> CPU.
>
> So I try this again, but I use dtruss -p PID to get a trace.
>
> What I do here is that I open Emacs, set the trace running, then open
> the agenda, move to the item, press "t" to bring up the change state
> menu, then hit "d" for DONE.
>
> That's when Emacs hangs, and this is the trace from pressing "d":
>
> stat64("/var/run/random-seed\0", 0x7FFF5FBFA690, 0x1015661C8) = -1 Err#2
> symlink("nsla...@air.fritz.box.19297\0",
> "/Users/nslater/Documents/Org/.#Tech.org\0") = 0 0
> write_nocancel(0x4, "\033[39d\033[?25lTODO state changed to
> \033[1m\033[38;5;28mDONE\033[0m\033[39;49m\033[K\033[24;3H\033[?12l\033[?25h\033[?12;25h\0",
> 0x5E) = 94 0
> select(0x5, 0x7FFF5FBFE1A0, 0x7FFF5FBFE120, 0x0, 0x7FFF5FBFDDF0) = -1 Err#4
> sigreturn(0x7FFF5FBFDD30, 0x1E, 0x7FFF5FBFDD30) = 0 Err#-2
> __pthread_canceled(0x0, 0x7FFF5FBFE1A0, 0x7FFF5FBFE120) = -1 Err#22
> ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
> read(0x4, "d\b\0", 0x1) = 1 0
> ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
> ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
> stat64("/Users/nslater/Documents/Org/Tech.org\0", 0x7FFF5FBFC6D8,
> 0x100522438) = 0 0
> gettimeofday(0x7FFF5FBFD188, 0x0, 0x0) = 1412534490 0
> write_nocancel(0x4,
> "\033[39;23H\033[?25l\033[1m\033[91mTODO\033[0m\033[39;49m\033[24;3H\033[?12l\033[?25h\033[?12;25h#\0",
> 0x43) = 67 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534492 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0x0) = 1412534494 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534504 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534505 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534507 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534515 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534523 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534528 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534531 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534539 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534540 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534542 0
>
> And then just gettimeofday messages forever.
>
> Any clue?
>
> On 1 September 2014 22:06, Noah Slater  wrote:
>> Hello,
>>
>> I'm getting a lot of Emacs crashes recently using Org. Is there any
>> way I can help to debug why this is happening?
>>
>> Thanks,
>>
>> --
>> Noah Slater
>> https://twitter.com/nslater
>
>
>
> --
> Noah Slater
> https://twitter.com/nslater



-- 
Noah Slater
https://twitter.com/nslater



Re: [O] Math formatting in HTML export - The Org Manual

2014-10-13 Thread Joseph Vidal-Rosset
Le lun.  13 oct. 2014  à 01:45:28 ,  Eric S Fraga   a
envoyé ce message:
> On Monday, 13 Oct 2014 at 09:45, Joseph Vidal-Rosset wrote:
>
> [...]
>
>> Here is a minimal document as example
>>
>> #+OPTIONS: tex:imagemagick
>> #+TITLE: Minimal logic
>>
>> #+AUTHOR: Joseph Vidal-Rosset
>>
>> \begin{equation}
>> \neg A \to (A \to B)
>> \end{equation}
>
> This works perfectly fine for me with both dvipng (my default choice)
> and imagemagick.  The problem may be in your LaTeX installation: what
> fonts are used etc.?


I have just tested 
and it works. I conclude that the problem comes from imagemagick. 

But dvipng does not succeed to make png images of proofs via bussproofs.sty. 

For example, I do not succeed to transform this proof into a png image: 

\begin{prooftree}
\def\fCenter{\ \Rightarrow\ }
\AxiomC{}
\RightLabel{\scriptsize{Ax.}}
\UnaryInf$A \to \bot, \bot \fCenter \bot$
\RightLabel{\scriptsize{$L\neg$def.}}
\UnaryInf$ \neg A, \bot \fCenter \bot$
\RightLabel{\scriptsize{$R\neg$}}
\UnaryInf$\bot \fCenter \neg \neg A$
\AxiomC{}
\RightLabel{\scriptsize{Ax.}}
\UnaryInf$A, \bot \fCenter \bot$
\RightLabel{\scriptsize{$R\neg$}}
\UnaryInf$\bot \fCenter \neg A$
\RightLabel{\scriptsize{$R\land$}}
\BinaryInf$\bot \fCenter \neg \neg A \land \neg A$
\end{prooftree}


I succeeded also to do it with Gnus by adding #+LaTeX_HEADERS:
\usepackage{bussproofs} on the top of the message, and no it does not no
more... that's another problem... 








Re: [O] Getting lots of Emacs crashes

2014-10-13 Thread Nicolas Goaziou
Hello,

Noah Slater  writes:

> Is there anything else I could provide that would help? It's still
> happening to me occasionally.

An ECM for the infloop could help. If it segfaults, however, it is
probably outside of Lisp scope and you should report it to the Emacs
development team.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-habit for multiple arbitrary days in a week

2014-10-13 Thread Nicolas Goaziou
Hello,

James Harkins  writes:

> I can also add multiple SCHEDULED lines. But org-habit doesn't work well with 
> this either.
>
> ** TODO Update lesson gradesheet 
> :Comp:
>SCHEDULED: <2014-10-13 Mon +1w>
>SCHEDULED: <2014-10-17 Fri +1w>

You can't. This is invalid Org syntax (only one scheduled keyword per
entry).


Regards,

-- 
Nicolas Goaziou



Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-13 Thread Nicolas Goaziou
Hello,

Aaron Ecay  writes:

> There’s at least some notion in the Latex community that captions atop
> tables but below figures is sensible style:
> .
>
> In that light, does it make sense to instead implement this setting as an 
> alist
> with separate settings for tables, images, src blocks, etc.?  (Of
> course, there could be separate variables
> org-latex-{table,figure,src-block}-caption-above, but a single alist
> seems simpler)

If we want to preserve backward-compatibility, t, nil and a list of
types (e.g. '(table src-block)) should suffice. No need for an alist.

Still on my ToDo list but I'm not there yet. Feel free to beat me to it
if you want.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH RFC] subtree archive hook?

2014-10-13 Thread Nicolas Goaziou
Hello,

Eric Abrahamsen  writes:

> I think it would be useful to have a hook that runs before archiving a
> subtree. I'm attaching two patches: one that includes a hook in the
> archive process, and another (by way of an example) that adds a function
> to that hook for the org-attach library. You can set the option
> `org-attach-archive-delete' to a non-nil value to have org-attach delete
> a subtree's attachments when you archive it.
>
> Let me know what you think!

Thanks for the patch. I think it could be useful. Some comments follow.

> +(defvar org-archive-hook nil
> +  "Hook run after successfully archiving a subtree.
> +
> +Hook functions are called with point on the subtree in the
> +original file. At this stage, the subtree has been added to the

You need two spaces after full stop.

> * lisp/org-attach.el (org-attach-archive-delete): New option
>   controlling what to do with attachments when archiving.
>   (org-attach-archive-delete-maybe): New function that runs as a hook
>   on org-attach-hook. Checks the value of org-attach-archive-delete,

Two spaces are needed.

>   and behaves accordingly.
> ---
>  lisp/org-attach.el | 32 
>  1 file changed, 32 insertions(+)
>
> diff --git a/lisp/org-attach.el b/lisp/org-attach.el
> index 5c341a5..cc077c4 100644
> --- a/lisp/org-attach.el
> +++ b/lisp/org-attach.el
> @@ -120,6 +120,18 @@ lns   create a symbol link.  Note that this is not 
> supported
> (const :tag "Link to origin location" t)
> (const :tag "Link to the attach-dir location" attached)))
>  
> +(defcustom org-attach-archive-delete nil
> +  "If a subtree is archived, should its attachments be deleted?

  Non-nil means attachments are deleted upon archiving a subtree.

> +Set to nil to never delete attachments, t to always delete
> +attachments, and the symbol query to ask."

I think you only need to document the `query' symbol, e.g.,

  When set to `query', ask the user instead.

> +  :group 'org-attach
> +  :version "24.1"
> +  :type '(choice
> +   (const :tag "Never delete attachments" nil)
> +   (const :tag "Always delete attachments" t)
> +   (const :tag "Query the user" query)))

You need :package-version and :version is "25.1".

>  ;;;###autoload
>  (defun org-attach ()
>"The dispatcher for attachment commands.
> @@ -475,6 +487,26 @@ Basically, this adds the path to the attachment 
> directory, and a \"file:\"
>  prefix."
>(concat "file:" (org-attach-expand file)))
>  
> +(defun org-attach-archive-delete-maybe ()
> +  "Maybe delete subtree attachments when archiving.
> +
> +This function is called by `org-archive-hook'. The option

Two spaces.

> +`org-attach-archive-delete' controls its behavior."
> +  (let (delete-p)
> +(setq delete-p
> +   (cond
> +((eq org-attach-archive-delete 'query)
> + (y-or-n-p "Delete all attachments?"))
> +((null org-attach-archive-delete)
> + nil)
> +(org-attach-archive-delete
> + t)
> +(t nil)))
> +(when delete-p
> +  (org-attach-delete-all t

  (defun org-attach-archive-delete-maybe ()
(when (if (eq org-attach-archive-delete 'query)
  (yes-or-no-p "Delete all attachments? ")
org-attach-archive-delete)
  (org-attach-delete-all t)))


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] key-binding for all plotting styles

2014-10-13 Thread Nicolas Goaziou
Hello,

Thierry Banel  writes:

> Done.

Thank you.

> To see the result:
> - cd to org-mode tree root
> - make info
> - launch Emacs
> - C-u C-h i doc/org RET
> - search for "Org-Plot" chapter

Some comments follow.

> -call @code{org-plot/gnuplot} on the following table.
> +call @kbd{C-c " g} or @code{M-x org-plot/gnuplot RET} on the
> following table.

It should be

  @kbd{M-x org-plot/gnuplot @key{RET}}

Note there is also the macro

  @orgcmd{C-c " g,org-plot/gnuplot}

> +While the cursor is on a column, typing @kbd{C-c " a} or
> +@code{M-x orgtbl-ascii-plot RET} create a new column containing an
> ascii-art

  @kbd{M-x orgtbl-ascii-plot @key{RET}}

> +bars plot.  The plot is implemented through a regular column formula.  When
> +the source column changes, the bar plot may be updated by refreshing the
> +table, for example typing @kbd{C-u C-c *}.

> +@item MIN MAX
> +  are the minimal and maximal values displayed.  Sources values
> +  outside this range are displayed as @code{too small}
> +  or @code{too large}.

  @samp{too small} or @samp{too large}.

> +@item WIDTH
> +  is the width in characters of the bar-plot.  It defaults to
> @code{12}.

  @samp{12}

> +*** Ascii plot
> +Ability to plot values in a column through ascii-art bars.

BTW is-it ASCII-art or ascii-art?


Regards,

-- 
Nicolas Goaziou



Re: [O] left aligned changes to right alignment in table after adding one row - possible bug?

2014-10-13 Thread Charles Berry
Rainer M Krug  krugs.de> writes:

> 
> 
> #+PROPERTY: header-args :exports both
> 
> * Changing alignment when one row is added
> Despite of all values are strings, the alignment changes in the below
> example. Is this a bug or am I missing something?
> 

One of these two maybe:

,[ C-h v org-table-number-regexp RET ]
| org-table-number-regexp is a variable defined in `org-table.el'.
| Its value is
| "^\\([<>]?[-+^.0-9]*[0-9][-+^.0-9eEdDx()%:]*\\|[<>]?[-+]?0[xX][0-9a-
| [wrapped] fA-F.]+\\|[<>]?[-+]?[0-9]+#[0-9a-zA-Z.]+\\|nan\\|[-+u]?inf\\)$"
| 
| Documentation:
| Regular expression for recognizing numbers in table columns.
| If a table column contains mostly numbers, it will be aligned to the
| right.  If not, it will be aligned to the left.
| 
| The default value of this option is a regular expression which allows
| anything which looks remotely like a number as used in scientific
| context.  For example, all of the following will be considered a
| number:
| 1212.22.4e-082x10^124.034+-0.022.7(10)  >3.5
| 
| Other options offered by the customize interface are more restrictive.
| 
| You can customize this variable.
| 
| [back]
`



,[ C-h v org-table-number-fraction RET ]
| org-table-number-fraction is a variable defined in `org-table.el'.
| Its value is 0.5
| 
| Documentation:
| Fraction of numbers in a column required to make the column align right.
| In a column all non-white fields are considered.  If at least
| this fraction of fields is matched by `org-table-number-regexp',
| alignment to the right border applies.
| 
| You can customize this variable.
| 
| [back]
`


With the added row, the fraction is exceeded in the last two columns.


HTH,

Chuck





Re: [O] [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

2014-10-13 Thread Achim Gratz
Marco Wahl writes:
> Sorry for that.  I was not aware that fixes should go to maint.  I just
> naively took the first best branch (which was master) for applying the
> change.  BTW: It looks like a good soul already merged the patch into
> the maint branch.

The general rule is that bugfixes for bugs that are (also) in maint are
fixed there and then merged into master.  If backwards compatibility is
broken or new features get introduced, things go directly to master.


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

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Adding new table rows/cols in a formula update

2014-10-13 Thread Achim Gratz
Dima Kogan writes:
> --- a/testing/lisp/test-org-table.el
[…]
> +(condition-case
[…]
> +  "#+TBLFM: @1$2=5")
> +  ('user-error t)))

That part of the test, specifically the attempt to catch the error is
not working for me on Windows, most likely because I use an older
version of Emacs there (I don't recall which one, either 23.4 or 24.1 I
think).  This probably comes about because ert-deftest is a macro, but I
don't have time right now to dig into it.


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

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




Re: [O] org-mode for knowledge management

2014-10-13 Thread Louis



On Thu, 9 Oct 2014, Thomas S. Dye wrote:


Aloha Louis,

Louis  writes:


Hi all,

I've been using org-mode for a variety of purposes for a few years. I
find that it suffers from the same problem that other such tools
do. The problem is me. I can't remember week to week how I may have
classified some scrap of information. Did I drop it into
notes/someproduct.org or was it procedures/someprocess.org?



Perhaps org-index in contrib would help?

http://orgmode.org/worg/org-contrib/org-index.html

hth,
Tom


It looks promising. I haven't figured out the trick of it yet, though.

Do you go to the target node and do an org-index link, then goto the
index table and do an org-index fill?

Anybody have some usage tips?


Louis





--
Thomas S. Dye
http://www.tsdye.com







Re: [O] org-mode for knowledge management

2014-10-13 Thread Thomas S. Dye
Louis  writes:

> On Thu, 9 Oct 2014, Thomas S. Dye wrote:
>
>> Aloha Louis,
>>
>> Louis  writes:
>>
>>> Hi all,
>>>
>>> I've been using org-mode for a variety of purposes for a few years. I
>>> find that it suffers from the same problem that other such tools
>>> do. The problem is me. I can't remember week to week how I may have
>>> classified some scrap of information. Did I drop it into
>>> notes/someproduct.org or was it procedures/someprocess.org?
>>>
>>
>> Perhaps org-index in contrib would help?
>>
>> http://orgmode.org/worg/org-contrib/org-index.html
>>
>> hth,
>> Tom
>
> It looks promising. I haven't figured out the trick of it yet, though.
>
> Do you go to the target node and do an org-index link, then goto the
> index table and do an org-index fill?
>
> Anybody have some usage tips?

Does the working example
(http://orgmode.org/worg/org-contrib/org-index.html#sec-5) work for you?

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] inline constant substitution

2014-10-13 Thread Paul Rudin
Eric S Fraga  writes:

> On Sunday, 12 Oct 2014 at 18:13, Paul Rudin wrote:
>> Thanks. If I *also* want to use that value in a table is there a way to
>> do that? I experimented with:
>>
>> #+TBLFM: @1$1={{{foo}}}
>>
>> and 
>>
>> #+TBLFM: @1$1="{{{foo}}}"
>>
>> But neither of those work.
>
> What about simply:
>
> | {{{foo}}} |
>
> i.e. put the macro reference directly in the table?

The value gets exported to LaTeX in the table, but that apparently
happens at export time. So if you have formulae in the table that refer
to that cell they don't compute using the value.




Re: [O] beamer and changing font size for example environment

2014-10-13 Thread Manfred Lotz
On Mon, 13 Oct 2014 08:50:09 +0100
Eric S Fraga  wrote:

> On Saturday, 11 Oct 2014 at 10:42, Manfred Lotz wrote:
> > Maybe a stupid question. 
> >
> > How could I change font size (in my case to smaller) for an example
> > environment in org-mode? Needed in export to Beamer pdf.
> 
> Not sure what exactly you are asking but IIUC maybe something along
> these lines will work for you:
> 
> --8<---cut here---start->8---
> #+latex: {\footnotesize
> 
>   org stuff here
> 
> #+latex: }
> --8<---cut here---end--->8---
> 
> Choose the font size you want.
> 
> You can also /shrink/ individual frames in beamer.
> 

Thanks, that is what I was looking for.

-- 
Manfred



Re: [O] [PATCH] key-binding for all plotting styles

2014-10-13 Thread Thierry Banel
Thanks Nicolas for your feedback.
I'll do the adjustments.

Le 13/10/2014 18:24, Nicolas Goaziou a écrit :
>
> Some comments follow.
>
> ...
> BTW is-it ASCII-art or ascii-art?
>
>

Good question!
When asking Google, we get every possible combination, in decreasing
order of occurrences:
  ASCII Art
  ASCII ART
  Ascii Art
  ASCII art
  ascii art
The Internet seems to vote for capitals.
The Emacs info pages capitalize the whole word: ASCII.
So, you are right, ASCII is the way to go.

jQWBVVVTVH$QQQ
jQQ@?nc?""-  - -""!<2Y$WQQ
jQQWVY+~^  . "->YUWQQQ
j@5)~ .   .   .  ~{7$Q
jQQWT+'   . ..  -"??9QQma. "i9
jQDl~ .  .   )agm
jQQWWwa%>T==T|swwB
jQQmmmQWWW




[O] org agenda custom command: "search" block, cannot sort by priority?

2014-10-13 Thread Brady Trainor

Can I expect sorting by priority to be easily usable in the `search'
block for `org-agenda-custom-commands'? 

Here is a minimal example, where I can pull all headlines by using a tag
filter on a nonsense tag, whereas the search for all headlines doesn't
seem to be sortable. Should I be aware of the limitations of the
`search' block? 

#+BEGIN_SRC emacs-lisp
(setq org-agenda-custom-commands
  `(("g" "Global view of items"
 ((tags  "-asdfjkl;"))
 )
("G" "Global view of items"
 ((search "."
  ((org-agenda-sorting-strategy '(priority-down)
 ((org-agenda-sorting-strategy '(priority-down)))
 )
))
#+END_SRC





Re: [O] org-mode for knowledge management

2014-10-13 Thread Louis



On Mon, 13 Oct 2014, Thomas S. Dye wrote:


Does the working example
(http://orgmode.org/worg/org-contrib/org-index.html#sec-5) work for you?



No, actually it doesn't. The node:

   * A working example
   This node contains a simple setup, which can be used to explore
   org-index. Further below there is also
   [[id:848c6d2a-6e8b-4c93-8481-19e6db7e6ca8][A sample for an index table]].

refers to an id that doesn't exist.

If you take the #+BEGIN_EXAMPLE, #+END_EXAMPLE out from around the list 
and add the properties/ID drawer, then the "C-c i bar[RET]" does bring 
up the *org-index-occur* buffer. Typing [RET] wont take you to the node

referenced by ref R2, because it doesn't exist anywhere.

It shows you how to search, but not how to create a reference to anything.

Still trying various approaches...





hth,
Tom

--
Thomas S. Dye
http://www.tsdye.com






Re: [O] org-mode for knowledge management

2014-10-13 Thread Eric Abrahamsen
Daniel Clemente  writes:

> El Mon, 13 Oct 2014 10:42:28 +0800 Eric Abrahamsen va escriure:
>> >
>> > This is the bit I'm not sure about...
>> >
>> > * project_a
>> > ** experiment about blah :proj_name:theme:
>> > [2014-10-11]
>> >
>> > Did x, y, and z today. Will analyze results tomorrow.
>> >
>> > [2014-10-12]
>> >
>> > Wow. Interesting finding. This will help a lot and may be relevant to
>> > future projects!
>> >
>> …
>> 
>> Perhaps both links and tags are what you're after then: you could leave
>> a link to the general finding inside "experiment about blah" (to remind
>> yourself you took that note), but also use the tags to open Agendas on
>> both project and theme, so you can see all the relevant information in
>> one place.
>> 
>
>
>> > * project_a
>> > ** experiment about blah :proj_name:theme:
>
>   I think it's crazy to use topics as tags. How many topics/themes are
> there? Wikipedia counts many million. Names of topic are very
> subjective. Topics are often mixed, split apart, refined, renamed,
> grouped in supertopics, …
>   In org it's easy to remodel hierarchical headers but it's not easy to 
> remodel tags (much less, hierarchical tags).

Personally, I'm not trying to model all of human knowledge in my Org
files! I suppose if you were an academic researcher it might be a bigger
issue, but I count 71 different tags in my agenda files, and I don't
feel overwhelmed. You can get a bit of tag hierarchy with tag groups,
but admittedly only a bit.

>   So rather than:
>
> ** some construction  :plastics_engineering:
>
>
>   I would have:
>
> Engineering.org:
> * Plastics
> * Houses
> * …
>
>
>   I understand you use tags and „tag search“ to be able to look for
> bits of a particular topic in a file which is not related to the
> topic.
>   It would be better to have a tag that in addition links to a
> particular tree. With that you'd have the freedom of tagging anything
> and the flexibility of headers.
>
>   Some brainstorming about how to link tags with headers: Two options:
>
> 1) There is a main tag in a header, and the other tags link to it (with C-c 
> C-o you navigate to the main tag).
>
> proj1.org:
> ** some construction  :plastics_engineering:
>
> Engineering.org:  :<<>>:
> * Plastics
> * Houses
> * …
>
>
> 2) You use links and you ask for backlinks
>
> proj1.org:
> ** some construction [link to P]
>
> Engineering.org:
> * Plastics
>   :ID: 1231212311122
> * Houses
> * …
>
> And then… a key to *search for links to a header* („backlinks“). Can org do 
> this now?.
> E.g. you go to „Plastics“ and you search „all the backlinks found in
> proj1.org“. Then you have the generic knowledge and in addition all
> the bits of specific knowledge about that topic.
>
>
> Maybe this is already possible… Whether it's useful, I don't know.

To my knowledge, no one's implemented a reverse link lookup, but it
should certainly be possible. Using the <<>> link notation as a
tag, however, would probably end up being more work (and more confusing)
than it's worth.

E




Re: [O] org-habit for multiple arbitrary days in a week

2014-10-13 Thread James Harkins
At Mon, 13 Oct 2014 17:56:04 +0200,
Nicolas Goaziou wrote:
> > ** TODO Update lesson gradesheet   
> > :Comp:
> >SCHEDULED: <2014-10-13 Mon +1w>
> >SCHEDULED: <2014-10-17 Fri +1w>
> 
> You can't. This is invalid Org syntax (only one scheduled keyword per
> entry).

I see... perhaps it should be filed under "wish list" to support an "arbitrary 
days of week" repeater style. One way might be something like "<2014-10-13 Mon 
+4d +3d>": First advance by 4 days, then by 3 days, then 4 again and so on.

I would call it a low priority enhancement. There might actually be some 
benefit to tracking consistency on the two days separately. But the fact 
remains, if someone needed to treat it as one task that happens on two or three 
arbitrary days during the week (always the same days) and it wouldn't be useful 
for her to split them, org-habit currently does not support this as far as I 
can see.

hjh





Re: [O] [PATCH RFC] subtree archive hook?

2014-10-13 Thread Eric Abrahamsen
Nicolas Goaziou  writes:

> Hello,
>
> Eric Abrahamsen  writes:
>
>> I think it would be useful to have a hook that runs before archiving a
>> subtree. I'm attaching two patches: one that includes a hook in the
>> archive process, and another (by way of an example) that adds a function
>> to that hook for the org-attach library. You can set the option
>> `org-attach-archive-delete' to a non-nil value to have org-attach delete
>> a subtree's attachments when you archive it.
>>
>> Let me know what you think!
>
> Thanks for the patch. I think it could be useful. Some comments follow.
>
>> +(defvar org-archive-hook nil
>> +  "Hook run after successfully archiving a subtree.
>> +
>> +Hook functions are called with point on the subtree in the
>> +original file. At this stage, the subtree has been added to the
>
> You need two spaces after full stop.
>
>> * lisp/org-attach.el (org-attach-archive-delete): New option
>>   controlling what to do with attachments when archiving.
>>   (org-attach-archive-delete-maybe): New function that runs as a hook
>>   on org-attach-hook. Checks the value of org-attach-archive-delete,
>
> Two spaces are needed.
>
>>   and behaves accordingly.
>> ---
>>  lisp/org-attach.el | 32 
>>  1 file changed, 32 insertions(+)
>>
>> diff --git a/lisp/org-attach.el b/lisp/org-attach.el
>> index 5c341a5..cc077c4 100644
>> --- a/lisp/org-attach.el
>> +++ b/lisp/org-attach.el
>> @@ -120,6 +120,18 @@ lns   create a symbol link.  Note that this is not 
>> supported
>>(const :tag "Link to origin location" t)
>>(const :tag "Link to the attach-dir location" attached)))
>>  
>> +(defcustom org-attach-archive-delete nil
>> +  "If a subtree is archived, should its attachments be deleted?
>
>   Non-nil means attachments are deleted upon archiving a subtree.
>
>> +Set to nil to never delete attachments, t to always delete
>> +attachments, and the symbol query to ask."
>
> I think you only need to document the `query' symbol, e.g.,
>
>   When set to `query', ask the user instead.
>
>> +  :group 'org-attach
>> +  :version "24.1"
>> +  :type '(choice
>> +  (const :tag "Never delete attachments" nil)
>> +  (const :tag "Always delete attachments" t)
>> +  (const :tag "Query the user" query)))
>
> You need :package-version and :version is "25.1".
>
>>  ;;;###autoload
>>  (defun org-attach ()
>>"The dispatcher for attachment commands.
>> @@ -475,6 +487,26 @@ Basically, this adds the path to the attachment 
>> directory, and a \"file:\"
>>  prefix."
>>(concat "file:" (org-attach-expand file)))
>>  
>> +(defun org-attach-archive-delete-maybe ()
>> +  "Maybe delete subtree attachments when archiving.
>> +
>> +This function is called by `org-archive-hook'. The option
>
> Two spaces.
>
>> +`org-attach-archive-delete' controls its behavior."
>> +  (let (delete-p)
>> +(setq delete-p
>> +  (cond
>> +   ((eq org-attach-archive-delete 'query)
>> +(y-or-n-p "Delete all attachments?"))
>> +   ((null org-attach-archive-delete)
>> +nil)
>> +   (org-attach-archive-delete
>> +t)
>> +   (t nil)))
>> +(when delete-p
>> +  (org-attach-delete-all t
>
>   (defun org-attach-archive-delete-maybe ()
> (when (if (eq org-attach-archive-delete 'query)
>   (yes-or-no-p "Delete all attachments? ")
> org-attach-archive-delete)
>   (org-attach-delete-all t)))

Thanks for the review! Particularly the concision of this last. I'm
afraid I may never get used to two spaces at the end of a sentence,
though...

Eric

>From 7c0db486d247a21f88f4c2c9da71b2ad8f98abff Mon Sep 17 00:00:00 2001
From: Eric Abrahamsen 
Date: Tue, 14 Oct 2014 09:38:41 +0800
Subject: [PATCH 6/7] Provide a hook during the archive process

* lisp/org-archive.el (org-archive-hook): New hook.
  (org-archive-subtree): Run hook.
---
 lisp/org-archive.el | 13 +++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/lisp/org-archive.el b/lisp/org-archive.el
index 700e59b..b30185c 100644
--- a/lisp/org-archive.el
+++ b/lisp/org-archive.el
@@ -119,6 +119,13 @@ information."
 	  (const :tag "Outline path" olpath)
 	  (const :tag "Local tags" ltags)))
 
+(defvar org-archive-hook nil
+  "Hook run after successfully archiving a subtree.
+
+Hook functions are called with point on the subtree in the
+original file.  At this stage, the subtree has been added to the
+archive location, but not yet deleted from the original file.")
+
 (defun org-get-local-archive-location ()
   "Get the archive location applicable at point."
   (let ((re "^[ \t]*#\\+ARCHIVE:[ \t]+\\(\\S-.*\\S-\\)[ \t]*$")
@@ -366,8 +373,10 @@ this heading."
 	;; Save and kill the buffer, if it is not the same buffer.
 	(when (not (eq this-buffer buffer))
 	  (save-buffer
-	;; Here we are back in the original buffer.  Everything seems to have
-	;; worked.  So now cut the tree and finish up.
+	;; Here we are back in the original buf

Re: [O] org-mode for knowledge management

2014-10-13 Thread John Hendy
On Sun, Oct 12, 2014 at 2:48 AM, Daniel Clemente  wrote:
>
>> […]
>> uniformity, extruder/die temperature, cooling time, holding pressure,
>> etc. I think this is awesome general knowledge. But I'm documenting
>> our learning in an experimental report for export and upload to my
>> company's internal technical report repo.
>
>   I find it very different to write notes for yourself and to write for an 
> audience. In a report you need to follow a structure, you need to choose a 
> particular natural language, you need to explain things that might be obvious 
> for you, you cannot change topic, … Whereas in notes, you're free. Therefore 
> I think it makes sense to have two different places for both.

In general I'd say that's true, though I'm often doing analysis as
part of a project team. It's easier to just do it once, turn scattered
phrases into an actual narrative/walkthrough, and not have to re-write
it more formally later. I've taken to this after making little
headlines for myself and then having to piece together bits and pieces
(tables, plots, commentary) into something I can share with the team.

So, my situation may be a bit different as I'm strictly speaking about
using org to manage work-related knowledge (which generally is not
occurring in a black hole and thus must have some degree of polish).

>> What I'm often torn about is re-writing the
>> learning/understanding/summary in a more general way since how it
>> usually arises is laden with specific details for *this*
>> product/project, whereas the information I want to retain is about how
>> I see the new understanding more generally.
>
>   … However, I don't consider that rewriting (specific→general) you mention 
> as a necessary task or a burden (I don't do it), because in your notes 
> (generic knowledge) you can simply refer to the specific one (e.g.: „see what 
> I did in this case ([[link_to_the_report]])“.). A header with 1 or 2 or N 
> links to specific reports is a good start before continue focusing on other 
> generic-knowledge topics.
>   So you decide where you will work the most (either in the specific reports 
> or in the generic knowledge) and then the other can refer to it.

I like that, and think it makes sense.

* Generic knowledge tree
** Relevant sub-topic
*** Something
Cool finding happened related to work on x, in that blah. See [[link]] for more.

>   I do it like that. E.g. I'm not writing in my generic notes a „code style 
> guide“ because I did it already in project X, so I add knowledge in 
> projectX.org and just link to it. If some particular knowledge grows too big 
> for that projectX_code_style, I develop it in my generic notes (another file, 
> project-unrelated).

>> >   Of course copy+paste is a nightmare to maintain (see: DRY). I am still 
>> > forced to do it with some org tables which do complex calculations. I 
>> > think org offers dynamic tables to apply the same process to different 
>> > data sources, but it gets complex. I think there's no such thing as 
>> > „templates“ where you change the base one and all uses of it (in all 
>> > files) are automatically updated.
>> >
>> >   About links: in org-mode they all look the same, but semantically there 
>> > are many types, like:
>> > - *is-a*: „this is a concrete implementation of [[that generic knowledge]]“
>> > - *related*: „related to this is: [[that]]“
>> > - *same-as*: „this and [[that]] are exactly the same topic, so write only 
>> > under that header, not here“ ← this is poor man's transclusion, or more 
>> > like „symbolic links“ in ext4. With it, a header seems to be present in 
>> > many places at the same time; in reality the content is only in one place 
>> > and the rest are links. The good thing is, it doesn't really matter 
>> > /where/ exactly is that tree, because you'll find it anyway by following 
>> > maximum 1 link. X can link to Y, or Y can link the X; what's important is 
>> > that reading both X or Y you'll find exactly the same thing (not 
>> > copy+pasted contents).
>> >
>> >   So, it's all about finding a manual algorithm to organize things
>>
>> This is generally what I've tried to do, though I find this is
>> cumbersome as I often use subtrees for more report-style/narrative
>> analyses of data and experiments. Thus I don't find it as simple as
>> your example to Brady with the PDF/HTML info, which is more basic. As
>> I write this, I'm thinking I could probably still do this...
>>
>> For an example, let's say I'm making plastic widgets and we've been
>> running a series of injection mold trials with a manufacturer. Some
>> really novel understanding comes about with respect to part
>> uniformity, extruder/die temperature, cooling time, holding pressure,
>> etc. I think this is awesome general knowledge. But I'm documenting
>> our learning in an experimental report for export and upload to my
>> company's internal technical report repo.
>>
>> My initial thought was that links this way would get in the way... but
>> I sup

Re: [O] org-mode for knowledge management

2014-10-13 Thread Daniel Clemente

Thanks, that's a very simple way to search backlinks! I didn't know about 
org-search-view.


El Sun, 12 Oct 2014 22:17:27 -0700 Samuel Wales va escriure:
> 
> (defun alpha-org-what-links-here ()
>   "Show all links that point to the current node.  Also show the
> node itself.
> 
> This makes id links quasi-bidirectional."
>   (interactive)
>   (let ((org-agenda-files (alpha-org-all-org-files
>:archive t
>:text-search-extra t))
> ;; turn off redundancy
> ;;   fixme probably going to be redone
> org-agenda-text-search-extra-files)
> (org-search-view nil (org-entry-get nil "ID" t
> 
> 
> On 10/12/14, Daniel Clemente  wrote:
> > El Mon, 13 Oct 2014 10:42:28 +0800 Eric Abrahamsen va escriure:
> >> >
> >> > This is the bit I'm not sure about...
> >> >
> >> > * project_a
> >> > ** experiment about blah :proj_name:theme:
> >> > [2014-10-11]
> >> >
> >> > Did x, y, and z today. Will analyze results tomorrow.
> >> >
> >> > [2014-10-12]
> >> >
> >> > Wow. Interesting finding. This will help a lot and may be relevant to
> >> > future projects!
> >> >
> >> …
> >>
> >> Perhaps both links and tags are what you're after then: you could leave
> >> a link to the general finding inside "experiment about blah" (to remind
> >> yourself you took that note), but also use the tags to open Agendas on
> >> both project and theme, so you can see all the relevant information in
> >> one place.
> >>
> >
> >
> >> > * project_a
> >> > ** experiment about blah :proj_name:theme:
> >
> >   I think it's crazy to use topics as tags. How many topics/themes are
> > there? Wikipedia counts many million. Names of topic are very subjective.
> > Topics are often mixed, split apart, refined, renamed, grouped in
> > supertopics, …
> >   In org it's easy to remodel hierarchical headers but it's not easy to
> > remodel tags (much less, hierarchical tags).
> >
> >   So rather than:
> >
> > ** some construction  :plastics_engineering:
> >
> >
> >   I would have:
> >
> > Engineering.org:
> > * Plastics
> > * Houses
> > * …
> >
> >
> >   I understand you use tags and „tag search“ to be able to look for bits of
> > a particular topic in a file which is not related to the topic.
> >   It would be better to have a tag that in addition links to a particular
> > tree. With that you'd have the freedom of tagging anything and the
> > flexibility of headers.
> >
> >   Some brainstorming about how to link tags with headers: Two options:
> >
> > 1) There is a main tag in a header, and the other tags link to it (with C-c
> > C-o you navigate to the main tag).
> >
> > proj1.org:
> > ** some construction  :plastics_engineering:
> >
> > Engineering.org:  :<<>>:
> > * Plastics
> > * Houses
> > * …
> >
> >
> > 2) You use links and you ask for backlinks
> >
> > proj1.org:
> > ** some construction [link to P]
> >
> > Engineering.org:
> > * Plastics
> >   :ID: 1231212311122
> > * Houses
> > * …
> >
> > And then… a key to *search for links to a header* („backlinks“). Can org do
> > this now?.
> > E.g. you go to „Plastics“ and you search „all the backlinks found in
> > proj1.org“. Then you have the generic knowledge and in addition all the bits
> > of specific knowledge about that topic.
> >
> >
> > Maybe this is already possible… Whether it's useful, I don't know.
> >
> >
> 
> 
> -- 
> 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.



[O] Sharing: Agenda skip function to remove future-scheduled items

2014-10-13 Thread James Harkins
I often ask questions, or complain about things (or both at the same time), so 
it's nice to share something.

I was making a block agenda, splitting up tasks by location (loosely inspired 
by GTD). But I realized that I didn't want to see items that are scheduled for 
the future, because this is my agenda view for "what tasks are available right 
now." For example, if I have a task to update my grade sheet, it doesn't make 
sense to do that before I've taught the lessons -- so I don't want to see the 
task until it's actually due.

I didn't find a straightforward way to use a property search such as "scheduled 
is nil or scheduled > today," but I did (with some false starts) hack up a skip 
function that seems to do the job. So, in the relevant blocks, I have 
(org-agenda-skip-function 'hjh-skip-future-scheduled), and... perfect.

(I'm sure it's not the most efficient, but I found elisp's time comparisons to 
be confusing, and I didn't want to consider time-of-day either. Performance is 
OK for my use.)

hjh

; agenda skip function to remove items scheduled for a future date
(defun hjh-skip-future-scheduled ()
  "Skip trees that are scheduled in the future"
  (let* ((subtree-end (save-excursion (org-end-of-subtree t)))
 (schedprop (cdr (assoc "SCHEDULED" (org-entry-properties
 (schedymd (if(stringp schedprop) (substring schedprop 0 10
(if schedymd
(if (string< (format-time-string "%Y-%m-%d" (current-time)) schedymd) 
subtree-end nil)
  nil)))