[O] Bug: spreadsheet [7.7]

2011-10-02 Thread Paul Stansell
Hello,

I think I have found a bug in the spreadsheet of orgmode.

To reproduce the bug do the following:

Edit this file with emacs orgmode.

Place the cursor in the small table below and type C-c } to toggle on the
display a labelled grid giving the cell references.

Change the c=1 in the CONSTANTS line to c=2 and refresh this line with C-c
C-c.

Put the cursor on the TBLFM line and refresh this line with C-c C-c.

An I*1 appears above the table which should not appear and can't be
removed with the usual emacs commands.


  |---|
  | 1 |
  |---|
#+TBLFM: $1=$c
#+CONSTANTS: c=1



Emacs  : GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.18.9)
 of 2010-06-03 on xb-01.phx2.fedoraproject.org
Package: Org-mode version 7.7

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src org-babel-exp-inline-src-blocks))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )



[O] Bug: incorrect indentation of DEADLINE [7.7]

2011-10-02 Thread Paul Stansell
Hello,

I think I have found a very minor bug in the current org mode.  The is
a bug present when using:

  Org-mode version 7.7 with

  GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.18.9) of
  2010-06-03 on xb-01.phx2.fedoraproject.org


To reproduce the bug do:

Start emacs on this email file with
  emacs --no-init-file --load bug.el bug.org

Place the cursor on the TODO line below and press tab to expand the
entry.

Type C-c C-t

The DEALINE line is in indented by 1 space when it should not be.

Note that the presence of (setq org-log-done t) in bug.el causes the
indentation,
without this line there is no unwanted indentation.

Thanks for your help!




Emacs  : GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.18.9)
 of 2010-06-03 on xb-01.phx2.fedoraproject.org
Package: Org-mode version 7.7

current state:
==
(setq
 org-log-done 'time
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src org-babel-exp-inline-src-blocks))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )

(add-to-list 'load-path ~/local/share/emacs/site-lisp/org)
(require 'org-install)
(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))

;; The presence of this line causes the indent bug.
(setq org-log-done t)


bug.org
Description: Lotus Organizer


[O] Bug: Scheduled item appears in diary [7.8.03]

2012-01-31 Thread Paul Stansell
Hello,

I think I've found a bug in org-mode 7.8.03.  To reproduce do the following.

Start emacs with the attached files bug.el and schedule_in_agenda.org using

  emacs --no-init-file --load bug.el schedule_in_agenda.org

View the agenda by typing

  C-c a a

As far as I understand the documentation, item 1b should not appear
in the diary part of the agenda.  All other items seem to be behaving correctly.

Kind regards,

Paul Stansell



Output from M-x emacs-version RET


Emacs  : GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.18.9)
 of 2010-06-03 on xb-01.phx2.fedoraproject.org
Package: Org-mode version 7.8.03

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-agenda-files '(schedule_in_agenda.org)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-blank-before-new-entry nil
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src org-babel-exp-inline-src-blocks))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )

(add-to-list 'load-path ~/local/share/emacs/site-lisp/org)
(require 'org-install)

(global-set-key \C-ca 'org-agenda)

(setq org-agenda-files (quote
(
 schedule_in_agenda.org
 )
)
  )


schedule_in_agenda.org
Description: Lotus Organizer


[O] using gnuplot's splot and every commands on org-mode table data

2013-05-01 Thread Paul Stansell
Hello everyone,

I'd be grateful if someone would offer me advice on using gnuplot's
splot and every commands when plotting data from a table within
org-mode.

As far as I can tell, these gnuplot commands do not work properly
because org-mode exports empty fields in tables as  and gnuplot's
every and splot commands expect the data file to be formatted as a
datablock with blank lines marking the boundaries between datablocks.
(For the definition of a datablock, type help glossary at the
gnuplot prompt.)

I'm using org-mode version 8.0.2 and emacs version 24.2.1 on a
Fedora-18 system


To illustrate my point, consider a blocked datafile called block.dat
containing the following:

  1   1   2
  1   2   5
  1   3   10

  2   1   5
  2   2   8
  2   3   13

  3   1   10
  3   2   13
  3   3   18

For this file the gnuplot command

   #+begin_src gnuplot :var d=block.dat :results silent
 plot $d u 2:3 ev :::0::0,  u 2:3 ev :::1::1,  u 2:3 ev :::2::2
   #+end_src

shows three separate lines of different colours as gnuplot
recognises the datafile as blocked data.

Also, the following command produces a surface plot

   #+begin_src gnuplot :var d=block.dat :results silent
 splot $d u 1:2:3
   #+end_src

However, if I put the same data in the table below

   #+tblname: data
   | 1 | 1 |  2 |
   | 1 | 2 |  5 |
   | 1 | 3 | 10 |
   |   |   ||
   | 2 | 1 |  5 |
   | 2 | 2 |  8 |
   | 2 | 3 | 13 |
   |   |   ||
   | 3 | 1 | 10 |
   | 3 | 2 | 13 |
   | 3 | 3 | 18 |

and use the following plot command

   #+begin_src gnuplot :var d=data :results silent
 plot $d u 2:3 ev :::0::0,  u 2:3 ev :::1::1,  u 2:3 ev :::2::2
   #+end_src

the result is a plot of a single line of the same colour as gnuplot
joins all of the points in the data file.  This seems to be because
org-mode exports the table as

  x y z
  1   1   2
  1   2   5
  1   3   10
  
  2   1   5
  2   2   8
  2   3   13
  
  3   1   10
  3   2   13
  3   3   18

and gnuplot does not recognise this as a blocked data file because it
contains no blank lines.

The same problem occurs for

   #+begin_src gnuplot :var d=data :results silent
 splot $d u 1:2:3
   #+end_src

which does not produce a gridded surface plot.

Thanks for your help,

Paul



Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-05-07 Thread Paul Stansell
Eric,

What you suggest is indeed a good solution, so thank you very much for that!

I think it would still be nice, however, if someday the blank lines in
the org table would be exported as blank lines in the temporary text
file instead of as  (which seems to be the root of the problem).

Kind regards,

Paul

 Hi Paul,

 While I can't claim to fully follow your gnuplot examples, i would
 recommend using an intervening shell code block to parse the Org-mode
 table data into something that gnuplot will ingest.

 If I understand your use case correctly, then something like the
 following should work.



 If you really wanted to be fancy, gnuplot will let you specify shell
 transformations as part of the plotting command which would allow you to
 forego the intermediate code block.

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




Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-05-07 Thread Paul Stansell
Hi Eric,

If I change your example org file a little by adding row and column
names to the table as in the attached file I get the following
behaviour that I don't understand:  if I execute C-c on the shell
function the file /tmp/data.gnuplot has the format that gnuplot can
plot;  however, if I execute C-c on the gnuplot function the form of
/tmp/data.gnuplot is mangled with  and () so it can no longer be
plotted by the gnuplot command.

Can you shed any light on this?

Thanks,

Paul


splot.org
Description: Binary data


Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-05-07 Thread Paul Stansell
Hi Eric,

My view is that the removal of ''s will always be preferable for
gnuplot as it uses what it calls datablocks which are delimited by
blank lines (see, for example,
http://gnuplot.sourceforge.net/docs_4.2/node121.html and
http://gnuplot.sourceforge.net/docs_4.2/node61.html).

Paul



Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-05-08 Thread Paul Stansell
Hi Eric,

It seems to be the first hline that causes the problem.  For
example, if the table data in splot.org is replaced by

#+name: data
|| x |
|+---|
| r1 | 1 |

it gets exported correctly as

x
r1  1

by both the shell and gnuplot commands.

However,  if the data is replace by

#+name: data
|+---|
|| x |
| r1 | 1 |

it still gets exported correctly by the shell command but the gnuplot
command exports it as

hline
( x)
(r1 1)


Thanks for your help with this,

Paul


 Very weird,

 This does look like a bug to me.  Can you isolate where the value of
 data in your example is first assigned the wrong value?

 Thanks for reporting.  I will save your example for when I next have
 development time.

 Best,



Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-05-08 Thread Paul Stansell
Hi Eric,

In your last example are you illustrating the case of a data file with
missing data?  Replacing s with blank space in your example doesn't
really break the plot, it's just that gnuplot interprets the first
column of data as

1
2
3
16

6
7
4
9

and the second as

2
4
8


16
8
4
2

Gnuplot has a specific setting for handling missing values.  It's
common in gnuplot to use '?' to signify a missing value (type help
missing at the gnuplot prompt).  If, in your last example, you
replace the missing values with '?' (without the quotes) and then type
in gnuplot

  set datafile missing ?

and then plot the data with

  plot data.txt u 0:1, '' u 0:2

you'll see that gnuplot handles it properly.  Putting '?' in the
blanks cells of the org mode table in your last attachment and
plotting from within org mode gives a temporary data file containing
'?', which gnuplot also handles correctly as it must recognise ?
(with the quotes) as being a missing value.

But org mode's behaviour of inserting  in blank cells (instead of
actual blanks) does break the use of every in gnuplot which is
required by splot when plotting surfaces from data files (unless the
data files are in matrix format).  Also, inserting  breaks the use
of gnuplot's index which expects two blank lines to separate data
sets in a single file, but I've never used this facility.

I noticed that org mode writes table values of 'nan' and 'NaN' without
the double quotes, but, for example, 'MaM' is written with double
quotes, (as ''MaM') in the temporary data file.

Also, I think it's generally better to remove the double quotes from
around all strings exported by org mode for plotting by gnuplot as
they're generally not needed (exceptions are strings which contain
spaces which can be quoted so they are treated as a single entity by
gnuplot).  For example, there is a gnuplot demonstration script called
datastrings.dem which plots data from a file called ctg-y2.dat.  This
data file has unquoted month names in the first column that are
plotted as labels on the x-axis.

Paul



[O] unexpected appearance of x^2 in pdf file

2013-05-10 Thread Paul Stansell
Dear list,

I may be under a misapprehension, but I expected the pdf output
(created by C-c C-e l p) from the attached org file to show similar
results for both lines.  Instead, however, the simple

  x^2

outside of the verbatim environment puts the caret above the 2 even
though I have set

  #+OPTIONS: ^:nil

This seems to be because org-mode exports x^2 as x\^2 in the tex file.
 I think exporting it as x\^{}2 would give a better result.  Is there
another way to get the appearance I'm looking for without using the
verbatim environment?

Thanks for your advice,

Paul

PS. I'm using Emacs 24.2.1 with Org mode 8.0.2.


caret_symbol.org
Description: Binary data


Re: [O] unexpected appearance of x^2 in pdf file

2013-05-12 Thread Paul Stansell
Hi Nicolas,

Thanks for fixing that last problem, that's great!

I've also come across a couple of other unexpected results exporting
other latex equations to pdf.  Examples are given in the attached org
file.  Both are quite trivial with easy work-arounds.  In both cases,
because the embedded png equations (displayed by C-c C-x C-l) are
formatted correctly, the problem in the exported pdf file might go
unnoticed.

Regards,

Paul


equation_line_breaks.org
Description: Binary data


Re: [O] unexpected appearance of x^2 in pdf file

2013-05-12 Thread Paul Stansell
Nicolas,

 \[ x = y
  +1 \]

 \[ x = y
  + 1 \]

 This is to be expected. In the second case, the second line defines
 a list item, which has precedence over any LaTeX snippet.

Okay, I realised it was switching to the itemise environment, but I
didn't know it took precedence over the latex environment.

 \[ x = \begin{array}{cc}
   y  u \\
   z  v
 \end{array} \]

 \[ x =
\begin{array}{cc}
   y  u \\
   z  v
\end{array} \]

 I think this is because of a limitation on the number of lines a LaTeX
 snippet can span across (IIRC, 3 is the maximum).

Maybe, but I see the same problem with the following two line example

\[ x =
   \begin{array}{cc} z  v  \end{array} \]

 In both cases, I suggest to use LaTeX environments instead:

   \begin{equation*}
   x = y
   + 1
   \end{equation*}

Yes, I tried that, but as I understand it I need to
\usepackage{amsmath} to access the latex equation* environment.  But
then I get an error about Command \iint already defined.  I tried
the solution described at
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=alreadydef, but it
didn't work for me.

Anyway, never mind, these are all quite trivial points.

Thanks very much for your help,

Paul



Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-05-17 Thread Paul Stansell
Hi Eric,

Thanks for your work on this.  I've tried your latest changes and I
think they're a big improvement.

I've attached another org-mode file for you to try.  It illustrates
the use of double blank lines in the first table (called block_data)
to inform gnuplot that there're two separate data sets in the single
data file.  The first code block (gnuplot_1) plots these two data sets
as red and green surfaces.  It's really nice that gnuplot can now be
used in this way from within org-mode.

One slight drawback, however, is that there still doesn't seem to be a
way to specify missing values in the org table in the way they're
frequently used by gnuplot.  An illustration of what I mean by this is
given in the table block_data_missing in the attached org file.
You'll see that I've inserted two '?' characters for missing z-values.
 If you execute the second and third code blocks (gnuplot_2 and
gnuplot_3) you'll see that neither give the desired result.

If the block_data_missing table were exported exactly as it is except
for the removal of the '|' characters and set datafile missing '?'
were specified in the gnuplot script this would enable gnuplot to plot
the red and green surfaces with the missing values.  To see this try
executing the last code block (gnuplot_4) which plots the data which
is first cleaned by the shell command you suggested in a previous
post.  This would also remove the need to have the :missing header
argument.

Kind regards,

Paul


gnuplot2.org
Description: Binary data


Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-05-17 Thread Paul Stansell
Hi Eric,

That's seems perfect now; I can't see any other issues.  Thanks!

Kind regards,

Paul



[O] #+ATTR_LaTeX no longer honoured

2013-05-19 Thread Paul Stansell
Hello,

I've noticed that #+ATTR_LaTeX seems to be no longer honoured (I'm
using release_8.0.3-133-ga5872)

This is demonstrated for the attached org file.  It's the exact
example from http://orgmode.org/manual/Images-in-LaTeX-export.html.

I expect the exported latex file (C-c C-e l l) to contain something like

  \includegraphics[width=5cm,angle=90]{./dummy.png}

but I instead it contains

  \includegraphics[width=.9\linewidth]{./dummy.png}

Thanks,

Paul

PS. I'm using Emacs 24.2.1 and I tested with the minimal org-mode
set-up from http://orgmode.org/manual/Feedback.html.


attr_latex.org
Description: Binary data


Re: [O] #+ATTR_LaTeX no longer honoured

2013-05-23 Thread Paul Stansell
 here's the line you're looking for:
 
 #+ATTR_LaTeX: :width 5cm :options angle=90

Thanks very much, that does what I want.

Also, regarding the manual being up-to-date or not, I took my instructions
from the page at http://orgmode.org/manual/Images-in-LaTeX-export.html which
does seem out of date as it says one should use

  #+ATTR_LaTeX: width=5cm,angle=90

Regards,

Paul







[O] Very minor bug in undo applied to org table

2013-07-01 Thread Paul Stansell
Hello,

This seems like a very minor bug, but I thought I'd report it anyway
in case it has wider ramifications that I'm unaware of.

Create an org file with the following lines:

| 1 |
#+TBLFM: $1=2

Open it and type C-c C-c on the TBLFM line.  This replaces the '1' in
the table with a '2'.  Now type C-_ (for undo).  Not only does the
'2' revert to a '1', but a second line reading '#+TBLFM: $1=2' is
inserted directly under the first.  An second C-_ removes this second
TBLFM line.

Regards,

Paul

PS. I'm using Emacs 24.2.1 and Org-mode release_8.0.3-331-gf7e6f1 and
I tested with the minimal org-mode set-up from
http://orgmode.org/manual/Feedback.html.



[O] Incorrect sum of times in table

2013-07-01 Thread Paul Stansell
Hello,

I noticed a case where the sum of two times in a table does not give
the correct answer.

To see this, create an org file with the following lines:

| 0:00:31 |
| 0:00:30 |
|-|
| |

Open it and type C-+ C-y in the empty cell of the table.  The answer
inserted is 0:01:00 instead of 0:01:01.

Regards,

Paul

PS. I'm using Emacs 24.2.1 and Org-mode release_8.0.3-331-gf7e6f1 and
I tested with the minimal org-mode set-up from
http://orgmode.org/manual/Feedback.html.



[O] Help with babel and gnuplot

2013-07-01 Thread Paul Stansell
Hello,

I hesitate to ask this question as I feel I should be able to work it
out myself, but I don't seem to be able to.

I'm trying to get gnuplot working through babel.

I'm using Emacs 24.2.1 and I have Org-mode release_8.0.3-331-gf7e6f1
installed in ~/org-mode.

I'm running

 /usr/bin/emacs -Q -l minimal-org.el test.org

where minimal-org.el contains just

  (setq debug-on-error t
debug-on-signal nil
debug-on-quit nil)

  (add-to-list 'load-path (expand-file-name ~/org-mode/lisp))

  (org-babel-do-load-languages
'org-babel-load-languages
'((gnuplot . t)))

and test.org contains just

  #+begin_src gnuplot :results silent
plot x
  #+end_src

When I press C-c C-c inside the source block I get

  Debugger entered--Lisp error: (file-error Cannot open load file gnuplot)
require(gnuplot)
org-babel-execute:gnuplot(plot x ...
org-babel-execute-src-block(nil)
org-babel-execute-src-block-maybe()
org-babel-execute-maybe()
org-babel-execute-safely-maybe()
run-hook-with-args-until-success(org-babel-execute-safely-maybe)
org-ctrl-c-ctrl-c(nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)

I've been assuming it's a path issue, but
~/org-mode/lisp/ob-gnuplot.elc is present and I have gnuplot installed
in /usr/bin/gnuplot.  Also, other languages (eg. python) work okay
through babel.

Any advice would be greatly appreciated.

Kind regards,

Paul



Re: [O] fill paragraph: math and latex environments

2013-07-01 Thread Paul Stansell
Nicolas Goaziou n.goaziou at gmail.com writes:

 
 Hello,
 
 azw at fastmail.fm (Albert Z. Wang) writes:
 
  Thanks for the clarification!  Is there an easy way to have them be
  treated as full-fledged environments?  I usually prefer to use the above
  for unnumbered display equations since it reduces visual clutter and
  looks closer to the intent.
 
 No, there's no easy way.
 
 Making \[...\] an element would mean that \[...\] cannot exist anymore
 within a paragraph. I'm not sure it's worth it.
 
 Also, I think it's good, in this case, to have both an inlined and
 a non-inlined version for the same thing.
 
 Regards,
 


Hi Nicolas,

I hope you don't mind me giving my view on this so long after the initial
posts, but I been trying, without success, to get fill-paragraph to
recognise \[...\] as boundaries to it's function.

You say in your post

 Making \[...\] an element would mean that \[...\] cannot exist anymore
 within a paragraph. I'm not sure it's worth it.
 
 Also, I think it's good, in this case, to have both an inlined and
 a non-inlined version for the same thing.

In Lamport's book on Latex he explains that \[...\] is for display style
maths, that is, for maths that is not inside a paragraph but presented on
it's own line.  Inside a paragraph one should use $...$ or \(...\) as they
are for inline equations (and Latex treats them the same).  For display
style maths Latex uses

\begin{displaymath}
  ...
\end{displaymath}

and, for less typing,

\[
  ...
\] 

and both are treated the same, ie., both produce the exact same output in
the processed latex document.

This being the case, my wish would be to see org mode treat

\[
  ...
\] 

the same as

\begin{displaymath}
  ...
\end{displaymath}

and not fill past it's boundaries.

Kind regards,

Paul




Re: [O] fill paragraph: math and latex environments

2013-07-03 Thread Paul Stansell
Nicolas,

Thanks for your reply.

 If we allow \[...\] constructs to be an element, they cannot be
 recognized as such within paragraphs. So

   Some text \[1+1\] and some other text

 will not be recognized anymore, even though any latex editing mode
 supports it. Again, I think it's not worth loosing it.

 Also, using \begin{...}...\end{...} environments is not really an issue
 with editing facilities in Emacs (e.g., yasnippets).

I'm sorry, but I don't fully understand your explanation as I don't
know what you mean by an element in this context?

Also, am I missing something about the latex?  Do you want to be able
to use display style maths inside a sentence (ie. avoid placing the
maths on a new line but have it formatted in display style)?  That
would seem strange as that's not what it's for.  I don't, therefore,
see why anyone would want to write

  Some text \[1+1\] and some other text

as in the resulting processed document it will look like

  Some text
 1+1
  and some other text

I think one should instead write

Some text \(1+1\) and some other text

or

   Some text $1+1$ and some other text

which, in the processed document, will look like

Some text 1+1 and some other text

If someone wants a display maths equation they could write it in their
org file as

  Some text
  \[
 1+1
  \]
   and some other text

so that the look of the org file resembles more closely that of the
processed document.

 Also, using \begin{...}...\end{...} environments is not really an issue
 with editing facilities in Emacs (e.g., yasnippets).

I agree with you there.  It's not a big deal type, but I do think

\[
1+1
\[

looks a lot nicer and cleaner in the org file than

\begin{displaymath}
1+1
\end{displaymath}

Kind regards,

Paul



[O] Help with babel and gnuplot

2013-07-12 Thread Paul Stansell
Hello,

I hesitate to ask this question as I feel I should be able to work it
out myself, but I don't seem to be able to.

I'm trying to get gnuplot working via babel.

I'm using Emacs 24.2.1 and I have Org-mode release_8.0.6-329-g0c233a
installed in ~/org-mode.

I'm running

 /usr/bin/emacs -Q -l minimal-org.el test.org

where minimal-org.el contains just

  (setq debug-on-error t
debug-on-signal nil
debug-on-quit nil)

  (add-to-list 'load-path (expand-file-name ~/org-mode/lisp))

  (org-babel-do-load-languages
'org-babel-load-languages
'((gnuplot . t)))

and test.org contains just

  #+begin_src gnuplot :results silent
plot x
  #+end_src

When I press C-c C-c inside the source block I get

  Debugger entered--Lisp error: (file-error Cannot open load file gnuplot)
require(gnuplot)
org-babel-execute:gnuplot(plot x ...
org-babel-execute-src-block(nil)
org-babel-execute-src-block-maybe()
org-babel-execute-maybe()
org-babel-execute-safely-maybe()
run-hook-with-args-until-success(org-babel-execute-safely-maybe)
org-ctrl-c-ctrl-c(nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)

I've been assuming it's a path issue, but
~/org-mode/lisp/ob-gnuplot.elc is present and I have gnuplot installed
in /usr/bin/gnuplot.

Any advice would be greatly appreciated.

Kind regards,

Paul



Re: [O] Help with babel and gnuplot

2013-07-12 Thread Paul Stansell
Hi Eric,

Thanks for your quick reply and helpful pointer!  I got it to work.

Paul


On 12 July 2013 20:05, Eric Schulte schulte.e...@gmail.com wrote:
 You need to install gnuplot.el, which looks like it can be installed
 with ELPA.

 Cheers,

 Paul Stansell paulstans...@gmail.com writes:

 Hello,

 I hesitate to ask this question as I feel I should be able to work it
 out myself, but I don't seem to be able to.

 I'm trying to get gnuplot working via babel.

 I'm using Emacs 24.2.1 and I have Org-mode release_8.0.6-329-g0c233a
 installed in ~/org-mode.

 I'm running

  /usr/bin/emacs -Q -l minimal-org.el test.org

 where minimal-org.el contains just

   (setq debug-on-error t
 debug-on-signal nil
 debug-on-quit nil)

   (add-to-list 'load-path (expand-file-name ~/org-mode/lisp))

   (org-babel-do-load-languages
 'org-babel-load-languages
 '((gnuplot . t)))

 and test.org contains just

   #+begin_src gnuplot :results silent
 plot x
   #+end_src

 When I press C-c C-c inside the source block I get

   Debugger entered--Lisp error: (file-error Cannot open load file 
 gnuplot)
 require(gnuplot)
 org-babel-execute:gnuplot(plot x ...
 org-babel-execute-src-block(nil)
 org-babel-execute-src-block-maybe()
 org-babel-execute-maybe()
 org-babel-execute-safely-maybe()
 run-hook-with-args-until-success(org-babel-execute-safely-maybe)
 org-ctrl-c-ctrl-c(nil)
 call-interactively(org-ctrl-c-ctrl-c nil nil)

 I've been assuming it's a path issue, but
 ~/org-mode/lisp/ob-gnuplot.elc is present and I have gnuplot installed
 in /usr/bin/gnuplot.

 Any advice would be greatly appreciated.

 Kind regards,

 Paul


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



[O] elpa's copy of org-version.el

2013-07-18 Thread Paul Stansell
Hello,

If I install org from elpa the file org-version.el is missing and
I get the following:

  M-x org-version
Org-mode version N/A (N/A !!check installation!! @
/Home/ps/.emacs.d/elpa/org-20130715.1743/)

and

  M-x locate-library  org-version
No library org-version in search path

However, the following give the expected results:

  M-x locate-library org
Library is file ~/.emacs.d/elpa/org-20130715.1743/org.elc

  M-x locate-library org-install
Library is file ~/.emacs.d/elpa/org-20130715.1743/org-install.el


If I install org from git://orgmode.org/org-mode.git it includes the
file org-version.el and all of the above commands work okay, eg,

  M-x locate-library  org-version
Library is file ~/local/emacs/site-lisp/org-git/org-version.el

Is something wrong here?

Thanks,

Paul



Re: [O] elpa's copy of org-version.el

2013-07-20 Thread Paul Stansell
Pierre T├ęchoueyres pierre.techoueyres at free.fr writes:

 
 
 Ok I've found *my* mistake :
 Melpa provides an org-mode from GIT too.
 Look like this version is buggy.

Thanks for your help with this, but I'm still not entirely sure what I
should do.

Are you saying that when I install org via elpa I should _not_ install this one:

  org  20130720 installed  Outline-based notes management and organizer
[git]

because it's from git?  Should I be looking for an org installation from
github?  I can't see one in my package list.  Should I uninstall my broken
org, disable melpa to try again to install org from elpa?

Thanks








Re: [O] elpa's copy of org-version.el

2013-07-20 Thread Paul Stansell
Yes, that is helpful.  Thanks very much!





Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-08-30 Thread Paul Stansell
Dear Eric,

Recently you made some nice changes to the way gnuplot plots surface
data from org tables.  Your changes are present on
git://orgmode.org/org-mode.git, but I switched to using ELPA recently
and I've just noticed that your changes are not yet present on
http://orgmode.org/elpa/.  Do you know if it's just because the latter
lags the former by 3 months or more?

As far as I can tell, I'm using the following versions:

  From git: org-version: 8.0.7 (release_8.0.7-406-g4b7490)
  From ELPA: Org-mode version 8.0.7 (8.0.7-7-g9e5104-elpa (org-20130826)

Kind regards,

Paul

On 17 May 2013 22:33, Paul Stansell paulstans...@gmail.com wrote:
 Hi Eric,

 That's seems perfect now; I can't see any other issues.  Thanks!

 Kind regards,

 Paul



Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-09-23 Thread Paul Stansell
Hi Eric,

There appears to be a slight bug in the way gnuplot handles blocked
data with missing entries.

An example is provided in the org script at then end of this note.

In the code block gnuplot_1 the use of ':missing ?' seems to cause
the exported data file to lack the blanks lines that are essential
for the plot.  The plot from this code block is incorrect.

In gnuplot_2 ':missing' is not used, but instead 'set datafile missing
?' is set explicitly in the gnuplot code block.  The plot from this
code block is correct.

Surely gnuplot_1 should produce exactly the same plot as gnuplot_2.

Kind regards,

Paul


Exported data file does not include blank lines.
#+name: gnuplot_1
#+begin_src gnuplot :var d=block_data_missing :missing ? :results silent
  set ticslevel 0
  splot d index 0 u 1:2:3 w lp pt 6 ps 5, d index 1 u 1:2:3 w lp pt 6 ps 5
#+end_src

Exported data file includes blank lines.
#+name: gnuplot_2
#+begin_src gnuplot :var d=block_data_missing :results silent
  set datafile missing ?
  set ticslevel 0
  splot d index 0 u 1:2:3 w lp pt 6 ps 5, d index 1 u 1:2:3 w lp pt 6 ps 5
#+end_src

#+name: block_data_missing
| 1 | 1 |  2 |
| 1 | 2 |  5 |
| 1 | 3 | 10 |
|   |   ||
| 2 | 1 |  5 |
| 2 | 2 | 10 |
| 2 | 3 | 13 |
|   |   ||
| 3 | 1 | 10 |
| 3 | 2 |  ? |
| 3 | 3 | 18 |
|   |   ||
|   |   ||
| 1 | 1 | 12 |
| 1 | 2 | 15 |
| 1 | 3 | 20 |
|   |   ||
| 2 | 1 | 15 |
| 2 | 2 | 18 |
| 2 | 3 | 23 |
|   |   ||
| 3 | 1 |  ? |
| 3 | 2 | 23 |
| 3 | 3 | 28 |







Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-09-24 Thread Paul Stansell
Hi Eric,

 Currently the :missing header argument for gnuplot code blocks does two
 things.  It adds the set datafile missing... line to the code block
 body *and* it binds `*org-babel-gnuplot-missing*' to the value of the
 :missing header argument when the datafile is written, so empty table
 cells are replaced with the value of the :missing header argument.

Thanks for the explanation.

 The reason you're not getting a blank line is because it is replaced
 with three missing values, in this case ? ? ?.

 Do you think this behavior should be changed or split between two header
 arguments?

I think the :missing header should not replace empty fields in an org
table by the missing character as blank lines have a special meaning
in gnuplot.  To fully use the versatility of gnuplot one needs blank
lines and missing values.  The set datafile missing command sets a
specific character string to be treated as a missing value.  The
character string can even be a number, eg. set datafile missing -1.

It says under gnuplot's help missing that: There is no default
character for `missing`, but in many cases any non-parsible string of
characters found where a numerical value is expected will be treated
as missing data.

My view is that for the purposes of exporting org tables for plotting
with gnuplot all blank entries in the org table (fields and whole
lines) should be exported as blanks, and all characters (letters or
numerical digits etc.) should be exported exactly as they appear in
the table (without any additional surrounding quotes being added).

Maybe I'm missing the point of the :missing header, but I find it
easier and clearer to include the datafile missing command in the
gnuplot code block.  I don't really see a need for the :missing
header.  Maybe the need stems from wanting to be able to use different
plotting packages to plot the same org table data, but it's not clear
to me.

Kind regards,

Paul



Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-09-25 Thread Paul Stansell
 I agree that it is easier and more clear to include set datafile
 missing... in the body of a gnuplot code block.  I *do* think that the
 :missing header argument has value specifically as a way to replace
 missing values in the original table data.

 I've changed the behavior of the :missing header argument so that it
 *only* replaces missing values in table data and does not add a set
 datafile missing... line to the code block.

If I understand you correctly I think that sounds like a good
solution.  As I understand it, your recent changes mean that if the
:missing header is not used the table data will be exported as is,
ie, with no changes, replacements or additions to any of the
characters in the table cells; however, if the ':missing ?' header
is used any empty table cells will be exported as ? (with no quotes)
and one needs to explicitly add

  set datafile missing ?

to the code block.  In fact, it's not actually necessary to add this
line to the code block as gnuplot will treat the non-parsible ?
string as missing data without the line.

Regards,

Paul



[O] Bug: #+STARTUP: content shows text as well as headlines [8.2.5h (8.2.5h-elpa @ ~/.emacs.d/elpa/org/)

2014-02-06 Thread Paul Stansell
Hi,

Opening an org file containing the line

  #+STARTUP: content

shows the text and headlines.

This STARTUP line used to cause an org file to open showing just the
section headlines (like a contents page). According to the
documentation at
http://orgmode.org/manual/In_002dbuffer-settings.html, it still
should.

I've attached a simple org file as an example.

Thanks,

Paul


Your bug report will be posted to the Org-mode mailing list.


Emacs  : GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9)
 of 2012-09-21 on CRMDA020L
Package: Org-mode version 8.2.5h (8.2.5h-elpa @ /Home/ps/.emacs.d/elpa/org/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

* First header

  Some text

** First subheader

   Some more text

* Second header

  Some text

** Second subheader

   Some more text

#+STARTUP: content ; all headlines
;#+STARTUP: showall ; no folding of any entries


Re: [O] Bug:

2014-03-06 Thread Paul Stansell
Yes, it's fixed now, thanks.




[O] Bug: org-catch-invisible-edits [8.2.5h (8.2.5h-30-gdd810b-elpa @ ~/.emacs.d/elpa/org/)]

2014-03-06 Thread Paul Stansell
Hi,

Today I came across org-catch-invisible-edits, but I'm struggling to
get it to work.  Since I've never had it working it's possible that
I'm misunderstanding it or doing something wrong, or maybe it's
broken.

In my .emacs file I put

  (setq org-catch-invisible-edits 'show)

but both 'M-x query-replace' and 'M-x replace-string' still replace
hidden strings in folded sections of an org file.

Thanks,

Paul

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-catch-invisible-edits 'show
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )



Re: [O] Bug: org-catch-invisible-edits [8.2.5h (8.2.5h-30-gdd810b-elpa @ ~/.emacs.d/elpa/org/)]

2014-03-13 Thread Paul Stansell
Hi Bastien,

Thanks for that info on org-catch-invisible-edits.  It wasn't clear to me
as the documentation implies that it helps when you inadvertently edit an
invisible part of the buffer, but it seems that the edits have to be
results of key presses (not yanks or replaces, etc).

I'm not sure how useful I would find the function.  I'd like a way to stop
any edits (including yanks etc.) on invisible parts of a buffer.

I experimented with org-catch-invisible-edits by typing and deleting
characters in folded sections of a simple org file.  It seem to work well
if the insertions or deletions occur at one hidden level down.  In this
case it opens the folded section and shows the edit after a short delay.
But if I edit or delete two hidden sections down it doesn't seem to work
properly as it only open the first hidden section and so the edit, which is
another level down, is not shown.

For example, for the org file below, editing the line level 2 when both
Section 1 and Section 2 are folded (hidden) causes only Section 1 to
be unfolded with Section 2 still folded inside it.  Thus, the edits are
not visible.

* section 1
  level 1
** section 2
   level 2

Kind regards,

Paul



On 13 March 2014 14:24, Bastien b...@gnu.org wrote:

 Hi Paul,

 Paul Stansell paulstans...@gmail.com writes:

  Today I came across org-catch-invisible-edits, but I'm struggling to
  get it to work.  Since I've never had it working it's possible that
  I'm misunderstanding it or doing something wrong, or maybe it's
  broken.
 
  In my .emacs file I put
 
(setq org-catch-invisible-edits 'show)
 
  but both 'M-x query-replace' and 'M-x replace-string' still replace
  hidden strings in folded sections of an org file.

 The name of the option is a bit misleading: your setup will catch
 *insertions* not editions.  To put it simply, it's only active when
 inserting a character, not when using general-purpose editing commands
 like replace-string.

 I'm not sure it's worth using another name, though.

 --
  Bastien



[Orgmode] Bug: Schedule in agenda gives wrong overdue days [7.4]

2011-01-07 Thread Paul Stansell
Dear Sirs,

For an org file containing just the two following lines:

* TODO Water plants at work
  SCHEDULED: 2010-12-27 Mon .+1w

creating an agenda with C-c a a on 2011-01-06 displays the following
three lines:

Day-agenda (W01):
Thursday6 January 2011
  org_mode_bug:Sched. 4x:  TODO Water plants at work

I expected is for the schedule overdue days to be 11x instead of 4x.

I've attached relevant files to reproduce this result with something like

  emacs --no-init-file --load bug.el bug.org

Kind regards,

Paul Stansell



Emacs  : GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.18.9)
 of 2010-06-03 on xb-01.phx2.fedoraproject.org
Package: Org-mode version 7.4

current state:
==
(setq
 org-log-done 'time
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-agenda-files '(~/org/org_mode_bug/org_mode_bug.org)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )



;; emacs --no-init-file --load bug.el bug.org

(add-to-list 'load-path ~/local/share/emacs/site-lisp)
(require 'org-install)
(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
(define-key global-map \C-cl 'org-store-link)
(define-key global-map \C-ca 'org-agenda)
(setq org-log-done t)

(setq org-agenda-files (list ~/org/org_mode_bug/bug.org))


bug.org
Description: Lotus Organizer
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[O] Bug: org-id-link-to-org-use-id causes double tangle output [8.2.10 (8.2.10-elpa @ ~/.emacs.d/elpa/org/)]

2014-11-05 Thread Paul Stansell
With the following org file:

* Section
#+begin_src R :tangle file.R
  x - 1
#+end_src

and

  (setq org-id-link-to-org-use-id t)

the first time tangling is done with C-c C-v t the ID property is
added automatically and twice the expected output is written to file.R,
that is,

  x - 1

  x - 1

Subsequent tangling with C-c C-v t produces, as expected, a single copy
of the output to file.R.



Emacs  : GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9)
 of 2012-09-21 on CRMDA020L
Package: Org-mode version 8.2.10 (8.2.10-elpa @ /Home/ps/.emacs.d/elpa/org/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-id-link-to-org-use-id t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )



[O] Bug: Explicit <6> table column width [9.0.9 (release_9.0.9-754-g940c90)]

2017-08-13 Thread Paul Stansell
Hello,

I think there might be a something wrong when explicitly setting a width
of a table column.

For example, for this table

  |---+--|
  |   | <6>  |
  | 1 | one  |
  | 2 | This is a long chunk of text |
  | 3 | three|
  |---+--|

when I press  in the table the view changes to

  |---+--|
  |   | <6>  |
  | 1 | one  |
  | 2 | This i |
  | 3 | three|
  |---+--|

and when I press C-c the view toggles between

  |---+|
  |   | <6>|
  | 1 | one|
  | 2 | This is a long chunk of text |
  | 3 | three  |
  |---+|

and

  |---+--|
  |   | <6>  |
  | 1 | one  |
  | 2 | This is a long chunk of text |
  | 3 | three|
  |---+--|


Based on previous versions of org mode, I expect to see

  |---+|
  |   | <6>|
  | 1 | one|
  | 2 | This=> |
  | 3 | three  |
  |---+|

and

  |---+--|
  |   | <6>  |
  | 1 | one  |
  | 2 | This is a long chunk of text |
  | 3 | three|
  |---+--|


Thanks,

Paul



Emacs  : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.23)
 of 2015-08-26 on localhost.localdomain
Package: Org mode version 9.0.9 (release_9.0.9-754-g940c90)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-show-block-all append
local] 5
   "\n\n(fn)"]
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-babel-show-result-all
append local] 5
   "\n\n(fn)"]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("id" :follow org-id-open)
   ("rmail" :follow org-rmail-open :store org-rmail-store-link)
   ("mhe" :follow org-mhe-open :store org-mhe-store-link)
   ("irc" :follow org-irc-visit :store org-irc-store-link)
   ("info" :follow org-info-open :export org-info-export :store
org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-store-link)
   ("docview" :follow org-docview-open :export
org-docview-export :store
org-docview-store-link)
   ("bibtex" :follow org-bibtex-open :store
org-bibtex-store-link)
   ("bbdb" :follow org-bbdb-open :export org-bbdb-export
:complete
org-bbdb-complete-link :store org-bbdb-store-link)
   ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs")
   ("doi" :follow org--open-doi-link)
   ("elisp" :follow org--open-elisp-link)
   ("file" :complete org-file-complete-link)
   ("ftp" :follow (lambda (path) (browse-url (concat "ftp:"
path
   ("help" :follow org--open-help-link)
   ("http" :follow (lambda (path) (browse-url (concat "http:"
path
   ("https" :follow (lambda (path) (browse-url (concat "https:"
path
   ("mailto" :follow (lambda (path) (browse-url (concat "mailto:;
path
   ("news" :follow (lambda (path) (browse-url (concat "news:;
path
   ("shell" :follow org--open-shell-link))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )


[O] Bug: Latex math mode not set in footnotes [9.0.9 (9.0.9-68-g492420-elpa @ /Home/ps/.emacs.d/elpa/org/)]

2017-08-12 Thread Paul Stansell
Hello,

Latex math mode is not set in a footnote when exporting an org file to
tex or pdf.  Below and attached is a simple example.

Thanks

---cut here--
* Example

  When exporting to pdf math $\hat{x}$ is okay in the main text but
  not in this footnote.[fn:footnote_1: Math $\hat{x}$.]
---cut here--


Emacs  : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.23)
 of 2015-08-26 on localhost.localdomain
Package: Org mode version 9.0.9 (9.0.9-68-g492420-elpa @
/Home/ps/.emacs.d/elpa/org/)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-show-block-all append local] 5
   "\n\n(fn)"]
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-babel-show-result-all
append local] 5
   "\n\n(fn)"]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("id" :follow org-id-open)
   ("rmail" :follow org-rmail-open :store org-rmail-store-link)
   ("mhe" :follow org-mhe-open :store org-mhe-store-link)
   ("irc" :follow org-irc-visit :store org-irc-store-link)
   ("info" :follow org-info-open :export org-info-export :store
org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-store-link)
   ("docview" :follow org-docview-open :export
org-docview-export :store
org-docview-store-link)
   ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
   ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete
org-bbdb-complete-link :store org-bbdb-store-link)
   ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs")
   ("doi" :follow org--open-doi-link)
   ("elisp" :follow org--open-elisp-link)
   ("file" :complete org-file-complete-link)
   ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path
   ("help" :follow org--open-help-link)
   ("http" :follow (lambda (path) (browse-url (concat
"http:" path
   ("https" :follow (lambda (path) (browse-url (concat
"https:" path
   ("mailto" :follow (lambda (path) (browse-url (concat
"mailto:; path
   ("message" :follow
(lambda (path) (browse-url (concat "message:" path
   ("news" :follow (lambda (path) (browse-url (concat
"news:; path
   ("shell" :follow org--open-shell-link))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )


bug.org
Description: Lotus Organizer


[O] Bug: python code block single import line [9.0.9 (release_9.0.9-754-g940c90)]

2017-08-13 Thread Paul Stansell
Hello,

When executing the python code block

  #+begin_src python :session python1
import numpy as np
  #+end_src

I get this error in my python buffer

  Python 3.5.1 |Anaconda 2.5.0 (64-bit)| (default, Dec  7 2015, 11:16:01)
  [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> >>> >>> import numpy as np
  >>>
  open('/tmp/babel-5320QCO/python-5320y31', 'w').write(str(_))


  'org_babel_python_eoe'
  >>> >>> Traceback (most recent call last):
File "", line 1, in 
  NameError: name '_' is not defined
  >>> >>> >>> 'org_babel_python_eoe'
  >>>

However, the following code block does not give an error:

  #+begin_src python :session python2
import numpy as np
1
  #+end_src


Thanks,

Paul


Emacs  : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.23)
 of 2015-08-26 on localhost.localdomain
Package: Org mode version 9.0.9 (release_9.0.9-754-g940c90)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-show-block-all append
local] 5
   "\n\n(fn)"]
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-babel-show-result-all
append local] 5
   "\n\n(fn)"]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el")
("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("id" :follow org-id-open)
   ("rmail" :follow org-rmail-open :store org-rmail-store-link)
   ("mhe" :follow org-mhe-open :store org-mhe-store-link)
   ("irc" :follow org-irc-visit :store org-irc-store-link)
   ("info" :follow org-info-open :export org-info-export :store
org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-store-link)
   ("docview" :follow org-docview-open :export
org-docview-export :store
org-docview-store-link)
   ("bibtex" :follow org-bibtex-open :store
org-bibtex-store-link)
   ("bbdb" :follow org-bbdb-open :export org-bbdb-export
:complete
org-bbdb-complete-link :store org-bbdb-store-link)
   ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs")
   ("doi" :follow org--open-doi-link)
   ("elisp" :follow org--open-elisp-link)
   ("file" :complete org-file-complete-link)
   ("ftp" :follow (lambda (path) (browse-url (concat "ftp:"
path
   ("help" :follow org--open-help-link)
   ("http" :follow (lambda (path) (browse-url (concat "http:"
path
   ("https" :follow (lambda (path) (browse-url (concat "https:"
path
   ("mailto" :follow (lambda (path) (browse-url (concat "mailto:;
path
   ("news" :follow (lambda (path) (browse-url (concat "news:;
path
   ("shell" :follow org--open-shell-link))
 org-babel-load-languages '((python . t))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )


Re: [O] Bug: Clock times not summed correctly between years [9.0.9 (9.0.9-82-gb862c2-elpa @ ~/.emacs.d/elpa/org/)]

2018-01-07 Thread Paul Stansell
I see that the exact same "bug" was reported at the start of 2016 by
David Bremner.  Personally, I feel that fewer people would be confused
by this if the default value was set to "untilnow".

I also realised that the full list of values that I can use for
org-clock-display-default-range is described in org-clock.el.

By the way, you guys are brilliant and I thank you for your work on
org mode (which I'd struggle to live without now that I'm so dependent
on it).


Re: [O] Bug: Clock times not summed correctly between years [9.0.9 (9.0.9-82-gb862c2-elpa @ ~/.emacs.d/elpa/org/)]

2018-01-06 Thread Paul Stansell
Hello Nicolas,

Thanks for that tip, I was totally unaware of that option (it doesn't seem
to be mentioned in the user documentation, eg, it's not mentioned on
https://orgmode.org/manual/Clocking-commands.html).

I do wonder why the default range should be set at the current year and not
simply over the full range of clocked times in a heading.

Kind regards,

Paul



On 7 January 2018 at 00:32, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Hello,
>
> Paul Stansell <paulstans...@gmail.com> writes:
>
> > The sum of the clock time seems to be summing just times in the current
> > year.  In the example below typing C-c C-x C-d in the "Example" section
> > displays "1:00" instead of "2:00" on the heading line.  The clocktable
> > computes the sum correctly as "2:00".
>
> See `org-clock-display-default-range'.
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Bug: Clock times not summed correctly between years [9.0.9 (9.0.9-82-gb862c2-elpa @ ~/.emacs.d/elpa/org/)]

2018-01-06 Thread Paul Stansell
Hello,

The sum of the clock time seems to be summing just times in the current
year.  In the example below typing C-c C-x C-d in the "Example" section
displays "1:00" instead of "2:00" on the heading line.  The clocktable
computes the sum correctly as "2:00".

Thanks

# Start Example 
#+BEGIN: clocktable :maxlevel 2 :scope file
#+CAPTION: Clock summary at [2018-01-06 Sat 21:57]
| Headline | Time   |
|--+|
| *Total time* | *2:00* |
|--+|
| Example  | 2:00   |
#+END:

* DONE Example
  :END:
  :CLOCK:
  CLOCK: [2018-01-06 Sat 20:00]--[2018-01-06 Sat 20:30] =>  0:30
  CLOCK: [2018-01-06 Sat 19:30]--[2018-01-06 Sat 20:00] =>  0:30
  CLOCK: [2017-01-06 Fri 20:00]--[2017-01-06 Fri 20:30] =>  0:30
  CLOCK: [2017-01-06 Fri 19:30]--[2017-01-06 Fri 20:00] =>  0:30
  :END:

# End Example --




Emacs  : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.23)
 of 2015-08-26 on localhost.localdomain
Package: Org mode version 9.0.9 (9.0.9-82-gb862c2-elpa @ ~/.emacs.d/elpa/org/)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-show-block-all append local] 5
   "\n\n(fn)"]
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-babel-show-result-all
append local] 5
   "\n\n(fn)"]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("id" :follow org-id-open)
   ("rmail" :follow org-rmail-open :store org-rmail-store-link)
   ("mhe" :follow org-mhe-open :store org-mhe-store-link)
   ("irc" :follow org-irc-visit :store org-irc-store-link)
   ("info" :follow org-info-open :export org-info-export :store
org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-store-link)
   ("docview" :follow org-docview-open :export
org-docview-export :store
org-docview-store-link)
   ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
   ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete
org-bbdb-complete-link :store org-bbdb-store-link)
   ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs")
   ("doi" :follow org--open-doi-link)
   ("elisp" :follow org--open-elisp-link)
   ("file" :complete org-file-complete-link)
   ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path
   ("help" :follow org--open-help-link)
   ("http" :follow (lambda (path) (browse-url (concat
"http:" path
   ("https" :follow (lambda (path) (browse-url (concat
"https:" path
   ("mailto" :follow (lambda (path) (browse-url (concat
"mailto:; path
   ("message" :follow
(lambda (path) (browse-url (concat "message:" path
   ("news" :follow (lambda (path) (browse-url (concat
"news:; path
   ("shell" :follow org--open-shell-link))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )