bug#50555: [BUG] Org Latex export doesn't handle src blocks correctly

2021-09-18 Thread Younes Ben El

Daniel Fleischer  writes:

> Here is the hint: since "minted" is using a python package (pygments) for
> the highlighting, one need to add the "-shell-escape" to the call. Other
> than that, everything works as planned. Since it's a specific
> configuration for using "minted", I'll add a comment in the manual.
>
> If you feel that there is still an issue with the [], please provide an
> emacs -Q recipe that shows it, after adding the "-shell-escape" flag.

Ah, That's the deal. Updating The Manual Will do the trick Thanks for
taking time and looking up at this issue .


bug#50555: [BUG] Org Latex export doesn't handle src blocks correctly

2021-09-18 Thread Younes Ben El
I Apologize for the previous mail, seems like it didn't go through
correctly .
Actually it does compile and produces a pdf file , however there's some
issue with it as it doesn't display the code_block.
if we set our emacs config to
#+begin_src emacs-lisp
(require 'ox-latex)
(setq org-latex-listings 'minted)
#+end_src
Then Set In Our org file
#+begin_src org
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [letterpaper]
#+LATEX_HEADER: \usepackage{minted}
#+OPTIONS: toc:t
#+end_src
and edit our org file and then compile it , it will not produce a code_block.
probably because of empty options [] like i tested , after we remove them it 
works.
Digging little into the issue, if we specfied a pdf-export-commands , it will 
result into
the expected exported pdf.
#+begin_src emacs-lisp
(with-eval-after-load 'ox-latex
  (add-to-list 'org-latex-packages-alist '("" "minted"))
  (setq org-latex-listings 'minted)
  (setq org-latex-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o 
%f"
  "pdflatex -shell-escape -interaction nonstopmode -output-directory %o 
%f"
  "pdflatex -shell-escape -interaction nonstopmode -output-directory %o 
%f")))
#+end_src
Not sure why it needs these in order to export correctly.
Here's some screenshots of the 
issue,[[https://i.imgur.com/VB1leIW.png][Exported_pdf]],[[https://i.imgur.com/x8lIIFW.png][org_file]],[[https://i.imgur.com/Tm0lzp4.png][exported_tex]],[[https://i.imgur.com/bxdI7Ja.png][Removing_Brackets]]


Re: sort “on-the-fly” in org-agenda-view

2021-04-19 Thread Ben Sima
Heh, I just found myself wanting to do this. I often use C-c ^ to sort
subtrees by creation date, and I wanted to do that with my global TODO
list just now, but couldn't figure out how.

So, imo there is at least a small need for this feature.


signature.asc
Description: PGP signature


Manual Typo in Table Section

2019-12-16 Thread Ben Polson
Hello org mode mods!

I'm starting to get into org mode and have been going through the manual to
understand it better. I got to section 3.5.1 and got a little confused:

https://orgmode.org/manual/References.html#References

Specifically with this example formula:
‘@3 = 2 * remote(FOO, @@1$$#)’

As I've been playing around with tables and formulas I've come to the
conclusion that '@@1' must be a typo, and that what was intended was just
'@1'. I have a few qualms about this table section in general, but felt
that this particular typo was an important one to highlight.

Thanks so much for your work! I hope to get more involved once I've made my
way through the manual.

Sincerely,
Ben


Re: [O] Bug or known issue: org-clock-display

2019-01-14 Thread Ben McGinnes
On Mon, Jan 14, 2019 at 07:56:03PM +0100, Marco Wahl wrote:
> Hi,
> 
> > no longer see the totals and org-clock-display produces the following
> > error message:
> >
> > Total file time: 0:00 (0 hours and 0 minutes)
> 
> This is the expected behavior of the org-clock-display function AFAICS.
> 
> See
> 
> C-h f org-clock-display
> 
> and
> 
> C-h v org-clock-display-default-range
> 
> The default value of org-clock-display-default-range is ‘thisyear’ which
> means that the result of
> 
> M-x org-clock-display
> 
> indeed depends on the current time.
> 
> Find also the meanings of prefix arguments for org-clock-display in
> the documentation.

Ah, cheers, this does indeed make it much more clear and changing
org-clock-display-default-range from "thisyear" to "untilnow" has
resulted in exactly what I wanted (and originally expected).  Though I
can see why it might be preferable for a default setting to run
through to the end of the current year.


Regards,
Ben


signature.asc
Description: PGP signature


[O] Bug or known issue: org-clock-display

2019-01-14 Thread Ben McGinnes
Hi all,
I've been using org-mode to perform the task of timesheets
with another GNU project and encountered something which has all the
hallmarks of a bug.  I'm just not sure if it's a known issue or
whether to write up a bug report for it.

I use org-clock-in and org-clock-out to track the hours worked and
then at the end of each month use org-clock-display to obtain the
total hours to bill for.

This was going fine all year until January 1st.  At this point I can
no longer see the totals and org-clock-display produces the following
error message:

Total file time: 0:00 (0 hours and 0 minutes)

If I do a find and replace of 2018 to 2019, however, the correct
calculations occur as expected.  So it appears that org-clock-display
only works for the year you're in.

BTW, the test I performed on just December, the correct total time
message is:

Total file time: 5d 22:39 (142 hours and 39 minutes)

A bit of a difference.  ;)

So, is this a known issue with possibly some arcane reason for why it
can't easily be fixed or is my next step to go lodge a formal bug
report?


Regards,
Ben



signature.asc
Description: PGP signature


Re: [O] Recovering org-completion-use-ido functionality

2018-09-04 Thread ben lamothe
Thanks for the suggestion. I did try out `ido-completing-read-plus`, but
it's too aggressive for me. It tries to enable ido *everywhere*, including
the interface for `M-x`. I just want to enable it for org-mode specific
completions. Basically, I want replicate exactly the functionality that was
removed with the `org-completion-use-ido` option.

Incidentally, the buffer-local variable is also too aggressive. Now, when I
try to enter a command with `M-x`, that interface tries to use IDO for
completing reads, and IDO can't handle it so it fails. That means I'm back
at the drawing board, and my previous solution doesn't actually work for me.

Does anyone know how I replicate the functionality that was removed with
`org-completion-use-ido`?

On Mon, Sep 3, 2018 at 11:42 AM Colin Baxter  wrote:

> >>>>> ben lamothe  writes:
>
> > I've been able to implement the functionality I wanted using a
> > buffer-local variable in an org-mode hook:
> >>
> >> (defun bl/completion-use-ido () "Set the current buffer's
> >> completing read engine to IDO."  (setq-local
> >> completing-read-function #'ido-completing-read))
>
> > (add-hook 'org-mode-hook 'bl/completion-use-ido)
>
>
> > I think that works for me, but I'm open to a better suggestion if
> > there is one. In any case, I think re-enabling the functionality
> > that was removed with the "org-completion-use-ido" function should
> > be documented somewhere.
>
> > On Fri, Aug 24, 2018 at 9:46 PM ben lamothe 
> wrote:
>
> >> Hi. I see from the org-mode 9.0 changelog
> >> <https://orgmode.org/Changes_old.html> that the
> >> "org-completion-use-ido" option was removed:
> >>
> >>> *Remove all options related to ido or iswitchb* This includes
> >>> org-completion-use-iswitchb and org-completion-use-ido.  Instead
> >>> Org uses regular functions, e.g., completion-read so as to let
> >>> those libraries operate.
> >>
> >>
> >> However, I'm unclear from the changelog and I haven't found any
> >> other documentation about how to restore the functionality that
> >> this option used to enable. I have tried
> >> ido-completing-read-plus/ido-ubiquitous
> >> <https://github.com/DarwinAwardWinner/ido-completing-read-plus>,
> >> but that is overkill because it tries to enable ido everywhere,
> >> but I just want to re-enable ido for org-mode completion (mainly
> >> refile). I also run into the same problem if I try to set the
> >> completing read function to the one from ido globally.
> >>
> >> What is the best way to restore the functionality of the now
> >> removed "org-completion-use-ido" option?
> >>
>
> I've now found `ido-completing-read-plus' to supply what I need. It's at
> https://github.com/DarwinAwardWinner/ido-completing-read-plus
>
> Best wishes,
>


Re: [O] Recovering org-completion-use-ido functionality

2018-09-03 Thread ben lamothe
I've been able to implement the functionality I wanted using a buffer-local
variable in an org-mode hook:
>
> (defun bl/completion-use-ido ()
>   "Set the current buffer's completing read engine to IDO."
>   (setq-local completing-read-function #'ido-completing-read))

(add-hook 'org-mode-hook 'bl/completion-use-ido)


I think that works for me, but I'm open to a better suggestion if there is
one. In any case, I think re-enabling the functionality that was removed
with the "org-completion-use-ido" function should be documented somewhere.

On Fri, Aug 24, 2018 at 9:46 PM ben lamothe  wrote:

> Hi. I see from the org-mode 9.0 changelog
> <https://orgmode.org/Changes_old.html> that the "org-completion-use-ido"
> option was removed:
>
>> *Remove all options related to ido or iswitchb*
>> This includes org-completion-use-iswitchb and org-completion-use-ido.
>> Instead Org uses regular functions, e.g., completion-read so as to let
>> those libraries operate.
>
>
> However, I'm unclear from the changelog and I haven't found any other
> documentation about how to restore the functionality that this option used
> to enable. I have tried ido-completing-read-plus/ido-ubiquitous
> <https://github.com/DarwinAwardWinner/ido-completing-read-plus>, but that
> is overkill because it tries to enable ido everywhere, but I just want to
> re-enable ido for org-mode completion (mainly refile). I also run into the
> same problem if I try to set the completing read function to the one from
> ido globally.
>
> What is the best way to restore the functionality of the now removed
> "org-completion-use-ido" option?
>


[O] Recovering org-completion-use-ido functionality

2018-09-03 Thread ben lamothe
Hi. I see from the org-mode 9.0 changelog
 that the "org-completion-use-ido"
option was removed:

> *Remove all options related to ido or iswitchb*
> This includes org-completion-use-iswitchb and org-completion-use-ido.
> Instead Org uses regular functions, e.g., completion-read so as to let
> those libraries operate.


However, I'm unclear from the changelog and I haven't found any other
documentation about how to restore the functionality that this option used
to enable. I have tried ido-completing-read-plus/ido-ubiquitous
, but that
is overkill because it tries to enable ido everywhere, but I just want to
re-enable ido for org-mode completion (mainly refile). I also run into the
same problem if I try to set the completing read function to the one from
ido globally.

What is the best way to restore the functionality of the now removed
"org-completion-use-ido" option?


Re: [O] Org Mode Documentation Patch

2018-06-25 Thread Siraphob (Ben) Phipathananunth
I've printed, signed, scanned and sent the assignment to ass...@gnu.org 
, waiting for their response.


In the meantime, please install another patch I wrote, attached.

You may notice that the email and name of the patch author is different, 
this is to correspond with my email and legal name. ("Ben" is my nickname)


Thanks,

--
Siraphob (Ben) Phipathananunth
From 677ac08a5b11157f59dd5acc73a2bc7103344f22 Mon Sep 17 00:00:00 2001
From: Siraphob Phipathananunth 
Date: Mon, 25 Jun 2018 21:27:05 +0700
Subject: [PATCH] Fix "cursor" to "point", fix grammar and add cross-references

* doc/org-manual : More wording and grammar is fixed, cross-references
to other sections are added when key terms appear (e.g. agenda,
property, completion).
---
 doc/org-manual.org | 323 ++---
 1 file changed, 161 insertions(+), 162 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index f1180458a..caa23be83 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -1145,8 +1145,7 @@ to disable them individually.
  indentation.  When these commands are executed several times in
  direct succession, the initially selected region is used, even if
  the new indentation would imply a different hierarchy.  To use
- the new hierarchy, break the command chain with a cursor motion
- or so.
+ the new hierarchy, break the command chain by moving point.
 
  As a special case, using this command on the very first item of
  a list moves the whole list.  This behavior can be disabled by
@@ -1194,7 +1193,7 @@ to disable them individually.
  #+vindex: org-support-shift-select
  #+kindex: S-LEFT
  #+kindex: S-RIGHT
- This command also cycles bullet styles when point in on the
+ This command also cycles bullet styles when point is in on the
  bullet or anywhere in an item line, details depending on
  ~org-support-shift-select~.
 
@@ -1683,7 +1682,7 @@ you, configure the option ~org-table-auto-blank-field~.
  #+vindex: org-table-copy-increment
  When current field is empty, copy from first non-empty field
  above.  When not empty, copy current field down to next row and
- move cursor along with it.  Depending on the variable
+ move point along with it.  Depending on the variable
  ~org-table-copy-increment~, integer field values can be
  incremented during copy.  Integers that are too large are not
  incremented, however.  Also, a ~0~ prefix argument temporarily
@@ -1919,10 +1918,10 @@ to derive fields from other fields.  While fully 
featured, Org's
 implementation is not identical to other spreadsheets.  For example,
 Org knows the concept of a /column formula/ that will be applied to
 all non-header fields in a column without having to copy the formula
-to each relevant field.  There is also a formula debugger, and
-a formula editor with features for highlighting fields in the table
-corresponding to the references at the point in the formula, moving
-these references by arrow keys.
+to each relevant field.  There is also a formula debugger, and a
+formula editor with features for highlighting fields in the table
+corresponding to the references at point in the formula, moving these
+references by arrow keys.
 
 *** References
 :PROPERTIES:
@@ -3376,7 +3375,7 @@ generally, act on links.
  possible with =~/= for your home directory.  You can force an
  absolute path with two {{{kbd(C-u)}}} prefixes.
 
-- {{{kbd(C-c C-l)}}} (with cursor on existing link) ::
+- {{{kbd(C-c C-l)}}} (with point on existing link) ::
 
  #+cindex: following links
  When point is on an existing link, {{{kbd(C-c C-l)}}} allows
@@ -3391,11 +3390,11 @@ generally, act on links.
  ~browse-url-at-point~), run VM/MH-E/Wanderlust/Rmail/Gnus/BBDB
  for the corresponding links, and execute the command in a shell
  link.  When point is on an internal link, this command runs the
- corresponding search.  When point is on the tags part of
- a headline, it creates the corresponding tags view (see [[*Matching
- tags and properties]]).  If the cursor is on a timestamp, it
- compiles the agenda for that date.  Furthermore, it visits text
- and remote files in =file= links with Emacs and select a suitable
+ corresponding search.  When point is on the tags part of a
+ headline, it creates the corresponding tags view (see [[*Matching
+ tags and properties]]).  If point is on a timestamp, it compiles
+ the agenda for that date.  Furthermore, it visits text and remote
+ files in =file= links with Emacs and select a suitable
  application for local non-text files.  Classification of files is
  based on file extension only.  See option ~org-file-apps~.  If
  you want to override the default application and visit the file
@@ -3867,14 +3866,13 @@ require action.  Your setup would then look like this:
 (sequence "|" "C

Re: [O] Org Mode Documentation Patch

2018-06-23 Thread Siraphob (Ben) Phipathananunth
Thank you very much for accepting the patch.

Nicolas Goaziou wrote:
> BTW, what is your status wrt FSF papers?

I just sent an email to ass...@gnu.org with my information, how will I know 
when copyright assign is completed?

Thank you again,

-- 
Siraphob (Ben) Phipathananunth



[O] Org Mode Documentation Patch

2018-06-22 Thread Siraphob (Ben) Phipathananunth
This patch was originally submitted to Emacs devel, but Eli Zaretskii
redirected me here.

I've begun reading the Org Mode manual, and noticed that the wording
in some places could be improved (so far I've read up to Section 4.8).
I've attached my patch.  Some of the more drastic changes:

- Changed all occurrences of "the cursor" to "point", I thought the
  inconsistency was confusing, especially since the Emacs manual
  maintains usage of "point" throughout, so too should the Org Mode
  manual.

I have a couple of questions regarding the Org Mode manual and
submitting patches:

Section 4.6 "Link abbreviations" in the Org Mode manual link to
websites that have and/or promote non-free software.  The URLs are
used to illustrate link abbreviations in Org Mode, but I suppose this
was purely coincidental because long URLs to websites such as
gnu.org/some/long/path could be used instead.  Would it be appropriate
to change the examples in a later patch?

When the PDF version of the Org Mode manual is generated with "make
docs", the footnotes (3 and 4) around Section 4.3 are incorrectly
indented, can anyone reproduce this?  What is causing it?

Should I submit my patches as smaller ones as I read sections of the
manual or bulk them together into a larger patch, or is it just a
matter of preference?

Please let me know if you have any comments about the patch.  It's my
first one, I hope I have followed the CONTRIBUTING guide properly.

Thanks!

--

Siraphob (Ben) Phipathananunth


0001-Fix-various-grammatical-errors-and-fix-terminology.patch
Description: Binary data


Re: [O] is ascii link format canonical? can it be made more linkifiable?

2018-02-06 Thread Ben McGinnes
On Mon, Feb 05, 2018 at 09:26:14PM -0700, Samuel Wales wrote:
> 
>   [[http://whatever.com]]
> 
> i do not know the standard, but i think that some email clients will
> not linkify this because of the brackets.

Correct.

> are we sure that [] are canonical?  not <>?  is it the clients that
> are wrong?

No, it's because the square brackets are valid characters for use in
file names and thus can be part of the URL itself.  There's no way for
a MUA to recognise the difference.

You can see this demonstrated here:

http://www.adversary.org/test/]

And here:

http://www.adversary.org/test/]]

Angle brackets, however, are not valid in URLs and recognisably used
within HTML, XHTML, XML and variants.  Since most MUAs achieve their
WYSIWIG interfaces via some means of implementing HTML (or a
bastardisation of it), the angle brackets are recognised as a means of
specifying a particular type of object.  Some MUAs will leverage the
mailcap file to be more specific with this.  Some, of course, won't
and some wander off on strange bastardised rich text tangents or
custom protocols (insert pointed look at Microsoft Outlook here).

Mostly, though, GUI MUAs went for HTML 4.01 and/or an XHTML variant
after Netscape Communicator hit the Net in the late '90s and everyone
(eventually) followed suit.  Along with retaining some simplistic
carry over from plain text emails similar to basic text mark-up in
org-mode (e.g. *bold*, /italics/, _underline_ and so on).  Most of
which were de facto standards, not official ones.  Basically the geek
equivalent of demonstrating how custom and tradition were more
pervasive than law (RFCs and MUA design).


Regards,
Ben


signature.asc
Description: PGP signature


[O] bug#18870: bug#18870: \emsp and alignment in org clock report

2017-12-04 Thread Ben Finney
On 04-Dec-2017, Nicolas Goaziou wrote:
> Any 9.X version certainly contains the fix.

Using this version of ‘org-mode’:

Org mode version 9.1.2 (9.1.2-dist @ 
/usr/share/emacs/25.2/site-lisp/elpa/org-9.0.9/)

I confirm that the display of the report is much better:

| Headline| Time   |  |  |
|-++--+--|
| *Total time*| *0:20* |  |  |
|-++--+--|
| Lorem ipsum, dolor sit amet | 0:20   |  |  |
| \_  Suscipit sint quod  || 0:13 |  |
| \_  Ab facilis nulla|| 0:07 |  |
| \_Dolore laborum||  | 0:07 |

Thank you to the Org developers for resolving this bug.

-- 
 \  “A thing moderately good is not so good as it ought to be. |
  `\Moderation in temper is always a virtue; but moderation in |
_o__)   principle is always a vice.” —Thomas Paine |
Ben Finney <b...@benfinney.id.au>


signature.asc
Description: PGP signature


[O] bug#18870: bug#18870: \emsp and alignment in org clock report

2017-12-04 Thread Ben Finney
On 04-Dec-2017, Nicolas Goaziou wrote:
> Ben Finney <ben+em...@benfinney.id.au> writes:
> > How can we test the change, to know whether this bug is resolved?
> 
> You can test the latest ELPA release, scheduled for today

Please state the exact version string, so that we can compare to see
whether we're using one that meets your description.

-- 
 \   “We must find our way to a time when faith, without evidence, |
  `\disgraces anyone who would claim it.” —Sam Harris, _The End of |
_o__)         Faith_, 2004 |
Ben Finney <b...@benfinney.id.au>


signature.asc
Description: PGP signature


[O] bug#18870: bug#18870: \emsp and alignment in org clock report

2017-12-03 Thread Ben Finney
On 22-Aug-2016, Nicolas Goaziou wrote:
> The display for clock reports has been changed some months ago in
> development version.

Which version contains this change?

> I think this bug can be closed.

How can we test the change, to know whether this bug is resolved?

-- 
 \   “Instead of having ‘answers’ on a math test, they should just |
  `\   call them ‘impressions’, and if you got a different |
_o__)   ‘impression’, so what, can't we all be brothers?” —Jack Handey |
Ben Finney <b...@benfinney.id.au>


signature.asc
Description: PGP signature


[O] Is there something like ~org-blank-after-new-entry~ for org mode headings?

2017-01-29 Thread Ben
Hi All,

There is ~org-blank-before-new-entry~ to insert a blank line before a new
entry. But is there a similar variable for adding a blank line after a new
entry? It would be useful when inserting an entry between entries.

I've asked the question on stackexchange
<http://emacs.stackexchange.com/questions/28742/is-there-something-like-org-blank-after-new-entry-for-org-mode-headings>
but
got no response.  Maybe it's more suitable to ask it here.

Thanks,

Ben


[O] Custom source block for concept map markdown

2016-07-01 Thread Ben Feldman
Hi,

my goal is to create a custom source block to create concept maps. The source 
block contains
my custom made pseudo code. When exporting the org-file to LaTeX and PDF this 
pseudo code
must be translated to DOT code. This DOT code is interpreted by the dot2texi 
package.

The reason for the pseudo code is that it is more easy human readable. The 
reason for dot2texi is
that vanilla DOT does not allow for labels on edges, i.e. labels that cross the 
edge.

Here is an example of a concept map:

https://upload.wikimedia.org/wikipedia/commons/c/c3/Electricity_Concept_Map.gif

This is an example of my pseudo code for a single connection between two 
concepts
and a label for that connection:

(Electricity) {is a form of} (Energy)

As you see it looks like a sentence.

The DOT code for this would look like this:

"Electricity" -> "Energy" [label="is a form of"];

Clearly, this doesn’t look like a proper sentence. Therefore I concocted the 
following
function that takes a region containing my pseudo code and translates it to DOT 
code:

(defun concept2dot (rStart rEnd)
  (interactive "r")
  (save-restriction
(narrow-to-region rStart rEnd)
(goto-char (point-min))
(while (re-search-forward "(\\([[:word:]].*\\)) +{\\([[:word:]].*\\)} 
+(\\([[:word:]].*\\))" nil t)
  (replace-match (concat "\"" (match-string 1) "\"" " -> " "\"" 
(match-string 3) "\"" " [label=\"" (match-string 2) "\"];") t nil))
)
  )


After translating my pseudo code to DOT code a LaTeX source block with that DOT 
code would look like this:


#+LATEX_HEADER: \usepackage{dot2texi}
#+LATEX_HEADER: \usepackage{tikz}
#+LATEX_HEADER: \usetikzlibrary{shapes, arrows}

#+BEGIN_LATEX
\begin{dot2tex}[tikz, tikzedgelabels, options={-t raw --nodeoptions='every 
node/.style={text width=2cm, text centered, rounded corners, fill=black!10}' 
--edgeoptions="every node/.style={fill=white, inner sep=1pt}"}]
digraph G {

  node [shape=box, fixedsize=true, width=1.2];

 "Electricity" -> "Energy" [label="is a form of"];

}
\end{dot2tex}
#+END_LATEX


However, I want to avoid firstly translating my pseudo code manually by 
selecting a region and applying my function to it. Secondly, I want to
get rid of all the LaTeX code. Ideally the end result should look like this:

#+BEGIN_SRC conceptmap

(Electricity) {is a form of} (Energy)
(Energy) {that can exist in the form} (Lightning)
(Energy) {that can exist in the form of} (Thunder)

#+END_SRC

When I export my org-file to LaTeX the translation into DOT code occurs 
automatically.

What would be the easiest way to achieve this result? 

Thanks, B.F.


















Re: [O] org-babel C math.h issue

2016-03-11 Thread Oz Ben-Ami
Thanks for the response.

On my machine, I get the undefined references even with GCC 5 (gcc version
5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)), if I put -lm before the source
file name.

As far as a patch, I can try but this would be my first time really playing
with org-mode code. As far as I can see, I would need to add the following
lines in ob-C.el:
L133: (libs (cdr (assoc :libs params)))
 (libs (mapconcat 'identity
   (if (listp libs) libs (list libs)) " "))
L142: (format "%s -o %s %s %s %s" ;; (added %s)
L147: libs

Am I missing anything?

Oz

On Fri, Mar 11, 2016 at 1:52 PM, Thierry Banel <tbanelweb...@free.fr> wrote:

> To summarize this thread:
> It seems there was an issue long ago.
> Version 5 of GCC magically fixed it.
> But it is still here for older compilers.
>
> -
>
> To debug, execute the following piece of lisp code:
>
> (defadvice org-babel-eval (before xxx (cmd body))
>   ""
>   (message "org-babel-eval : %s" cmd))
> (ad-activate 'org-babel-eval)
>
> The actual compilation command will be displayed in the *Messages* buffer.
>
> With your example, we get
>
>gcc -o /tmp/babel-8412zIw/C-bin-8412IZR -lm
> /tmp/babel-8412zIw/C-src-84127OL.c
>
> --
>
> You are right, Oz, this can be fixed in line 147.
> But :flags is intended for flags like -g or -O, which need to appear
> before the source file.
>
> Probably we are missing an additional flag, which could be named :libs
> Then your example would be:
>
>   #+BEGIN_SRC C :includes '( ) :libs -lm
>   int i=9;
>   printf("%d\n",(int)sqrt(i));
>   #+END_SRC
>
> --
>
> Oz, do you think you would be able to provide a patch?
> The way to contribute is documented here:
> http://orgmode.org/worg/org-contribute.html#orgheadline1
>
> Thanks for reporting.
> Thierry
>
>
> Le 06/03/2016 23:44, Oz Ben-Ami a écrit :
> > Hi,
> >
> > I'm a new org user, and I'm sorry if I'm missing something obvious.
> > When executing a C code snippet with org-babel, that contains a math
> > function, I get the famous "undefined reference" errors. I tried
> > adding ":flags -lm", but that doesn't help. Looking at the code, it
> > seems the -lm flag is inserted in the wrong place, before the source
> > file. An easy change would be in line 147 of ob-C.el version
> > 8.3.4-634, moving "flags" to after the source file. This seems to
> > work, but I don't know if it would break anything else.
> >
> > A minimal working example, attached, includes the following snippet:
> >
> > #+BEGIN_SRC C :includes '( ) :flags -lm
> > int i=9;
> > printf("%d\n",(int)sqrt(i));
> > #+END_SRC
> >
> > Note the issue disappears if constants are directly used rather than
> > variables, presumably because the function call is optimized away
> > entirely.
> >
> > Any thoughts are appreciated.
> >
> > Oz
>
>
>


[O] org-babel C math.h issue

2016-03-06 Thread Oz Ben-Ami
Hi,

I'm a new org user, and I'm sorry if I'm missing something obvious. When
executing a C code snippet with org-babel, that contains a math function, I
get the famous "undefined reference" errors. I tried adding ":flags -lm",
but that doesn't help. Looking at the code, it seems the -lm flag is
inserted in the wrong place, before the source file. An easy change would
be in line 147 of ob-C.el version 8.3.4-634, moving "flags" to after the
source file. This seems to work, but I don't know if it would break
anything else.

A minimal working example, attached, includes the following snippet:

#+BEGIN_SRC C :includes '( ) :flags -lm
int i=9;
printf("%d\n",(int)sqrt(i));
#+END_SRC

Note the issue disappears if constants are directly used rather than
variables, presumably because the function call is optimized away entirely.

Any thoughts are appreciated.

Oz


testC.org
Description: Binary data


[O] How to make ~evil-leader~ work for for ~org-src-mode~?

2015-10-20 Thread Ben
Dear all,

I want to set some evil-leader keys for org-src-mode with the following
code:

(evil-leader/set-key-for-mode 'org-src-mode
"k" 'org-edit-src-abort
"s" 'org-edit-src-save
"'" 'org-edit-src-exit)

But it doesn't work. Why is that?

Thanks,
Ben


[O] bug#18870: \emsp and alignment in org clock report

2015-03-22 Thread Ben Finney
On 17-Mar-2015, Nicolas Goaziou wrote:

 Also, the bug is about table alignment when `org-pretty-entities' is
 used.

Okay. So if I'm reporting a regression in the text (non-GUI) Emacs
behaviour of Org mode, I should make a separate report?

  So the U+2003 EM SPACE character should be translated *during
  export*, and not be literally in the displayed text.
 
 No, because it means this character should be treated specially by
 Org (e.g., LaTeX just ignores it so it needs to be turned into a
 space there).

That conflicts with what you're saying later:

  But not for display, which is the bug to be fixed here.
 
 Actually, it works more or less correctly for display on GUI with a
 non-nil `org-pretty-entities', or calling
 `org-toggle-pretty-entities'.

So the behaviour is masked by special behaviour of “entities”. Why is
that special behaviour acceptable, but allowing export of U+2003 is not?

On 22-Mar-2015, Nicolas Goaziou wrote:

 This should now be fixed. The markup used is more readable and
 doesn't alter table alignment.

Is that true for text-only terminals too?

-- 
 \   “See, in my line of work you gotta keep repeating things over |
  `\   and over and over again, for the truth to sink in; to kinda |
_o__)   catapult the propaganda.” —George W. Bush, 2005-05 |
Ben Finney b...@benfinney.id.au


signature.asc
Description: Digital signature


[O] bug#18870: \emsp and alignment in org clock report

2015-03-17 Thread Ben Finney
On 17-Mar-2015, Nicolas Goaziou wrote:
 Hello,
 
 Ben Finney b...@benfinney.id.au writes:
 
  The \emsp should be space characters (of some kind; either
  U+0020 SPC or U+2003 EM SPACE) with correct alignment for the
  character width. Displaying literal \emsp is a regression and
  should not happen.
 
 This is not a regression. This change favors a correct export over
 a correct display.

The behaviour described – displaying “\emsp” instead of space
characters – is a regression. That's what is being reported in this bug.

 Having some space character is not desirable as it would just move
 the problem the other way around (i.e., indentation would not appear
 during export)

So the U+2003 EM SPACE character should be translated *during export*,
and not be literally in the displayed text.

 In a nutshell, the current situation is not perfect, but we have yet
 to find a proper character to preserve both indentation during
 export and readability.

IS the above suggestion an acceptable solution?

 Note that this is not LaTeX-specific markup. This is called an entity,
 and is correctly exported in various back-ends.

But not for display, which is the bug to be fixed here.

Thanks for working on Org mode.

-- 
 \   “The future always arrives too fast, and in the wrong order.” |
  `\—Alvin Toffler |
_o__)  |
Ben Finney b...@benfinney.id.au


signature.asc
Description: Digital signature


[O] bug#18870: \emsp and alignment in org clock report

2015-03-17 Thread Ben Finney
I confirm this behaviour.

With a plain text terminal, a clock report shows like:

|---+--++--+--|
| willow-it.org | *File time*  | *5:25* |  |
 |
|   | Willow IT| 5:25   |  |
 |
|   | \emsp Administration || 3:44 |
 |
|   | \emsp\emsp Induction ||  |
3:44 |
|   | \emsp Training  development || 1:41 |
 |
|   | \emsp\emsp Odoo research ||  |
1:41 |
|---+--++--+--|

The \emsp should be space characters (of some kind; either U+0020 SPC
or U+2003 EM SPACE) with correct alignment for the character width.
Displaying literal \emsp is a regression and should not happen.

If having a U+2003 EM SPACE character is desirable, then instead of
LaTeX-specific markup (which is useless in the text buffer), that
character should appear directly in the data so it is useful for
display.

Thanks for working on Org Mode.

-- 
Ben Finney





Re: [O] how to get images support in Emacs on Windows?

2015-02-22 Thread Ben
I haven't tried other types except jpeg and png.

Actually, I use few inline images. Most of my images are large. They should
be resized to look pretty on emacs. But to resize them I need to build
emacs with ImageMagick. And I haven't tried that yet.

On Sat, Feb 21, 2015 at 3:18 AM, Herbert Sitz hes...@gmail.com wrote:

 Ben yfefyf at gmail.com writes:
 
  You can download the corresponding dlls from ezwinports [fn:1] and
 put them into emacs's `bin` directory.
 
  There are some instructions in the Image support part on page [fn:2].
 
  [fn:2] https://ftp.gnu.org/gnu/emacs/windows/
 

 Strangely, the instructions and files work only for a couple formats I
 tried.

 jpeg,png -- work perfectly

 svg -- works, but so far not inline.  I.e., I can click on link and image
 will show up in another Emacs buffer, but can't get it to show up inline.

 tiff -- can't get this to work at all.  When clicking on it, it shows
 character-mode garbage in separate buffer, along with error message.  This
 is despite fact that dynamic-library-alist shows the same files as I copied
 to the bin folder.

 Not a huge deal for me, since jpeg and png are what I wanted most.  But
 still seems a little odd; I have no idea what problems are with svg and
 tiff.



Re: [O] how to get images support in Emacs on Windows?

2015-02-19 Thread Ben
You can download the corresponding dlls from ezwinports [fn:1]
http://sourceforge.net/projects/ezwinports/files/ and put them into
emacs's `bin` directory.

There are some instructions in the Image support part on page [fn:2]
https://ftp.gnu.org/gnu/emacs/windows/.

[fn:1] http://sourceforge.net/projects/ezwinports/files/
[fn:2] https://ftp.gnu.org/gnu/emacs/windows/

On Fri, Feb 20, 2015 at 7:53 AM, Ista Zahn istaz...@gmail.com wrote:

 You could use http://vgoulet.act.ulaval.ca/en/emacs/windows/ which comes
 bundled with image support (and other stuff that you may or may not want).
 On Feb 19, 2015 6:20 PM, Herbert Sitz hes...@gmail.com wrote:

 I'm trying to use inline images on Windows and (I think?) I've gotten to
 the
 point where I understand that this is not available with the standard GNU
 Emacs installation on Windows.  My understanding is that I need an
 image.dll that I can put in the bin directory.  I think that comes as
 part
 of EmacsW32 install, but that install seems to be packaged as a single
 executable, not sure how to get image.dll without running a full install
 of
 EmacsW32, which I don't think I want.

 So, am I correct in understanding that all I need is that 'image.dll' to
 get
 inline image support on Windows (I'm running v24.4 of Emacs).  If not,
 what
 more do I need to do?  And how can I get (or make) a copy of that .dll?

 Thanks,

 Herbert





[O] Bug: aborting capture to new file leaves 1-byte file behind [8.2.7c]

2014-09-07 Thread Ben Winslow
I'm using a capture template to create a new file (via read-file-name) 
with some pre-filled #+STARTUP options.  I'm using immediate-finish, but 
while I was setting it up I noticed that captures to a new file will 
leave behind a 1-byte file (containing a newline) if aborted with 
org-capture-kill.


To replicate, just add a new capture template pointing to a non-existent 
file, start capturing to it, then abort.


===

Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll 
bars)

 of 2014-06-06 on barber, modified by Debian
Package: Org-mode version 8.2.7c (8.2.7c-dist @ 
/usr/share/emacs24/site-lisp/org-mode/)


--
Ben Winslow r...@bluecherry.net




[O] Bug: org-open-at-point bug for radio targets [8.2 (8.2-6-gd745cd-elpa @ /home/ben/.emacs.d/elpa/org-20130930/)]

2013-10-02 Thread ben

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

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


When I click on a radio target link I get the following error:

and: Wrong type argument: stringp, nil

I managed to fix the problem by changing this:

(and (string-match ^id: link)
 (or (featurep 'org-id) (require 'org-id))
 (progn 
   (funcall (nth 1 (assoc id org-link-protocols))
(substring path 3))
   t))

to this:

(and link
 (string-match ^id: link)
 (or (featurep 'org-id) (require 'org-id))
 (progn
   (funcall (nth 1 (assoc id org-link-protocols))
(substring path 3))
   t))

towards the end of the org-open-at-point function.
   
Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2013-08-22 on louvi, modified by Debian
Package: Org-mode version 8.2 (8.2-6-gd745cd-elpa @ 
/home/ben/.emacs.d/elpa/org-20130930/)



[O] The color theme on the official website

2013-09-06 Thread Ben Duan
Dear all,

What's the name of the color theme on the official site of orgmode? (
http://orgmode.org/img/main.jpg)

And do you have any other recommendations for color themes?

Thanks and regards,
Ben


Re: [O] GFDL

2013-06-04 Thread Ben Finney
On 27-May-2013, Bastien wrote:
 Ben Finney ben+em...@benfinney.id.au writes:
  Do you have a reference from some FSF official for that restriction?
 
 See this discussion:
   http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00375.html

Thanks very much for that information.

I had not realised how obstructionist RMS has become on this issue,
blocking attempts event to dual-license a document under at least one free
license (the FDL is not a free license by the FSF's own definition), and
insisting that Debian change its social contract to allow non-free works.

Given that entrenched position, the only hope for new freely-licensed FSF
documentation now seems to be for RMS's authority to be over-ruled on this
from within FSF, which could take some time.

It's good to have this to refer back to, so I'm grateful for this
discussion.

-- 
 \  “Software patents provide one more means of controlling access |
  `\  to information. They are the tool of choice for the internet |
_o__) highwayman.” —Anthony Taylor |
Ben Finney b...@benfinney.id.au


signature.asc
Description: Digital signature


Re: [O] GFDL

2013-05-25 Thread Ben Finney
Bastien b...@gnu.org writes:

 Sebastien Vauban sva-n...@mygooglest.com
 writes:

  FMI, why is GNU GPL not applicable to the manual?

 Because the manual is part of GNU Emacs, which is part of the GNU
 project, and every project in the GNU project is required to publish
 manuals in GNU FDL only. Dual licensing is not an option here.

Wow, I didn't realise the FSF policy was *that* restrictive.

Publishing the manual under both FDL and GPL should satisfy the FSF's
legitimate requirements for their work, so I don't know how they justify
refusing a manual that happens to also be published under some non-FDL
license.

Do you have a reference from some FSF official for that restriction?

 There are many discussions about this... a can of (dead) worms.

Agreed, thank you.

-- 
 \“Every sentence I utter must be understood not as an |
  `\  affirmation, but as a question.” —Niels Bohr |
_o__)  |
Ben Finney




Re: [O] GFDL

2013-05-20 Thread Ben Finney
Carsten Dominik carsten.domi...@gmail.com writes:

 I have asked RMS about this, and he says that the [GNU FDL] license
 should be present in printed versions of the document. I find it very
 hard to believe that this must be the case.

That matches my understanding. It may be hard to believe that such an
obnoxious intent was deliberate, but I think it is in our interests to
believe it true.

 It bothers me mostly for the guide, where I did spend a lot of time to
 make it compact, and now something like one fifth of it is license
 text.  We may actually consider to re-release the guide under a
 different license.

Please use this as an opportunity to seriously consider relicensing the
entire work (programs, documentation, etc.) of Org-mode under the same
license: the GNU GPL. It does not have the special problems of the FDL,
and having the whole work under the same license terms makes it simpler
and clearer.

 Will try to find a solution here.

Wishing you fortune in coming to a good solution.

-- 
 \“The problem with television is that the people must sit and |
  `\keep their eyes glued on a screen: the average American family |
_o__) hasn't time for it.” —_The New York Times_, 1939 |
Ben Finney




Re: [O] org-mobile-push error produces wrong-type-argument error

2013-01-03 Thread Ben Finney
Bastien b...@altern.org writes:

 Hi Ben,

 Ben Finney ben+em...@benfinney.id.au writes:

  I am getting the same error. I'm using the Org mode that comes with
  Emacs (“GNU Emacs 23.4.1”).

 You should not get this error anymore from maint.

Thank you. I'm not in a position to use the maint version, so I will
need to wait for a release fixing this.

Which change fixed this problem? How will I know when an org-mode that
includes this fix is released?

-- 
 \  “The best way to get information on Usenet is not to ask a |
  `\   question, but to post the wrong information.” —Aahz |
_o__)  |
Ben Finney




Re: [O] Trimming quotes

2012-12-30 Thread Ben Finney
Nick Dokos nicholas.do...@hp.com writes:

 Ben Finney ben+em...@benfinney.id.au wrote:

  t...@tsdye.com (Thomas S. Dye) writes:
  
   Can you point me to trimming guidelines for digest readers?
  
  In brief: Don't respond at all to a digest message.
  
  Instead, […]

 Tom did not respond to a digest message.

Indeed; I didn't intend to imply otherwise. I was responding to Tom's
request for guidelines on how to trim quotes in a reply when one is
receiving the list digest.

-- 
 \  “[I]t is impossible for anyone to begin to learn that which he |
  `\thinks he already knows.” —Epictetus, _Discourses_ |
_o__)  |
Ben Finney




Re: [O] Trimming quotes

2012-12-29 Thread Ben Finney
t...@tsdye.com (Thomas S. Dye) writes:

 Can you point me to trimming guidelines for digest readers?

In brief: Don't respond at all to a digest message.

Instead, respond to the actual message you want to respond to; that way,
your response will include correct fields in the header to preserve the
thread of discussion.

So, treat the digest message as a one-way channel. If you think you
might ever respond, turn off digest mode and respond to individual
messages.

-- 
 \  “A society that will trade a little liberty for a little order |
  `\ will lose both, and deserve neither.” —Thomas Jefferson, in a |
_o__)letter to Madison |
Ben Finney




Re: [O] org-mobile-push error produces wrong-type-argument error

2012-12-14 Thread Ben Finney
Conor Nash nas...@tcd.ie writes:

 When I try to run org-mobile-push I get an error in the minibuffer: Wrong
 type argument: listp, todo.

I am getting the same error. I'm using the Org mode that comes with
Emacs (“GNU Emacs 23.4.1”).

The backtrace from the error is:

=
Debugger entered--Lisp error: (wrong-type-argument listp TODO)
  org-mobile-create-index-file()
  byte-code(\301 \210\302 \210\303\304!\210\305\306!\210\307\310 
\210)\305\311!\210\312 \210\305\313!\210\314 \210\305\315!\210\316 
\210\305\317!\210\320 \210\303\321!\207 [inhibit-redisplay 
org-mobile-check-setup org-mobile-prepare-file-lists run-hooks 
org-mobile-pre-push-hook message Creating agendas... t 
org-mobile-create-sumo-agenda Creating agendas...done 
org-save-all-org-buffers Copying files... org-mobile-copy-agenda-files 
Writing index file... org-mobile-create-index-file Writing checksums... 
org-mobile-write-checksums org-mobile-post-push-hook] 2)
  org-mobile-push()
  call-interactively(org-mobile-push t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)
=

What setting can I change to fix this? I would prefer to continue using
the same Emacs and Org mode as I'm not the only one using these
programs on the machine.

-- 
 \  “When we talk to God, we're praying. When God talks to us, |
  `\ we're schizophrenic.” —Jane Wagner, via Lily Tomlin, 1985 |
_o__)  |
Ben Finney




[O] multiline agenda and/or two-pane agenda selection

2012-10-15 Thread Ben

Hi all,

I hope this isn't in the FAQ or documentation---I tried to look through 
both according to the instructions but this seems like a basic question 
so my apologies if I'm missing something stupid.


I'm starting to use org-mode and its agenda view and like it a lot.  
However, I would like to modify it so one of two things happen:


1) Easy agenda navigation
---

Currently I like how I can press Enter (bound to org-agenda-switch-to 
apparently) in the agenda view and it will show me the relevant spot in 
an org file.  However, it replaces the agenda view with the org file, 
meaning I have to switch back to the agenda file and press extra keystrokes.


I almost always use emacs with two windows open (tiled side by side in 
one frame).  Is it possible for Enter to open up the org file in the 
other window, leaving the agenda window unchanged?  I found the 
org-agenda-window-setup command, but it seems to govern how the agenda 
window is displayed instead of how the agenda opens other windows.



2) Multi-line agenda listings
--

If that isn't possible or recommended, it would be nice if I could have 
a bit more information at a glance in the agenda view.  Sometimes I 
can't tell in my agenda what a TODO item is because it's out of 
context.  For instance, if in my org file it says


* Client XYZ
* TODO Call Bob about paperwork
SCHEDULED: 2012-10-15 Mon

Then in the agenda it says:

Monday15 October 1012
work:Scheduled:TODO Call Bob about paperwork

This is good but sometimes I wonder which Bob or what paperwork it's 
talking about.  For me I think it would be nicer if the heading it's 
under would also appear, so the agenda view would look like:


Monday15 October 1012
work:Scheduled:Client XYZ
 TODO Call Bob about 
paperwork


so I have a bit more context.  Perhaps other lines could be displayed 
too depending on the settings.



Thanks for any ideas,
--
Ben





Re: [O] multiline agenda and/or two-pane agenda selection

2012-10-15 Thread Ben

On 10/15/2012 12:50 PM, François Allisson wrote:

Le lundi 15 oct 2012 à 13:10:58 (-0400), Nick Dokos a écrit :

TrySPACE  instead ofENTER.

You can also try the follow mode, with the key F in the agenda view.
And then move with n and p. If you like it and would like to make it by 
default, just add (setq org-agenda-start-with-follow-mode t) in your .emacs . It will perhaps even 
solve your second point?

Excellent, thanks to both of you!

--
Ben Escoto




Re: [O] Adding Timestamps

2011-09-13 Thread Ben Finney
Chris Niven cjni...@gmail.com writes:

 Is there any way to sum timestamps in org-mode?

What would that mean?

What is the result of the sum of:

2011-09-12 08:45
2011-09-12 16:23
2011-09-14 03:02

?

-- 
 \“I took a course in speed waiting. Now I can wait an hour in |
  `\ only ten minutes.” —Steven Wright |
_o__)  |
Ben Finney




Re: [O] Org-babel and LaTeX letter

2011-09-07 Thread Ben Alexander

Thanks Thomas and Eric for responses!

I wasn't trying to export at first.  I think of export as a 'whole org- 
document' kind of thing, and I wanted to just have one TODO task  
(write a snail mail letter) completed without having to store a  
separate file for it.  But I read the docs on export, and I can easily  
select a headline and then export just the current region.  After  
updating the export class variable (I always use customize, as I am  
not that good at emacs lisp) it almost worked.


My problem was that I did not have enough of the MacPorts texlive-*  
packages installed. I needed texlive-fonts-recommended and texlive- 
latex-extra (if anyone else cares).  Googling for the broken  
\usepackage{} and texlive macports gave me a list of of what each  
package has.  I don't know if I've got enough for any latex+org usage,  
but it finally spit out my letter.  Good enough for today - I can  
avoid using a separate file for a paragraph.


This isn't perfect though.  I still have a spurious few lines in my  
tex file:


: \maketitle
: Some descriptive text to be emitted.  Several lines OK.

I've no idea where that comes from.  Anybody have any ideas?  For now,  
I edit the tex file before processing further, and it's good enough  
for today.


Now perhaps is a good time to ask what the different workflows are for  
export, publish, babel and tangle.  They seem to have overlapping  
functionality.  My basic concept is:


export : Your complete (or partial) org file in another form, like  
paper or on the web.  For when emacs isn't around and you don't want  
to forget what your orgmode file says, or for giving a copy of the  
data in your org file to someone who doesn't appreciate emacs. # 
+begin_latex blocks belong to this export.


publish : export more than one org file.  I've no idea what use case  
makes publish different than export.


babel : use for including chunks of code in an org file.  Base use  
case simply allows you to easily edit them in a native emacs mode  
while still having them organized into your run-of-the-mill org file.   
Also allows code blocks to be printed more nicely (in color? with line  
numbers?) which doesn't happen in 'export' Secondary use case allows  
you to execute the code blocks #+begin_src and #+results: blocks  
belong to babel.  I plan on using ledger in babel blocks to store my  
often executed queries, even though most of the 'code' is on the  
command line.


tangle : use case - lets you have lots of code blocks organized in an  
orgmode file become a complete, compilable program.  Normally the  
orgmode syntax would cause a complier to choke, so tangle removes the  
orgmode structure.  Added bonus: lets different programs co-operate in  
a single orgmode file.  Like a makefile on steroids? #+begin_src  
blocks can belong to tangle, too. n


While the orgmode documentation does a great job of explaining how to  
configure the details of each process, I feel like I'm missing the  
'how do I pick the feature that solves the problem I have right now'  
part.  Probably because each feature is flexible enough to be used in  
overlapping ways.


But as always, I'm grateful for the orgmode, the wonderful  
documentation, the customize-able options, and the great help I get  
when I turn to the mailing list.  You all rock!


-Ben



On 2011-Sep-06, at 17:58, Thomas S. Dye wrote:


Aloha Ben,

I'm not sure I understand what you are doing here, so please excuse me
if I'm offering misplaced advice.

Ben Alexander b...@alexanderonline.org writes:


Hello orgmode and latex users!

I'm trying to use a latex to write a letter, and I'm using an org
babel block to hold the original source.


There are (at least) two ways to create a tex file from Org-mode: 1)
export the Org-mode buffer, and 2) tangle latex code blocks.  IIUC,  
you
appear to be setting up code blocks for tangling, but then are using  
the

export facilities.

See http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-4
for instructions on how to change the Org-mode export class.






The funny thing is, if I run pdflatex from the command line, it works
fine.  Though it doesn't have as many lines of diagnostic output.  I
think the wrapping code for babel execution of latex code is the
issue.  I'd be happy to install more tex files. I use MacPorts to
maintain my system; perhaps I am missing a tex package that is  
needed?




I don't know about the macports distribution of LaTeX, but it seems  
odd

to me that latex works fine from the command line but then can't find
wrapfig.sty when it is called from Org-mode.  Perhaps the place to  
start

debugging this is the variable org-latex-to-pdf-process, see
http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-8.

hth,
Tom


Any pointers would be helpful.

-Ben

ORG file
* trial of latex
#+begin_src latex :file letter.pdf
Hello
#+end_src

BUFFER *Org PDF LaTeX Output* shows the following (first and last few
lines only

[O] Org-babel and LaTeX letter

2011-09-06 Thread Ben Alexander

Hello orgmode and latex users!

I'm trying to use a latex to write a letter, and I'm using an org  
babel block to hold the original source.  I've whittled down my latex  
code to one word and it still isn't working for me.  I've included the  
code block and the pdflatex output buffer.  I notice that the default  
style is 'article'.  Is there some way to remove the article style and  
use a letter instead?


The funny thing is, if I run pdflatex from the command line, it works  
fine.  Though it doesn't have as many lines of diagnostic output.  I  
think the wrapping code for babel execution of latex code is the  
issue.  I'd be happy to install more tex files. I use MacPorts to  
maintain my system; perhaps I am missing a tex package that is needed?


Any pointers would be helpful.

-Ben

ORG file
* trial of latex
#+begin_src latex :file letter.pdf
Hello
#+end_src

BUFFER *Org PDF LaTeX Output* shows the following (first and last few  
lines only)


This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011/MacPorts  
2011_1)

 restricted \write18 enabled.
entering extended mode

(/var/folders/pC/pCO-RjsoEHGUcvQ-+Z3F2U+++TI/-Tmp-/babel-58334TCg/ 
latex-58334gM

m.tex
LaTeX2e 2009/09/24
Babel v3.8l and hyphenation patterns for english, dumylang,  
nohyphenation, lo

aded.
(/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class

.lines of output omitted..

! LaTeX Error: File `wrapfig.sty' not found.

Type X to quit or RETURN to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.
read *

l.13 \usepackage
{soul}^^M
!  == Fatal error occurred, no output PDF file produced!
Transcript written on /var/folders/pC/pCO-RjsoEHGUcvQ-+Z3F2U+++TI/- 
Tmp-/babel-5

8334TCg//latex-58334gMm.log.

Xander$ port list installed and texlive*
texlive-basic  @23152  tex/texlive-basic
texlive-basic  @23152  tex/texlive-basic
texlive-bin@2011   tex/texlive-bin
texlive-bin@2011   tex/texlive-bin
texlive-common @2011   tex/texlive-common
texlive-common @2011   tex/texlive-common
texlive-documentation-base @23160  tex/texlive- 
documentation-base
texlive-documentation-base @23160  tex/texlive- 
documentation-base
texlive-generic-recommended@23088  tex/texlive-generic- 
recommended
texlive-generic-recommended@23088  tex/texlive-generic- 
recommended

texlive-latex  @23089  tex/texlive-latex
texlive-latex  @23089  tex/texlive-latex
texlive-latex-recommended  @23089  tex/texlive-latex- 
recommended

texlive-latex3 @19447  tex/texlive-latex3
texlive-xetex  @23080  tex/texlive-xetex




Re: [O] TAB

2011-05-30 Thread Ben Finney
Ido Magal i...@idomagal.com writes:

 Fair enough. It never occurred to me that emacs might not support the
 native literal TAB. Thanks.

Emacs does, in its Fundamental mode and many others. But just about
every interesting mode will map the TAB key to something else. So the
issue is a common one for all Emacs users, not special to Org mode.

-- 
 \ “Anyone who is not shocked by quantum theory has not understood |
  `\  it.” —Niels Bohr |
_o__)  |
Ben Finney




Re: [O] special characters for HTML

2011-05-19 Thread Ben Finney
William Henney when...@gmail.com writes:

 Why don't you just write the umlauts directly: ü

 Either use the facilities of your OS, or use one of the German input
 methods of Emacs. For the latter, see the docs for C-\. For the
 former, it all depends on your OS and your keyboard.

Exactly. We're in the third millennium of the calendar, folks; we have
Unicode. The way to get a character into a text document is to put it in
literally.

-- 
 \“It is undesirable to believe a proposition when there is no |
  `\   ground whatever for supposing it true.” —Bertrand Russell, _The |
_o__)   Value of Scepticism_, 1928 |
Ben Finney




Re: [O] Bug: No property change from ‘org-clock-sum’

2011-05-06 Thread Ben Finney
Bernt Hansen be...@norang.ca writes:

 I don't think the org-clock-sum function does what you think/want it
 to do. The docstring says it sets text properties on the headline - so
 I don't think it is intended to update a CLOCKSUM property in the
 headings.

I don't underastand the distinction. Isn't the CLOCKSUM property a text
property? What do I need to know here?

 These text properties are temporary (ie. not saved in the org file) and
 I think these are used by the column view overlays for display-only.

 The org-invoice.el contributed file created by Peter Jones uses a
 CLOCKSUM property but I'm not sure if this is intended to be updated
 manually or automatically from the clocking lines in org.  I've CC-ed
 Peter in case he can shed any light on this.

Thanks. It does seem that they're much the same purpose, so I hope they
can be unified.

-- 
 \ “To succeed in the world it is not enough to be stupid, you |
  `\must also be well-mannered.” —Voltaire |
_o__)  |
Ben Finney




Re: [O] Bug: No property change from ‘org-clock-sum’

2011-05-06 Thread Ben Finney
Carsten Dominik carsten.domi...@gmail.com writes:

 However, I seen now that there is a bug here, cause by a rewrite (for
 speed) of property access some time ago. After that rewrite, the
 special CLOCKSUM property used by org-invoice.el was no longer
 accessible.

Thanks! I am glad to finally have attracted enough attention to this bug
:-)


Bernt Hansen be...@norang.ca writes:

 Carsten Dominik carsten.domi...@gmail.com writes:
  This problem has just been fixed, so with the current git master,
  org-invoice.el should work again.

 Ah! Thanks Carsten.  It does indeed return values after this fix.

Great. I look forward to a new release making its way into Debian.

Thanks again for the diagnosis and bug fix, guys.

-- 
 \ “Pinky, are you pondering what I'm pondering?” “I think so, |
  `\Brain, but if we give peas a chance, won't the lima beans feel |
_o__)left out?” —_Pinky and The Brain_ |
Ben Finney




Re: [O] Bug: No property change from ‘org-clock-sum’

2011-05-05 Thread Ben Finney
Ben Finney ben+em...@benfinney.id.au writes:

 When I use ‘org-clock-sum’ in Org-mode version 7.4, nothing appears to
 happen: the items in the subtree are not updated and no ‘CLOCKSUM’
 property appears.

 Org-mode version 7.4
 GNU Emacs 23.2.1 (powerpc-unknown-linux-gnu, GTK+ Version 2.20.1) of
 2010-12-12 on porpora, modified by Debian

This is still the case after an upgrade:

Org-mode version 7.5
GNU Emacs 23.3.1 (powerpc-unknown-linux-gnu, GTK+ Version 2.24.4) of
2011-04-11 on praetorius, modified by Debian

 Why wouldn't the ‘org-clock-sum’ function do what its doc string says?
 How should I be updating the ‘CLOCKSUM’ property?

Can anyone shed light on this? I'd like to use the function as
specified.

-- 
 \   “To have the choice between proprietary software packages, is |
  `\  being able to choose your master. Freedom means not having a |
_o__)master.” —Richard M. Stallman, 2007-05-16 |
Ben Finney




Re: [O] [semi-OT] issue trackers?

2011-05-05 Thread Ben Finney
Matt Price mopto...@gmail.com writes:

 I'm collaborating on a project where I'm starting to feel the need for a
 shared issue tracker.  Anyone have any suggestions?

Roundup URL:http://www.roundup-tracker.org/ is a self-contained issue
tracker that communicates via web and email interfaces, and is quite
extensively customisable.

 I'd love something that integrates with org-mode somehow, but my
 collaborators are definitively NOT emacs users.

I don't know of any issue trackers that integrate with Org mode in any
way. You could start with having Emacs send automatically-composed email
messages to Roundup in response to your actions in Org mode, and perhaps
later look at more customised integration.

-- 
 \ “Buy not what you want, but what you need; what you do not need |
  `\ is expensive at a penny.” —Cato, 234–149 BCE, Relique |
_o__)  |
Ben Finney




Re: [O] Dumbquotes in exported source listings

2011-05-01 Thread Ben Finney
Nick Dokos nicholas.do...@hp.com writes:

 Ben Finney ben+em...@benfinney.id.au wrote:

  TeX and some other legacy systems don't work very well with Unicode.

 AFAIK, TeX works fine with UTF8, given the defaults that org-mode
 export uses.

To be clear, I don't have any issue with Org and Unicode (I've never
exported an Org file to TeX). I was mainly addressing the terminology
for the style of quotes described by the OP.

-- 
 \   “Too many Indians spoil the golden egg.” —Sir Joh |
  `\   Bjelke-Petersen |
_o__)  |
Ben Finney




Re: [O] Dumbquotes in exported source listings

2011-04-30 Thread Ben Finney
Avdi Grimm gro...@inbox.avdi.org writes:

 One issue: my beta reviewers have noted that when copy-and-pasting
 source code listings that contain single-quoted strings, they are
 getting smart quotes--i.e. the first quote is a backquote, the
 second quote is a single quote. This breaks the pasted code.

Those aren't even “smart quotes” (the term usually applied to the quote
characters from Microsoft's standards-violating character set). Those
are what might be called “TeX quotes” (though the convention pre-dates
even TeX), since TeX uses ‘`’ for an opening single quote and ‘``’ for
an opening double quote.

Nowadays with Unicode available ubiquitously we can simply use the
correct typographical quotation marks directly in the plain text file,
but TeX and some other legacy systems don't work very well with Unicode.

-- 
 \  “Often, the surest way to convey misinformation is to tell the |
  `\   strict truth.” —Mark Twain, _Following the Equator_ |
_o__)  |
Ben Finney




Re: [O] emdash and endash

2011-04-18 Thread Ben Finney
Matt Lundin m...@imapmail.org writes:

 To ensure consistency of export, I have gotten in the habit of using
 three hyphens for the emdash in ASCII---even in mail.

I just write the characters – choosing the right one for my purpose – in
Unicode. It's already the third millennium of our calendar — we can
expect Unicode support, and harangue those who haven't joined us in the
international village yet.

-- 
 \ “Teach a man to make fire, and he will be warm for a day. Set a |
  `\   man on fire, and he will be warm for the rest of his life.” |
_o__) —John A. Hrastar |
Ben Finney




Re: [O] emdash and endash

2011-04-17 Thread Ben Finney
Samuel Wales samolog...@gmail.com writes:

 1 dash: - 2 -- 3 ---
 1 dash: - 2 – 3 —

 When I write in ASCII, I notate emdash like --.  I think this is
 standard.

I think not. I see many (non-Org) ASCII documents that distinguish a
notional em dash from en dash by different number of hyphens, as in your
first list.

 I never use --- in ASCII. Is there a way to make -- export as
 emdash in order to be consistent with ASCII?

“Consistent with ASCII”? ASCII has neither en dash nor em dash, so it's
not ASCII that you're wanting to be consistent with. You're referring to
conventions that attempt to preserve Unicode characters in ASCII.

-- 
 \   “… whoever claims any right that he is unwilling to accord to |
  `\ his fellow-men is dishonest and infamous.” —Robert G. |
_o__)   Ingersoll, _The Liberty of Man, Woman and Child_, 1877 |
Ben Finney




[O] No property change from ‘org-clock-sum’

2011-04-01 Thread Ben Finney
Howdy all,

When I use ‘org-clock-sum’ in Org-mode version 7.4, nothing appears to
happen: the items in the subtree are not updated and no ‘CLOCKSUM’
property appears.


I'm trying to generate an invoice report using ‘org-invoice.el’.

The items on which I want to report have clock entries, generated
correctly with ‘org-clock-in’ and ‘org-clock-out’. An example:

=
* foo
** bar
*** [2011-03-24 Thu]
CLOCK: [2011-03-24 Thu 14:15]--[2011-03-24 Thu 18:03] =  3:48
CLOCK: [2011-03-24 Thu 09:10]--[2011-03-24 Thu 12:27] =  3:17
*** [2011-03-23 Wed]
CLOCK: [2011-03-23 Wed 14:10]--[2011-03-23 Wed 18:16] =  4:06
CLOCK: [2011-03-23 Wed 09:30]--[2011-03-23 Wed 13:10] =  3:40
*** [2011-03-22 Tue]
CLOCK: [2011-03-22 Tue 14:00]--[2011-03-22 Tue 17:30] =  3:30
CLOCK: [2011-03-22 Tue 08:58]--[2011-03-22 Tue 13:31] =  4:33
=

According to the doc string for ‘org-invoice-report’, the ‘CLOCKSUM’
property on each item in the subtree will be used for the report.

So apparently I need to ‘org-clock-sum’ on the tree before updating the
report, in order to automatically generate the ‘CLOCKSUM’ property. But
that function doesn't change anything.

Why wouldn't the ‘org-clock-sum’ function do what its doc string says?
How should I be updating the ‘CLOCKSUM’ property?

-- 
 \ “Pinky, are you pondering what I'm pondering?” “I think so, |
  `\   Brain, but why does a forklift have to be so big if all it does |
_o__)   is lift forks?” —_Pinky and The Brain_ |
Ben Finney




[O] [PATCH] Bury calendar buffer after C-c .?

2011-03-30 Thread Ben North
Hi,

I've been using org-mode for a little while now, and finding it very
useful --- thanks!

Would you consider a patch along the lines of the attached, to bury the
calendar buffer once you've chosen a date via C-c .?  I often want to
do switch-to-other-buffer to check something in the most recently used
buffer, and find myself looking at the calendar instead.

Regards,

Ben.

(The '-diff-wU10' one ignores whitespace changes, so you can see what
I've done; the '-diff-U10' one includes all whitespace changes, for
better applying.)


org.el.patch-diff-wU10
Description: Binary data


org.el.patch-diff-U10
Description: Binary data


[O] Re: List-table feature (or a potential quick and easy mullti-lines table in org?)

2011-03-18 Thread Ben


 I went that way because it was easier to implement. Though, there is
 code somewhere to transpose tables (in Library of Babel, I think). So
 you can type list items as columns instead, change the list into
 a table, and transpose it. Voilà.


Brilliant! Thank you again Nicolas!

 -- Ben


[O] List-table feature (or a potential quick and easy mullti-lines table in org?)

2011-03-17 Thread Ben
Dear Orgers,

I would have a question for you. I'm writing more and more documentation in
OrgMode (with HTML and DocBook exports) and I'm very happy with it. There's
a little hitch though on tables. Org tables are great with one known and
documented constraints: it does not accept multi lines [1].

In some types of documents it can be a challenge, however, editing large
columns could be a mess too.

I'm thinking about a potential alternative and I would like to know if
anyone here would know if this can be done with org.
ReStructured Text [2] has a nice feature called list-tables. As you can
guess from the name, you write a list and an instruction to process it and
it creates a table out of the list in the export target. See the ReST
documentation for a quick explanation [3]. What is does it to transform a
nested list in a simple table. And potentially it would make long list items
/ table content easy to edit.

Does anyone has heard of such a possibility in Org?

Many thanks to all!

  -- Ben


[1] http://orgmode.org/worg/org-faq.html#table-multiline-fields
[2] http://docutils.sourceforge.net/rst.html
[3] http://docutils.sourceforge.net/docs/ref/rst/directives.html#list-table


[O] Re: List-table feature (or a potential quick and easy mullti-lines table in org?)

2011-03-17 Thread Ben


 Out of boredom, I've written a draft for it.



Woohoo! congrats for the way you're getting bored!
Hey thank you Nicolas!



 #+begin_src emacs-lisp


So here I'm guessing the whole code fits into Babel, right?

All of this will convert

(...)

 | Row 1 | 1.1 | 1.2 | 1.3 |
 | Row 2 | 2.1 | 2.2 | 2.3 |


Oh actually you went the 'line' way -- and not the column.
Considering, I actually think you're right.
I got used to the ReST way (1 item + sub-items = 1 column) but I think your
way seems more natural.
Cool, thank you again!



 and the other way.


I'm afraid I don't get the 'and the other way', does it means your code can
go the column way as well?!

Splendid thanks again Nicolas!

  -- Ben


[O] Re: [Orgmode] Re: Org Babel and R issue with pdf latex export

2011-02-28 Thread Ben Ward

On 28/02/2011 11:24, Rainer M Krug wrote:

On Mon, Feb 28, 2011 at 8:07 AM, Ben Wardbenjamin.w...@bathspa.org  wrote:

On Sun, 2011-02-27 at 21:35 -0800, Dan Davison wrote:

Ben Wardbenjamin.w...@bathspa.org  writes:


Hi,

I recently installed emacs, org-mode fresh on a new install of Arch
Linux. Before I had it working on Ubuntu.

I've installed everything as before and used the same .emacs file I had,
but if I use org to write out some R script and export to pdf via latex,
then I get an empty pdf document, with only the title and Contents
heading. However if I export to anything else such as html it works, and
shows me code and results.

Hi Ben,

Are you sure this problem concerns babel/R? What happens when you export
an Org document to pdf without any babel stuff?

Can you provide an example Org file that you are having trouble
exporting to pdf? The problem is probably in your local configuration,
so if no-one can jump to the solution then start from a minimal working
config and try to find the part of your .emacs which is causing the
problem.

Dan


Hi, I've tried exporting an org file that has no code in it to PDF and
it works without any trouble.

The file I'm trying to export is:
#+TITLE: Test
#+AUTHOR: Ben J. Ward
#+LATEX_CLASS: article
#+BABEL: :session *R* :results output
\pagebreak

Test:

#+begin_src R :exports both
x-c(1,2,3,4,5)
y-c(5,10,15,20)
x
y
xy-(x*y)
xy
#+end_src

When I use your example and export it to LaTeX,

I get this:

#
% Created 2011-02-28 Mon 12:21
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage{color}
\usepackage{listings}
\providecommand{\alert}[1]{\textbf{#1}}
\begin{document}



\title{Test}
\author{Ben J. Ward}
\date{28 February 2011}
\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
The file I'm trying to export is:
\pagebreak

Test:

\lstset{language=R}
\begin{lstlisting}
x-c(1,2,3,4,5)
y-c(5,10,15,20)
x
y
xy-(x*y)
xy
\end{lstlisting}

\begin{verbatim}
  [1] 1 2 3 4 5
  [1]  5 10 15 20
  Warning message:
  In x * y : longer object length is not a multiple of shorter object length
  [1]  5 20 45 80 25
\end{verbatim}



\end{document}
#
So it works for me - have you tried to export to LaTex? If that works,
it is a LaTeX / pdf issue.

Rainer

Hi, I've just tried and I still get the same as before, but it works to 
latex, when there is no src code chunks.

This is my .emacs:

(require 'ess-site)
(require 'org-install)
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-cc 'org-capture)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(transient-mark-mode 1)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (emacs-lisp . t)
   ))

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(org-confirm-babel-evaluate nil))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

Thanks,
Ben W.


I can include my .emacs although it's lengthy.

I uninstalled all of my emacs stuff, and installed it from the vanilla
downloads on their respective sites, and I'm still getting the same
result. I'm considering removing all my tex stuff and installing the
vanilla texlive too.

Thanks,
Ben W.


I've tried even installing a version of org
mode from source, using the build system my distro has, so as it's made
and installed to exactly the right place, but I still don't have any
luck. The texlive version I'm using is from my distro's package manager.
Using C-c C-c to evaluate on the fly works. I had an issue getting org
and babel to work with R on Windows 7 as well, but it was because
certain tex packages were missing and I recieved a message when I tried
to export, but nothing comes up here.

Would the recent change:
Org-babel is now inside org, remove (require 'org-babel-init)
   and alike from your .emacs.
   Look at http://orgmode.org/Changes.html#ob-configuration-changes
   for overview of the settings.
Be causing the entire issue?

The .tex file I get out is thus:
% Created 2011-02-28 Mon 03:47
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul

Re: [O] Re: [Orgmode] Re: Org Babel and R issue with pdf latex export

2011-02-28 Thread Ben Ward
On Mon, 2011-02-28 at 11:56 -0600, Erik Iverson wrote:
 Ben,
 
 And what about your .Rprofile. Since your R code does produce
 a warning, I wonder if you have instructed R to take some
 special action when it sees one?
 

R on my system is as default with no special instruction by me. Tried
removing the source of error in the code block, still no luck. My *R*
Buffer contains:

 options(STERM='iESS', editor='emacsclient')
 x-c(1,2,3,4,5)
y-c(5,10,15,20)
x
y
'org_babel_R_eoe'
x-c(1,2,3,4,5)
 y-c(5,10,15,20)
 x
[1] 1 2 3 4 5
 y
[1]  5 10 15 20
 'org_babel_R_eoe'
[1] org_babel_R_eoe
 

Thanks,
Ben.

 --Erik
 
 Ben Ward wrote:
  On 28/02/2011 11:24, Rainer M Krug wrote:
  On Mon, Feb 28, 2011 at 8:07 AM, Ben Wardbenjamin.w...@bathspa.org  
  wrote:
  On Sun, 2011-02-27 at 21:35 -0800, Dan Davison wrote:
  Ben Wardbenjamin.w...@bathspa.org  writes:
 
  Hi,
 
  I recently installed emacs, org-mode fresh on a new install of Arch
  Linux. Before I had it working on Ubuntu.
 
  I've installed everything as before and used the same .emacs file I 
  had,
  but if I use org to write out some R script and export to pdf via 
  latex,
  then I get an empty pdf document, with only the title and Contents
  heading. However if I export to anything else such as html it 
  works, and
  shows me code and results.
  Hi Ben,
 
  Are you sure this problem concerns babel/R? What happens when you 
  export
  an Org document to pdf without any babel stuff?
 
  Can you provide an example Org file that you are having trouble
  exporting to pdf? The problem is probably in your local configuration,
  so if no-one can jump to the solution then start from a minimal working
  config and try to find the part of your .emacs which is causing the
  problem.
 
  Dan
 
  Hi, I've tried exporting an org file that has no code in it to PDF and
  it works without any trouble.
 
  The file I'm trying to export is:
  #+TITLE: Test
  #+AUTHOR: Ben J. Ward
  #+LATEX_CLASS: article
  #+BABEL: :session *R* :results output
  \pagebreak
 
  Test:
 
  #+begin_src R :exports both
  x-c(1,2,3,4,5)
  y-c(5,10,15,20)
  x
  y
  xy-(x*y)
  xy
  #+end_src
  When I use your example and export it to LaTeX,
 
  I get this:
 
  #
  % Created 2011-02-28 Mon 12:21
  \documentclass[11pt]{article}
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage{fixltx2e}
  \usepackage{graphicx}
  \usepackage{longtable}
  \usepackage{float}
  \usepackage{wrapfig}
  \usepackage{soul}
  \usepackage{textcomp}
  \usepackage{marvosym}
  \usepackage{wasysym}
  \usepackage{latexsym}
  \usepackage{amssymb}
  \usepackage{hyperref}
  \tolerance=1000
  \usepackage{color}
  \usepackage{listings}
  \providecommand{\alert}[1]{\textbf{#1}}
  \begin{document}
 
 
 
  \title{Test}
  \author{Ben J. Ward}
  \date{28 February 2011}
  \maketitle
 
  \setcounter{tocdepth}{3}
  \tableofcontents
  \vspace*{1cm}
  The file I'm trying to export is:
  \pagebreak
 
  Test:
 
  \lstset{language=R}
  \begin{lstlisting}
  x-c(1,2,3,4,5)
  y-c(5,10,15,20)
  x
  y
  xy-(x*y)
  xy
  \end{lstlisting}
 
  \begin{verbatim}
[1] 1 2 3 4 5
[1]  5 10 15 20
Warning message:
In x * y : longer object length is not a multiple of shorter object 
  length
[1]  5 20 45 80 25
  \end{verbatim}
 
 
 
  \end{document}
  #
  So it works for me - have you tried to export to LaTex? If that works,
  it is a LaTeX / pdf issue.
 
  Rainer
 
  Hi, I've just tried and I still get the same as before, but it works to 
  latex, when there is no src code chunks.
  This is my .emacs:
  
  (require 'ess-site)
  (require 'org-install)
  (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
  (global-set-key \C-cl 'org-store-link)
  (global-set-key \C-cc 'org-capture)
  (global-set-key \C-ca 'org-agenda)
  (global-set-key \C-cb 'org-iswitchb)
  (transient-mark-mode 1)
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((R . t)
 (emacs-lisp . t)
 ))
  
  (custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
   '(org-confirm-babel-evaluate nil))
  (custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
   )
  
  Thanks,
  Ben W.
  
  I can include my .emacs although it's lengthy.
 
  I uninstalled all of my emacs stuff, and installed it from the vanilla
  downloads on their respective sites, and I'm still getting the same
  result. I'm considering removing all my tex stuff and installing the
  vanilla texlive too.
 
  Thanks,
  Ben W.
 
  I've tried even installing a version of org
  mode from source, using the build system my

[Orgmode] Org-Babel and R - no latex output

2011-02-27 Thread Ben Ward
Hi,

I recently installed emacs, org-mode fresh on a new install of Arch
Linux. Before I had it working on Ubuntu.

I've installed everything as before and used the same .emacs file I had,
but if I use org to write out some R script and export to pdf via latex,
then I get an empty pdf document, with only the title and Contents
heading. However if I export to anything else such as html it works, and
shows me code and results. I've tried even installing a version of org
mode from source, using the build system my distro has, so as it's made
and installed to exactly the right place, but I still don't have any
luck. The texlive version I'm using is from my distro's package manager.
Using C-c C-c to evaluate on the fly works. I had an issue getting org
and babel to work with R on Windows 7 as well, but it was because
certain tex packages were missing and I recieved a message when I tried
to export, but nothing comes up here. 

Would the recent change:
Org-babel is now inside org, remove (require 'org-babel-init) 
  and alike from your .emacs.
  Look at http://orgmode.org/Changes.html#ob-configuration-changes 
  for overview of the settings.
Be causing the entire issue?

The .tex file I get out is thus:
% Created 2011-02-28 Mon 03:47
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\providecommand{\alert}[1]{\textbf{#1}}
\begin{document}



\title{Test}
\author{Ben J. Ward}
\date{28 February 2011}
\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\end{document}

Thanks,
Ben W.


___
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


[Orgmode] Org Babel and R issue with pdf latex export

2011-02-27 Thread Ben Ward
Hi,

I recently installed emacs, org-mode fresh on a new install of Arch
Linux. Before I had it working on Ubuntu.

I've installed everything as before and used the same .emacs file I had,
but if I use org to write out some R script and export to pdf via latex,
then I get an empty pdf document, with only the title and Contents
heading. However if I export to anything else such as html it works, and
shows me code and results. I've tried even installing a version of org
mode from source, using the build system my distro has, so as it's made
and installed to exactly the right place, but I still don't have any
luck. The texlive version I'm using is from my distro's package manager.
Using C-c C-c to evaluate on the fly works. I had an issue getting org
and babel to work with R on Windows 7 as well, but it was because
certain tex packages were missing and I recieved a message when I tried
to export, but nothing comes up here. 

Would the recent change:
Org-babel is now inside org, remove (require 'org-babel-init) 
  and alike from your .emacs.
  Look at http://orgmode.org/Changes.html#ob-configuration-changes 
  for overview of the settings.
Be causing the entire issue?

The .tex file I get out is thus:
% Created 2011-02-28 Mon 03:47
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\providecommand{\alert}[1]{\textbf{#1}}
\begin{document}



\title{Test}
\author{Ben J. Ward}
\date{28 February 2011}
\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\end{document}

Thanks,
Ben W.
(Apologies if this has been sent twice, first time an error occured)


___
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


[Orgmode] Re: Org Babel and R issue with pdf latex export

2011-02-27 Thread Ben Ward
On Sun, 2011-02-27 at 21:35 -0800, Dan Davison wrote:
 Ben Ward benjamin.w...@bathspa.org writes:
 
  Hi,
 
  I recently installed emacs, org-mode fresh on a new install of Arch
  Linux. Before I had it working on Ubuntu.
 
  I've installed everything as before and used the same .emacs file I had,
  but if I use org to write out some R script and export to pdf via latex,
  then I get an empty pdf document, with only the title and Contents
  heading. However if I export to anything else such as html it works, and
  shows me code and results.
 
 Hi Ben,
 
 Are you sure this problem concerns babel/R? What happens when you export
 an Org document to pdf without any babel stuff?
 
 Can you provide an example Org file that you are having trouble
 exporting to pdf? The problem is probably in your local configuration,
 so if no-one can jump to the solution then start from a minimal working
 config and try to find the part of your .emacs which is causing the
 problem.
 
 Dan
 
Hi, I've tried exporting an org file that has no code in it to PDF and
it works without any trouble. 

The file I'm trying to export is:
#+TITLE: Test
#+AUTHOR: Ben J. Ward
#+LATEX_CLASS: article
#+BABEL: :session *R* :results output
\pagebreak

Test:

#+begin_src R :exports both
x-c(1,2,3,4,5)
y-c(5,10,15,20)
x
y
xy-(x*y)
xy
#+end_src

I can include my .emacs although it's lengthy.

I uninstalled all of my emacs stuff, and installed it from the vanilla
downloads on their respective sites, and I'm still getting the same
result. I'm considering removing all my tex stuff and installing the
vanilla texlive too.

Thanks,
Ben W.

 
  I've tried even installing a version of org
  mode from source, using the build system my distro has, so as it's made
  and installed to exactly the right place, but I still don't have any
  luck. The texlive version I'm using is from my distro's package manager.
  Using C-c C-c to evaluate on the fly works. I had an issue getting org
  and babel to work with R on Windows 7 as well, but it was because
  certain tex packages were missing and I recieved a message when I tried
  to export, but nothing comes up here. 
 
  Would the recent change:
  Org-babel is now inside org, remove (require 'org-babel-init) 
and alike from your .emacs.
Look at http://orgmode.org/Changes.html#ob-configuration-changes 
for overview of the settings.
  Be causing the entire issue?
 
  The .tex file I get out is thus:
  % Created 2011-02-28 Mon 03:47
  \documentclass[11pt]{article}
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage{fixltx2e}
  \usepackage{graphicx}
  \usepackage{longtable}
  \usepackage{float}
  \usepackage{wrapfig}
  \usepackage{soul}
  \usepackage{textcomp}
  \usepackage{marvosym}
  \usepackage{wasysym}
  \usepackage{latexsym}
  \usepackage{amssymb}
  \usepackage{hyperref}
  \tolerance=1000
  \providecommand{\alert}[1]{\textbf{#1}}
  \begin{document}
 
 
 
  \title{Test}
  \author{Ben J. Ward}
  \date{28 February 2011}
  \maketitle
 
  \setcounter{tocdepth}{3}
  \tableofcontents
  \vspace*{1cm}
 
  \end{document}
 
  Thanks,
  Ben W.
  (Apologies if this has been sent twice, first time an error occured)
 
 
  ___
  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
 



___
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


[Orgmode] Images from R in LaTeX and PDF

2011-01-07 Thread Ben Ward

Hi All,

I've been doing some work with babel and R to generate graphs that I've 
then been including useing attr latex.


But when I include images the always appear very very small, even when I 
mess about with the width settings of the attr latex line and remove the 
options for wrap and such.


Does anybody else use R with images and org, and could tell me how they 
handle including R graphics in their documents?


Thanks,
Ben. W

___
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


Re: [Orgmode] Images from R in LaTeX and PDF

2011-01-07 Thread Ben Ward


#+begin_src R :exports both
 full - read.csv(file=~/Documents/BSc Biology/Third Year/BY6001-40 - 
Dissertation/Data and Analysis/Evolution Results.csv, head=T)

 library(lattice)
 ecoli = subset(full, Bacterium==E.coli)
 edett = subset(ecoli, Cleaner==Dettol)
 egarl = subset(ecoli, Cleaner==Garlic)
MIC.mod = lm(MIC. ~ 1+Challenge*Cleaner*Replicate, data=ecoli)
#+end_src

#+begin_src R :file fig1.pdf
 xyplot( MIC.+fitted(MIC.mod) ~ Challenge, data=ecoli, 
xlab=Challenge, ylab=MIC %, auto.key=TRUE)

#+end_src

#+attr_latex: width=0.6\textwidth wrap placement={h}{0.4\textwidth}
#+label: fig:one
#+caption: Linar Plot of real data and fitted model values
#+results: fig1
[[file:fig1.pdf]]

In the case of this code, actually altering size works, but it keeps 
putting the image at the end of my document. Then other images, placed 
with pretty much the same code, give or take for filenames and such, 
won't increace in size, but will alter their movement.

I'm wondering if using pure latex for my images would be an easier solution.

Cheers,
Ben.


On 07/01/2011 18:30, Thomas S. Dye wrote:

Aloha Ben,

Can you share an example that doesn't work for you?

All the best,
Tom

On Jan 7, 2011, at 7:23 AM, Ben Ward wrote:


Hi All,

I've been doing some work with babel and R to generate graphs that 
I've then been including useing attr latex.


But when I include images the always appear very very small, even 
when I mess about with the width settings of the attr latex line and 
remove the options for wrap and such.


Does anybody else use R with images and org, and could tell me how 
they handle including R graphics in their documents?


Thanks,
Ben. W

___
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







___
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


Re: [Orgmode] Images from R in LaTeX and PDF

2011-01-07 Thread Ben Ward
I'm using 7.4, which I think (unless a new versions recently arisen), 
the latest one, as it was recommended for interacting with R through babel.


Thanks,
Ben W.
On 07/01/2011 19:45, Erik Iverson wrote:

And what version of org are you using?

Ben Ward wrote:


#+begin_src R :exports both
 full - read.csv(file=~/Documents/BSc Biology/Third Year/BY6001-40 
- Dissertation/Data and Analysis/Evolution Results.csv, head=T)

 library(lattice)
 ecoli = subset(full, Bacterium==E.coli)
 edett = subset(ecoli, Cleaner==Dettol)
 egarl = subset(ecoli, Cleaner==Garlic)
MIC.mod = lm(MIC. ~ 1+Challenge*Cleaner*Replicate, data=ecoli)
#+end_src

#+begin_src R :file fig1.pdf
 xyplot( MIC.+fitted(MIC.mod) ~ Challenge, data=ecoli, 
xlab=Challenge, ylab=MIC %, auto.key=TRUE)

#+end_src

#+attr_latex: width=0.6\textwidth wrap placement={h}{0.4\textwidth}
#+label: fig:one
#+caption: Linar Plot of real data and fitted model values
#+results: fig1
[[file:fig1.pdf]]

In the case of this code, actually altering size works, but it keeps 
putting the image at the end of my document. Then other images, 
placed with pretty much the same code, give or take for filenames and 
such, won't increace in size, but will alter their movement.
I'm wondering if using pure latex for my images would be an easier 
solution.


Cheers,
Ben.


On 07/01/2011 18:30, Thomas S. Dye wrote:

Aloha Ben,

Can you share an example that doesn't work for you?

All the best,
Tom

On Jan 7, 2011, at 7:23 AM, Ben Ward wrote:


Hi All,

I've been doing some work with babel and R to generate graphs that 
I've then been including useing attr latex.


But when I include images the always appear very very small, even 
when I mess about with the width settings of the attr latex line 
and remove the options for wrap and such.


Does anybody else use R with images and org, and could tell me how 
they handle including R graphics in their documents?


Thanks,
Ben. W

___
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







___
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






___
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


Re: [Orgmode] Babel and R issue when exporting to PDF via LaTeX in Windows 7

2011-01-03 Thread Ben Ward

On 03/01/2011 15:57, Erik Iverson wrote:



Ben Ward wrote:

Hi, all, I hope someone can help with this issue,

Unfortunately I'm having a work PC upgrade, and it means Windows 7 
and the order not to install any other system on it for compatibility 
and for the IT experts - I use the term loosely, to only need to know 
how to use one system.


Im trying to get org-mode set up with emacs so I can icorporate R 
code in my documents - like Sweave functionality. I have this 
achieved in Arch Linux. Howeer when I export to PDF in Windows 7 I'm 
just getting a PDF with Titl, Author, Date, and Contents and then no 
R stuff.


Is R in your path?  ESS uses its own tricks to find a valid version
of R on your system, but I think org-mode will just use your system
path, if I recall correctly.



Thats it! It works now =] I didn't realise/forgot Windows 7 needed stuff 
to be added to the path manually, I've not needed to do it on my other 
systems. I assumed the lovely .exe installer wizards would take care of 
such things when installing stuff.


Thanks,
Ben.

___
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


[Orgmode] Babel and R issue when exporting to PDF via LaTeX in Windows 7

2011-01-02 Thread Ben Ward

Hi, all, I hope someone can help with this issue,

Unfortunately I'm having a work PC upgrade, and it means Windows 7 and 
the order not to install any other system on it for compatibility and 
for the IT experts - I use the term loosely, to only need to know how to 
use one system.


Im trying to get org-mode set up with emacs so I can icorporate R code 
in my documents - like Sweave functionality. I have this achieved in 
Arch Linux. Howeer when I export to PDF in Windows 7 I'm just getting a 
PDF with Titl, Author, Date, and Contents and then no R stuff.


I have set up emacs by extracting emacs-23.2-bin-i386. Program Files, 
and I ran addpm.exe. My home is set to C:\Users\My Name and in that 
location, I have a folder .emacs.d, which contains my init.el, because 
it's awkward to begin a filename with a dot.


I extracted the vaniall ESS zip file to C:\Program 
Files\emacs-23.2-bin-i386\site-lisp, and I did the same for org 7.4.


I then had the following init.el setup:

 ;; Loading ESS
 (require 'ess-site)

 ;; Loading Org-Mode
 (require 'org-install)
 (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
 (global-set-key \C-cl 'org-store-link)
 (global-set-key \C-ca 'org-agenda)
 (global-set-key \C-cb 'org-iswitchb)
 (global-font-lock-mode 1)
 (transient-mark-mode 1)

 ;; Babel Configuration
 (org-babel-do-load-languages 'org-babel-load-languages '((R . 
t)(ditaa . t)(dot . t)(emacs-lisp . t)(gnuplot . nil)(haskell . 
nil)(latex . t)(ocaml . nil)(perl . t)(python . t)(ruby . t)(screen . 
nil)(sh . t)(sql . nil)(sqlite . nil)))


This in Linux: the extraction and installation of ess, and install of 
org 7.4 (in Linux I would use make install, but in Windows when I just 
extract it to site-lisp, and then go into Emacs with the above init file 
and do M-x org and show the version number it changes from the old 5.** 
to 7.4, so it's clearly loading the right stuff), would normally be 
enough for everything to work. However in Windows I'm getting blank 
PDF's without any R stuff, although I did do a HTML export and the R 
code and results did get included into that.


The org file with test R code is really very simple:

 #+TITLE: A Test of the org-babel features with the R Stats Language, 
with a Windows 7 setup.

#+AUTHOR: Ben J. Ward
#+BABEL: :session *R* :results output

Below is code generating a vector calld data, and then a call of it's 
name that should display the numbers that make it up:


#+begin_src R :exports both
data - c(1,2,3,4,5)
data
#+end_src

I've tried first with TeXLive and then with MiKTeX and I've had trouble 
with both. Yet the evaluation through ESS is definately working: I can 
do C-c C-c on code chunks and get the familar #+results: line in my org 
file as I do it.


My Linux install uses TeXLive - incase it's relevant.

If anyone can give me some advice or instruction with this I'd be 
eternally grateful.


Thanks,
Ben Ward.

--
For extra information, you can see the intermediate .tex file produced, 
below - it doesent contain any verbatim of code or output of R:


 % Created 2011-01-02 Sun 19:25

 \documentclass[11pt]{article}

 \usepackage[latin1]{inputenc}

 \usepackage[T1]{fontenc}

 \usepackage{fixltx2e}

 \usepackage{graphicx}

 \usepackage{longtable}

 \usepackage{float}

 \usepackage{wrapfig}

 \usepackage{soul}

 \usepackage{textcomp}

 \usepackage{marvosym}

 \usepackage{wasysym}

 \usepackage{latexsym}

 \usepackage{amssymb}

 \usepackage{hyperref}

 \tolerance=1000

 \providecommand{\alert}[1]{\textbf{#1}}

 \begin{document}

 \title{A Test of the org-babel features with the R Stats Language, 
with a Windows 7 setup.}


 \author{Ben J. Ward}

 \date{02 January 2011}

 \maketitle

 \setcounter{tocdepth}{3}

 \tableofcontents

 \vspace*{1cm}

 \end{document}




___
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


Re: [Orgmode] arranging and publishing music with Org-mode and lilypond

2010-10-04 Thread Ben
 Agreed! I've used Lilypond before and it's awesome. It's pretty much as cool
 as LaTeX in my opinion. Write some text, export and holy crap you've got
 magically beautiful sheet music! I had not thought of Org-mode integration,
 but that would indeed be quite nifty.

What an exciting perspective! org and lilypond combined together would
be ... well, just fantastic!

 -- Ben

___
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


[Orgmode] Re: A request: Moving away from ChangeLog

2010-05-21 Thread Ben Finney
Carsten Dominik carsten.domi...@gmail.com writes:

 On May 21, 2010, at 11:41 AM, John Wiegley wrote:
  This makes it trivial to build ChangeLog entries for a range of
  commits, suitable for submission to Emacs. It may need a bit more
  work to be production-ready, but it can already produce a ChangeLog
  for all of org-mode.
[…]

 If this works, lets stop writing ChangeLog.

This is a great improvement.

It seems worth pointing out explicitly, though: Eliminating a
manually-maintained ChangeLog doesn't obviate the need for a ChangeLog
(or the equivalent) in the distributed source.

This is because the copyright holders license their works under the
GPLv2, and §2.a of those terms requires the work to include dated notice
of all modifications made to the work. This is conventionally understood
to be most directly satisfied by a ChangeLog in the distributed source
for the work.

Generating that file automatically from the VCS commit messages, at the
time a source release is packaged, is a good use of the VCS.

 This will make most merges working without hickups, finally.  And it
 will make us, hopefully, write better commit messages.

Indeed. Having one canonical location for a piece of information, with
every other instance of it derived from that location, can help reduce
the burden of recording that information.

-- 
 \   “I disapprove of what you say, but I will defend to the death |
  `\ your right to say it.” —Evelyn Beatrice Hall, _The Friends of |
_o__)  Voltaire_, 1906 |
Ben Finney


___
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


[Orgmode] Re: Gmane readers - please subscribe

2010-04-27 Thread Ben Finney
Tyler Smith tyler.sm...@eku.edu writes:

 Ben Finney ben+em...@benfinney.id.au writes:

  A large part of my reason for reading via Gmane is to avoid yet
  another set of authentication credentials. Especially one that I
  never use; that's a security nightmare waiting to happen. So I'm not
  interested in increasing my security exposure by making a Mailman
  account on yet another site.

 Yikes! What nightmare awaits those of us who've foolishly gone ahead
 and subscribed? What's my exposure, beyond some nefarious cracker
 impersonating me on emacs-orgmode?

The assumption here is that logging into the mailing list account is
something done infrequently to never for any given user. That's
certainly the case for just about any list I've subscribed to.

For an infrequently-to-never used passphrase, one of two things is the
case: either it's unique, or it is identical to the passphrase that
accesses some other set of services for the user.

Since it's an infrequently-to-never accessed service, it's an
unreasonable burden to expect the user to maintain unique passphrases
for every such service. If for this list, why not for every such list?

So what usually ends up happening is they're identical for a given
person across many different services. But the more that's the case, the
greater the exposure: any one of those services could manage their
security poorly, or simply be unlucky enough to attract a bored and/or
motivated cracker; and a compromise on any one of them removes any
expectation of security on any of the rest of the services where the
user has the same passphrase.

The sensible policy, therefore, is to cull the proliferation of such
passphrase-requiring infrequently-to-never-accessed accounts. Which, in
turn, means saying a polite “no thank you” to most requests to set up
new accounts.

-- 
 \“The greatest tragedy in mankind's entire history may be the |
  `\   hijacking of morality by religion.” —Arthur C. Clarke, 1991 |
_o__)  |
Ben Finney



___
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


[Orgmode] Re: Gmane readers - please subscribe

2010-04-27 Thread Ben Finney
Sebastian Rose sebastian_r...@gmx.de writes:

 Ben Finney ben+em...@benfinney.id.au writes:
  Since it's an infrequently-to-never accessed service, it's an
  unreasonable burden to expect the user to maintain unique
  passphrases for every such service. If for this list, why not for
  every such list?

 It's easy to maintain unique passphrases, and to create them.

Having done so for many accounts and using many different systems for
doing so, I can assure you that it's easier and more reliable to just
avoid creating such accounts where possible.

-- 
 \“I don't accept the currently fashionable assertion that any |
  `\   view is automatically as worthy of respect as any equal and |
_o__)   opposite view.” —Douglas Adams |
Ben Finney



___
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


[Orgmode] Re: Gmane readers - please subscribe

2010-04-27 Thread Ben Finney
Sebastian Rose sebastian_r...@gmx.de writes:

 OK - there _must_ be a missunderstanding...

Quite probably. But I don't wish to make further noise about a topic
most here likely don't care much about, so I will try to make this my
last message in this thread unless new information comes to light.

 We all post via reply all to support unsubscribed users. They (you?)
 couldn't discuss in realtime otherwise.

In fact, many people in this thread have *not* done that, and I've read
every message sent to the forum just fine. Gmane allows an NNTP
interface to the forum; that's pretty much the point for me. If you are
sending an extra copy to me specifically, please don't; it doesn't help.


As for the many suggestions to set up authentication tokens that lie
dormant: I have explained my position on proliferation of authentication
tokens, and some people have understood. That's good enough for now.
Let's get back to Org-mode discussions :-)

-- 
 \ “Dad always thought laughter was the best medicine, which I |
  `\guess is why several of us died of tuberculosis.” —Jack Handey |
_o__)  |
Ben Finney



___
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


[Orgmode] Re: Gmane readers - please subscribe

2010-04-26 Thread Ben Finney
Carsten Dominik carsten.domi...@gmail.com writes:

 If you are reading emacs-orgmode.org through gmane, please read this
 new FAQ to help take load off the maintainers.

 http://orgmode.org/worg/org-faq.php#ml-subscription-and-gmane

A large part of my reason for reading via Gmane is to avoid yet another
set of authentication credentials. Especially one that I never use;
that's a security nightmare waiting to happen. So I'm not interested in
increasing my security exposure by making a Mailman account on yet
another site.

While I appreciate that administrators would prefer that Gmane readers
subscribe, I think their chosen mailing list administration system is
not helping their cause. (No, I don't have a better one to suggest.)

-- 
 \ “As we enjoy great advantages from the inventions of others, we |
  `\  should be glad to serve others by any invention of ours; and |
_o__) this we should do freely and generously.” —Benjamin Franklin |
Ben Finney



___
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


[Orgmode] Re: possible bug: TAB after elipsis

2010-03-26 Thread Ben Finney
Carsten Dominik carsten.domi...@gmail.com writes:

 On Mar 24, 2010, at 7:04 PM, Anthony Lander wrote:

  If the cursor is after the elipsis on a folded entry like this:
 
   Some entry...|
 
  pressing TAB doesn't expand the entry, or in fact, do anything
  useful at all. Is it possible to get it to expand the entry, or am I
  missing something?

 Cursor after the dots means the cursor is no longer in the headline,
 in fact it is no longer in the entry at all.

But neither is it in the following entry, surely?

I agree with the original reporter that this goes against expectations.
Pressing TAB *anywhere* on the same line of a collapsed item should
expand it as normal, no? Can this be fixed?

-- 
 \   “Working out the social politics of who you can trust and why |
  `\  is, quite literally, what a very large part of our brain has |
_o__)   evolved to do.” —Douglas Adams |
Ben Finney



___
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


[Orgmode] Re: Wiki?

2010-02-19 Thread Ben Finney
Andrea Crotti andrea.crott...@gmail.com writes:

 Today I had to modify some wiki pages for a project and I realized how
 it sucked.. Stupid editor,
[…]

This much, at least, can be fixed by the “It's All Text” add-on for
Firefox URL:https://addons.mozilla.org/en-US/firefox/addon/4125.

-- 
 \  “I guess we were all guilty, in a way. We all shot him, we all |
  `\   skinned him, and we all got a complimentary bumper sticker that |
_o__) said, ‘I helped skin Bob.’” —Jack Handey |
Ben Finney



___
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


[Orgmode] Re: Which Emacs on Ubuntu

2010-02-12 Thread Ben Finney
Graham Smith myotis...@gmail.com writes:

 As I primarily use Emacs to run Orgmode and I find the list of Emacs
 options rather confusing, can anyone here suggest which is the best
 option to install.

The purpose of the ‘emacs’ meta-package is to allow you to defer this to
the Ubuntu package managers. That is, by installing ‘emacs’ you will get
the “best” version of Emacs, updated as appropriate.

-- 
 \  “We tend to scoff at the beliefs of the ancients. But we can't |
  `\scoff at them personally, to their faces, and this is what |
_o__) annoys me.” —Jack Handey |
Ben Finney



___
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


[Orgmode] Re: Which Emacs on Ubuntu

2010-02-12 Thread Ben Finney
Graham Smith myotis...@gmail.com writes:

 Thanks, I was tempted to go for 23, but wasn't sure.

Right. So, people who installed ‘emacs’ several years ago would have
Emacs 22, and then later, without changing their selection, the same
people got Emacs 23 when the Ubuntu package maintainers decided it was
ready.

If that appeals to you, just install the ‘emacs’ package.

-- 
 \   “If you are unable to leave your room, expose yourself in the |
  `\window.” —instructions in case of fire, hotel, Finland |
_o__)  |
Ben Finney



___
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


Re: [Orgmode] Misleading error message from beamer export

2010-02-03 Thread Ben Smith

I've tested your analysis and confirmed that was NOT the
misspelled CLASSS. Correcting the misspelling must have been 
coincident with something else. I wish had taken better notes.


I'll continue to test to see what clobbered class list entry.
-ben

Carsten Dominik wrote:

Hi Ben,

I don't think

 #+LaTeX_CLASSS_OPTIONS: [presentation]

can mess with org-export-latex-classes.  You must hve been missing 
something else.

Try to re-introduce the line - I am sure it will work just fine.

- Carsten

--
Capt. Ben Smith
R/V Coastal Surveyor - R/V Cocheco - S/V Mother of Perl
Center for Coastal and Ocean Mapping Joint Hydrographic Center
University of New Hampshire, Durham, NH, U.S.A.
attachment: ben.vcf___
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


[Orgmode] Misleading error message from beamer export

2010-02-02 Thread Ben Smith

Trying my first beamer document
I was getting this error message:

 No definition for class `beamer' in `org-export-latex-classes'

I tried Carston's example.. same error.

Looking at the org-export-latex-classes, I found indeed that there was 
not specification for 'beamer.' However, if removed customization for 
this setting, the class appeared.


So I searched and searched through all of my init.el but found nothing 
that might have overwritten the export-latex-classes.


Restarted emacs and tried Carston's example.. IT WORKED just fine.
Sure enough, beamer was defined.

Conclusion: it must be something in my own document that was mucking up 
the class list.


And it was here:

  #+LaTeX_CLASSS_OPTIONS: [presentation]

see the error? CLASSS (too many S's)

It only took 2 hours to figure this one out.
-ben
--
Capt. Ben Smith
R/V Coastal Surveyor - R/V Cocheco - S/V Mother of Perl
Center for Coastal and Ocean Mapping Joint Hydrographic Center
University of New Hampshire, Durham, NH, U.S.A.
attachment: ben.vcf___
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


[Orgmode] HTML / Site export: syntax to assign a class to a div

2010-01-30 Thread Ben
Dear orgmode users,

I'm slowly (but firmly) getting my workflows and documents fitting in
orgmode. That's great. The agenda and notes-taking part is done and
I'm now migrating a few websites into org as well.
I've a pretty simple question which puzzles me though pretty
intensely. I've crawled the mailing list archives in vain -- the topic
is sometimes mentioned without an apparent solution.

I would very simply like to assign to an orgmode document section (or
subsection) a parameter which will be translated as a class attribute
in the corresponding div in the HTML output.

Example:

* Important section
** Serious Stuff
blah
** More serious Stuff
* Note
  :CLASS: rightbox
a silly comment
* Conclusion

orgmode would then name the div sections as usual, I would like to get
for the 'Note' section another attribute which would be
class=rightbox.

I've tried the #+HTML hacks, the html_attr, the drawers and even the
#+anchor tag. In vain. I'm sure I'm missing something obvious.
Any help would be really really much appreciated!

 -- Ben


___
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


Re: [Orgmode] Re: The trick behind this website

2010-01-30 Thread Ben
On Fri, Jan 29, 2010 at 11:01 AM, Chao Lu looc...@gmail.com wrote:
 One more question, how could I disable the footer part and if I want to use
 it, how could I add some icons, like powered by Emacs, Org-mode, UNIX icons?

Oh, here I think I can help.
In your .emacs, put:
(setq org-publish-project-alist
...
 :postamble pimg src='imgs/button-emacs.png'/p

you can as well set the ;;   :auto-preamble  :auto-postamble  
values to t/nil.

 -- Ben


___
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


[Orgmode] Re: How to combine the analogue (Moleskine) world with digital (org-mode) world ?

2010-01-24 Thread Ben Finney
Torsten Wagner torsten.wag...@gmail.com writes:

  I have a similar experience to you. I run org-mode on my office
  computer and home computer and synchronise the files via USB drive
  and Python backup script.

 If you have access to a sever... try to use git.

Any distributed version control system (DVCS) will do the job here, so
I'd recommend to choose one that is easy to learn and use. For that
purpose I'd recommend Bazaar URL:http://bazaar-vcs.org/.

The Emacs ‘vc’ mode works correctly with Bazaar repositories (as well as
others, I believe).

Of course, if you're *already* familiar and happy with a DVCS, use that.

  My other idea capture and note taking tool are 3 x 5 inch system
  cards. I cut up scrap paper into this size and keep several handy in
  my shirt pocket and a pencil. I can jot down notes any time and
  transfer what is important when I am back at the computer.

 I tried this but always messed up with lost cards, messed up cards,
 etc. Thus I was looking for a more stable version.

I keep my 3×5in cards in a specialied wallet, which I found advertised
for the purpose of holding a portable hard drive and a screwdriver
(presumably for computer professionals to carry a diagnostic and repair
kit). The dimensions were perfect for a stack of cards and a comfortable
pen, so I bought it on that basis and have been very happy with it for
several years of constant use.

-- 
 \ “Faith may be defined briefly as an illogical belief in the |
  `\  occurrence of the improbable.” —Henry L. Mencken |
_o__)  |
Ben Finney



___
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


[Orgmode] Re: Repeating dates on named weekdays

2010-01-16 Thread Ben Finney
Glauber Alex Dias Prado sma...@gmail.com writes:

 William Halliburton whallibur...@gmail.com writes:
  How can one enter in repeating dates such as
 
  every third thursday of each month
 
 http://www.gnu.org/software/emacs/manual/html_node/org/Repeating-items.html#Repeating-items
 http://orgmode.org/manual/Repeated-tasks.html#Repeated-tasks

That doesn't help. Neither of those pages say anything about this common
use case.

I do wish the Org manual, at least, would give an example of what the OP
is asking for: repeating events on “every month on the Nth D-weekday at
T time”, and how to translate the N, D, and T into some Org date+time
format that will give that result.

I'd provide a suggested addition to the manual, but I still don't
understand the baroque sexp date format myself.

-- 
 \“Good morning, Pooh Bear”, said Eeyore gloomily. “If it is a |
  `\   good morning”, he said. “Which I doubt”, said he. —A. A. Milne, |
_o__)_Winnie-the-Pooh_ |
Ben Finney



___
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


[Orgmode] Re: Date calculations

2009-12-30 Thread Ben Finney
Memnon Anon gegendosenflei...@googlemail.com writes:

 ,[ (info (org)Weekly/daily agenda) ]
 |  * Birthdays and similar stuff
 |  #+CATEGORY: Holiday
 |  %%(org-calendar-holiday)   ; special function for holiday names
 |  #+CATEGORY: Ann
 |  %%(diary-anniversary 14  5 1956) Arthur Dent is %d years old
 |  %%(diary-anniversary  2 10 1869) Mahatma Gandhi would be %d years old
 `

 These examples suggest D-M-Y, which only seems to work with the
 calendar set to european style. Maybe, it would be better to change
 the example to M-D-Y (I think it is more common?) and add a footnote
 that provides the info that the date format is depending on
 calendar-date-style?

It might be even better to use calendar style ‘iso’ in that
documentation, to be consistent with default Org usage.

 So, if I understand it correctly, org-bbdb settled on iso format,
 diary-anniversary uses either american or european style depending on
 calendar-date-style.

 Thats somehow inconsistent, isn't it?

Yes, that inconsistency in the Diary behaviour has been noted.

-- 
 \   “My business is to teach my aspirations to conform themselves |
  `\  to fact, not to try and make facts harmonise with my |
_o__)   aspirations.“ —Thomas Henry Huxley, 1860-09-23 |
Ben Finney



___
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


[Orgmode] Re: small addition to The Org Manual

2009-12-21 Thread Ben Finney
V Spagnolo v.spagn...@pobox.com writes:

 A key that explicitly states what is meant by C-, S- and M-, would be
 helpful.

I disagree: I don't think the Org mode manual should be teaching the
reader how to use Emacs, since that would only duplicate what's already
in Emacs.

Perhaps it could direct the reader to the Emacs tutorial?

-- 
 \   “About four years ago, I was — no, it was yesterday.” —Steven |
  `\Wright |
_o__)  |
Ben Finney



___
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


[Orgmode] Re: Org needs your vote

2009-12-07 Thread Ben Finney
Norbert Zeh n...@cs.dal.ca writes:

 IMO, the low rating of org-mode on this list shows that most people
 prefer flashy GUIs over extreme power, efficiency, and flexibility.

I disagree; I don't think people prefer “flashy GUIs” as you say. That
may play a part, but I believe it's only a small part in comparison to a
much larger issue:

Rather, people (in general, and beyond adolescence) prefer to avoid any
option presented which might involve the effort of learning something
new.

That is, if presented with a choice between using Word (which they've
already gone through the pain of learning), or learning a whole new
program, most adults will assume that the easiest option is to stick
with Word, or whatever existing program they've already learned that
appears to promise the ability to address their immediate need.

There won't be an assessment of “extreme power, efficiency, and
flexibility”; they're not looking for any of those, even though an
outside observer might realise they can benefit from them.

There'll only be an assessment of the perceived effort of “use Word,
which I know and in a pinch I can call on my friend for help”, versus
the perceived effort of “learn this unknown-to-me program, which nobody
in my circle of friends has even heard of”. Note that *actual* required
effort isn't what counts: only *perceived* effort can play a part in
that decision.

Merely being technically better isn't enough to win over anyone who
isn't already interested in learning something new. The technically
better option must *also* be perceptibly easy to learn to the point of
being productive quickly, and must perceptibly have a decent support
community. Otherwise, it won't even get a second glance by most people.

 Then again, that seems to be the general state in today's computing
 world.

When looked at from the above perspective, it's a state we don't have to
merely lament. We can *do* something about it; and the great part is we
don't have to change anything about Org mode itself to improve the
situation.

-- 
 \   “I disapprove of what you say, but I will defend to the death |
  `\ your right to say it.” —Evelyn Beatrice Hall, _The Friends of |
_o__)  Voltaire_, 1906 |
Ben Finney



___
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


[Orgmode] Re: [OT] Emacs for email?

2009-12-02 Thread Ben Finney
Tassilo Horn tass...@member.fsf.org writes:

 Ben Finney ben+em...@benfinney.id.au writes:
  I would dearly love to use Gnus for email too, and am this →← close,
  but I have an interactive external program generating my message
  signatures and I can't figure out how to get it working in Emacs
  quite as easily as it does in Mutt.

 This should be very easy.  Have a look at
   http://www.emacswiki.org/emacs/GnusMnemonics

 where the fortune program is used as signature program.

That misses the fact that, as I said above, I use an *interactive*
program for generating my signature block. It's not a matter of
generating output unilaterally from the program. I interact with the
program on the console (saying yes or no to proposed random signatures),
and it then modifies an existing message file in-place. I can't figure
out how to get Emacs to work with this program.

Anyway, this is now wildly off-topic for an Org discussion forum.

-- 
 \  “Holy bouncing boiler-plated fits, Batman!” —Robin |
  `\   |
_o__)  |
Ben Finney



___
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


[Orgmode] Re: [OT] Emacs for email?

2009-12-01 Thread Ben Finney
Keith Lancaster klancaster1...@acm.org writes:

 I apologize for the WAY off topic question, but since you folk are
 emacs expertsdo you use emacs for email, and if so, what do you
 use?

I use Gnus for NNTP (e.g. for participating in this forum), and am
really liking it. I would dearly love to use Gnus for email too, and am
this →← close, but I have an interactive external program generating my
message signatures and I can't figure out how to get it working in Emacs
quite as easily as it does in Mutt.

-- 
 \   “… whoever claims any right that he is unwilling to accord to |
  `\ his fellow-men is dishonest and infamous.” —Robert G. |
_o__)   Ingersoll, _The Liberty of Man, Woman and Child_, 1877 |
Ben Finney



___
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


Re: [Orgmode] Bug: org-mobile Bad file encoding [6.33trans]

2009-11-26 Thread Ben Alexander

Well, the problem came back :-(

I tried to go to the agendas.org file on my WebDAV server and save it  
in utf-8 manually (using the command M-x set-buffer-file-encoding  
utf-8) but because the checksums.dat don't change, the iPod doesn't  
reload the newly saved file.  So I deleted checksums.dat  and then it  
copied all the files and the agendas.org file showed up properly.


Then I tried one more time, making a small change on my laptop and  
trying to save the agendas.org file manually *before* doing a sync on  
the iPod, and now I can't make it work.  The agendas.org file is the  
only file that won't display at all, giving the Bad file encoding  
message instead of the file text.  Yet on the WebDAV share, from my  
laptop, I can cat the file, no problem.


I have now removed the only non-ascii character from my org file that  
is picked up by the agenda (the letter ă, lowercase-a-with-breve- 
accent). And so now there is no 'bad-encoding'.


Clearly there is some emacs magic going on here, because I thought of  
trying the £ symbol, but in another, smaller, file, and when I tried  
to save the file, I was told:

These default coding systems were tried to encode text
in the buffer `birthdays.org':
  iso-8859-2-unix
However, each of them encountered characters it couldn't encode:
  iso-8859-2-unix cannot encode these: £


I thought the earlier emacs code specified utf-8 as the default coding  
system


Strangely (to me) the a-with-breve did not have an issue in the  
default coding system.


I once had a problem with my original org files, but now I can't  
recreate that problem either.


Sorry to bring bad news.
On 2009-Nov-23, at 20:53, Ben Alexander wrote:



I added the following lines (to my ~/.emacs file), as suggested by  
Richard and they work immediately.


For what it's worth, I am running on Mac OS X 10.5.8 on an Intel  
MacBook, and I've had it for a few years and tweaked any number of  
little things.  This may be a 'default' problem, but it might also  
be just because I've copied old customization buffers forward from  
other machines.


Thanks, Richard, for the tip, and thanks to all the rest of you for  
the org-mode community.


-Ben

On 2009-Nov-23, at 02:37, Richard Moreland wrote:


Hi Ben,

I'm replying off-list because I'm not sure this is the answer, but:

(prefer-coding-system   'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)

Between that mess of options, it seems that you be able to have  
your files default to UTF-8 (which is the encoding MobileOrg is  
looking for).


If this works for you, would please let the list know so the  
solution is archived?  I'll also update the website with the  
appropriate details.


Thanks!
Richard

On Nov 22, 2009, at 3:20 PM, Ben Alexander wrote:



Thanks for org-mode and MobileOrg!  I'm very grateful for all the
helpful hints I've seen on the mailing list too.

I an have a small problem with MobileOrg.  After doing an
org-mobile-push and syncing the results to the iPod touch, the
agendas.org file doesn't appear on the iPod.  Instead, it appears  
as if
the only heading is Bad file encoding and the body text is  
Unable to

detect file encoding, please re-save this file using the proper
encoding.

At first I thought it was because I've got things like the
pounds-sterling, t-with-a-comma, a-with-breve, and i-with-circumflex
characters in my text (some of which contains Romanian, hence the
especially odd t-with-a-comma).  But I'm pretty sure I've expunged  
those
characters from my files, and anyway, the agendas.org file should  
only

contain the characters that my original org files contain.

So, I'm happy enough to use the proper encoding, but I don't know  
what
that is, and I don't save the adgendas.org file myself: org-mobile- 
push

must do that on my behalf.

If it is relevant, I am using a 5dollarhosting.com website for my  
webdav
server, not my local machine, so I don't have complete control  
over the

webserver configuration.

I'm stumped as to what I should try next. Any pointers will be
appreciated,

Ben Alexander

==

Emacs  : GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version  
1.6.0)

of 2009-06-07 on scarlett.local - Aquamacs Distribution 1.8c
Package: Org-mode version 6.33trans

current state:
==
(setq
org-remember-default-headline Remember Tasks
org-todo-keyword-faces '((PROJECT :foreground blue :weight  
bold))

org-special-ctrl-a/e t
org-agenda-custom-commands '((b Buy tags #(+TODO=\BUY\ 0  
11 (face org-warning)) nil) (A Angella related questions tags  
#(angella 0 7 (face org-warning)) nil)
 (u unscheduled todo #(TODO|DEFER 0  
10 (face org-warning))
  ((org-agenda-skip-function (lambda nil  
(org-agenda-skip-entry-if (quote scheduled) (quote deadline)  
(quote regexp) [^\n]+)))
   (org-agenda

Re: [Orgmode] Bug: org-mobile Bad file encoding [6.33trans]

2009-11-23 Thread Ben Alexander


I added the following lines (to my ~/.emacs file), as suggested by  
Richard and they work immediately.


For what it's worth, I am running on Mac OS X 10.5.8 on an Intel  
MacBook, and I've had it for a few years and tweaked any number of  
little things.  This may be a 'default' problem, but it might also be  
just because I've copied old customization buffers forward from other  
machines.


Thanks, Richard, for the tip, and thanks to all the rest of you for  
the org-mode community.


-Ben

On 2009-Nov-23, at 02:37, Richard Moreland wrote:


Hi Ben,

I'm replying off-list because I'm not sure this is the answer, but:

(prefer-coding-system   'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)

Between that mess of options, it seems that you be able to have your  
files default to UTF-8 (which is the encoding MobileOrg is looking  
for).


If this works for you, would please let the list know so the  
solution is archived?  I'll also update the website with the  
appropriate details.


Thanks!
Richard

On Nov 22, 2009, at 3:20 PM, Ben Alexander wrote:



Thanks for org-mode and MobileOrg!  I'm very grateful for all the
helpful hints I've seen on the mailing list too.

I an have a small problem with MobileOrg.  After doing an
org-mobile-push and syncing the results to the iPod touch, the
agendas.org file doesn't appear on the iPod.  Instead, it appears  
as if
the only heading is Bad file encoding and the body text is  
Unable to

detect file encoding, please re-save this file using the proper
encoding.

At first I thought it was because I've got things like the
pounds-sterling, t-with-a-comma, a-with-breve, and i-with-circumflex
characters in my text (some of which contains Romanian, hence the
especially odd t-with-a-comma).  But I'm pretty sure I've expunged  
those
characters from my files, and anyway, the agendas.org file should  
only

contain the characters that my original org files contain.

So, I'm happy enough to use the proper encoding, but I don't know  
what
that is, and I don't save the adgendas.org file myself: org-mobile- 
push

must do that on my behalf.

If it is relevant, I am using a 5dollarhosting.com website for my  
webdav
server, not my local machine, so I don't have complete control over  
the

webserver configuration.

I'm stumped as to what I should try next. Any pointers will be
appreciated,

Ben Alexander

==

Emacs  : GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version  
1.6.0)

of 2009-06-07 on scarlett.local - Aquamacs Distribution 1.8c
Package: Org-mode version 6.33trans

current state:
==
(setq
org-remember-default-headline Remember Tasks
org-todo-keyword-faces '((PROJECT :foreground blue :weight bold))
org-special-ctrl-a/e t
org-agenda-custom-commands '((b Buy tags #(+TODO=\BUY\ 0 11  
(face org-warning)) nil) (A Angella related questions tags  
#(angella 0 7 (face org-warning)) nil)
  (u unscheduled todo #(TODO|DEFER 0  
10 (face org-warning))
   ((org-agenda-skip-function (lambda nil  
(org-agenda-skip-entry-if (quote scheduled) (quote deadline) (quote  
regexp) [^\n]+)))
(org-agenda-overriding-header  
Unscheduled TODO entries: ) (org-agenda-sorting-strategy (quote  
(todo-state-up

   )
  )
org-agenda-files '(/Users/ben/Reference/GTD/Reference.org /Users/ 
ben/Reference/GTD/birthdays.org /Users/ben/Reference/GTD/ 
craiova.org
/Users/ben/Reference/GTD/diary.org /Users/ben/ 
Reference/GTD/filetabs.org /Users/ben/Reference/GTD/projects.org)

org-agenda-include-diary t
org-agenda-window-setup 'current-window
org-hide-leading-stars t
org-completion-use-ido t
org-metaup-hook '(org-babel-load-in-session-maybe)
org-agenda-skip-timestamp-if-done t
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-agenda-todo-ignore-scheduled t
org-odd-levels-only t
org-log-state-notes-insert-after-drawers t
org-special-ctrl-k t
org-agenda-sorting-strategy '((agenda time-up tag-up) (todo  
category-keep priority-down) (tags category-keep priority-down)  
(search category-keep))

org-deadline-warning-days 7
org-stuck-projects '(/PROJECT (TODO BUY) nil )
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-mobile-inbox-for-pull ~/Reference/GTD/from-mobile.org
org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide- 
block-toggle-maybe)

org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-cycle-global-at-bob t
org-confirm-shell-link-function 'yes-or-no-p
org-todo-keywords '((sequence TODO(t) WAITING(w) DONE(d!))  
(type PROJECT(p) CLOSED(c!)) (sequence BUY(b) BOUGHT(B!)))

org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-default-notes-file ~/Reference/GTD/projects.org
org-directory ~/Reference/GTD/
org-tag-alist '((:startgroup) (#(ben 0 3 (face nil)) . 98

[Orgmode] Bug: org-mobile Bad file encoding [6.33trans]

2009-11-22 Thread Ben Alexander


Thanks for org-mode and MobileOrg!  I'm very grateful for all the
helpful hints I've seen on the mailing list too.

I an have a small problem with MobileOrg.  After doing an
org-mobile-push and syncing the results to the iPod touch, the
agendas.org file doesn't appear on the iPod.  Instead, it appears as if
the only heading is Bad file encoding and the body text is Unable to
detect file encoding, please re-save this file using the proper
encoding.

At first I thought it was because I've got things like the
pounds-sterling, t-with-a-comma, a-with-breve, and i-with-circumflex
characters in my text (some of which contains Romanian, hence the
especially odd t-with-a-comma).  But I'm pretty sure I've expunged those
characters from my files, and anyway, the agendas.org file should only
contain the characters that my original org files contain.

So, I'm happy enough to use the proper encoding, but I don't know what
that is, and I don't save the adgendas.org file myself: org-mobile-push
must do that on my behalf.

If it is relevant, I am using a 5dollarhosting.com website for my webdav
server, not my local machine, so I don't have complete control over the
webserver configuration.

I'm stumped as to what I should try next. Any pointers will be
appreciated,

Ben Alexander

==

Emacs  : GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version 1.6.0)
 of 2009-06-07 on scarlett.local - Aquamacs Distribution 1.8c
Package: Org-mode version 6.33trans

current state:
==
(setq
 org-remember-default-headline Remember Tasks
 org-todo-keyword-faces '((PROJECT :foreground blue :weight bold))
 org-special-ctrl-a/e t
 org-agenda-custom-commands '((b Buy tags #(+TODO=\BUY\ 0 11  
(face org-warning)) nil) (A Angella related questions tags  
#(angella 0 7 (face org-warning)) nil)
  (u unscheduled todo #(TODO|DEFER  
0 10 (face org-warning))
   ((org-agenda-skip-function (lambda nil  
(org-agenda-skip-entry-if (quote scheduled) (quote deadline) (quote  
regexp) [^\n]+)))
(org-agenda-overriding-header  
Unscheduled TODO entries: ) (org-agenda-sorting-strategy (quote  
(todo-state-up

   )
  )
 org-agenda-files '(/Users/ben/Reference/GTD/Reference.org /Users/ 
ben/Reference/GTD/birthdays.org /Users/ben/Reference/GTD/craiova.org
/Users/ben/Reference/GTD/diary.org /Users/ben/ 
Reference/GTD/filetabs.org /Users/ben/Reference/GTD/projects.org)

 org-agenda-include-diary t
 org-agenda-window-setup 'current-window
 org-hide-leading-stars t
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-agenda-skip-timestamp-if-done t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-agenda-todo-ignore-scheduled t
 org-odd-levels-only t
 org-log-state-notes-insert-after-drawers t
 org-special-ctrl-k t
 org-agenda-sorting-strategy '((agenda time-up tag-up) (todo category- 
keep priority-down) (tags category-keep priority-down) (search  
category-keep))

 org-deadline-warning-days 7
 org-stuck-projects '(/PROJECT (TODO BUY) nil )
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-mobile-inbox-for-pull ~/Reference/GTD/from-mobile.org
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide- 
block-toggle-maybe)

 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-cycle-global-at-bob t
 org-confirm-shell-link-function 'yes-or-no-p
 org-todo-keywords '((sequence TODO(t) WAITING(w) DONE(d!))  
(type PROJECT(p) CLOSED(c!)) (sequence BUY(b) BOUGHT(B!)))

 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-default-notes-file ~/Reference/GTD/projects.org
 org-directory ~/Reference/GTD/
 org-tag-alist '((:startgroup) (#(ben 0 3 (face nil)) . 98)  
(#(angella 0 7 (face nil)) . 97) (#(vendor 0 6 (face nil)) . 118)  
(:endgroup) (:startgroup)
 (#(us 0 2 (face nil)) . 117) (#(london 0 6 (face  
nil)) . 108) (#(romania 0 7 (face nil)) . 114) (:endgroup)  
(:startgroup)
 (#(@home 0 5 (face org-todo)) . 104) (#(@phone 0  
6 (face nil)) . 112) (#(@out 0 4 (face nil)) . 111) (#(@computer 0  
9 (face nil)) . 99) (:endgroup))
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers org-cycle-show-empty-lines org-optimize-window-after- 
visibility-change)
 org-publish-project-alist '((alexanderonline :base-directory ~/ 
alexanderonline.org :publishing-directory ~/ 
alexanderonline.html :table-of-contents nil))
 org-mode-hook '((lambda nil (setq org-mouse-context-menu-function  
(quote org-mouse-context-menu))
  (when (memq (quote context-menu) org-mouse- 
features) (define-key org-mouse-map (if (featurep (quote xemacs))  
[button3] [mouse-3]) nil)
   (define-key org-mode-map [mouse-3] (quote org- 
mouse-show-context-menu)))
  (define-key org-mode-map [down-mouse-1] (quote org- 
mouse-down-mouse

[Orgmode] Re: Feature request: Periodic events based on count of specific weekdays

2009-11-20 Thread Ben Finney
Carsten Dominik carsten.domi...@gmail.com writes:

 extending the date format would be a significant amount of work. The
 current time/date format is already complex to handle internally,
 mainly because it was build not with a clean design but step by step.

I don't know anything about elisp. But isn't that an indication that it
might be time to re-work the design so it's easier to maintain?

 My feeling is that date specifications like this are seldomly used,

I'm surprised at this assertion. Just about every club or social
organisation, etc., that I've heard of that meets monthly, does so by
meeting “on the second Tuesday of the month” or equivalent monthly
specification. It's surely not seldom in my experience.

It may be the case that not many *programs* implement this; but has that
ever been a reason to avoid mapping a real-world need into Org mode
before? :-)

 and as far as readability is concerned, for these few events you could
 just (as suggested by Matt) write a note explaining what the entry
 does.

Unfortunately, I can't see how to do that *and* have the rest of the Org
mode timestamp specification; I'm wanting to have all the current
features of Org timestamp specification plus day-of-week-based periodic
events.

For example, I can't see how to get an sexp timestamp to simultaneously
have a “second Tuesday of the month” period and a time-of-day
specification. I also can't see how to get these specifications to
display like other Org timestamps in agenda and other generated views.

So, while I appreciate that the current timestamp parser design might
make implementation difficult, I don't think the current features of
either Org timestamp specification or sexp specification will meet this
goal. That's why I'm asking for this feature request.

I'm happy to discuss different specifications; the latest one I proposed
was for discussion, and I'm not wedded to it. Is there a different
syntax that would make parsing easier, while still adding the feature
I've described?

-- 
 \   “I distrust those people who know so well what God wants them |
  `\to do to their fellows, because it always coincides with their |
_o__)  own desires.” —Susan Brownell Anthony, 1896 |
Ben Finney



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


[Orgmode] Re: org-indent-mode and visual-line-mode

2009-11-19 Thread Ben Finney
Matt Price matt.pr...@utoronto.ca writes:

 Visual-line-mode is a replacement for longlines-mode; it soft-wraps
 text at the screen boundary, and does a much better job than
 longlines-mode did.

I think you're confused by a (helpful) conflation.

The ‘visual-lines-mode’ is indeed a replacement for ‘longlines-mode’,
but its job is to cause editing commands to act on visual, rather than
logical lines.

The wrapping behaviour you're describing is performed by ‘word-wrap’, a
buffer-local variable that cuases lines to be visually broken at word
boundaries.

The ‘word-wrap’ variable is set by ‘visual-lines-mode’, which is why
you're seeing it happen. But ‘word-wrap’ is independent of this.

 Is that what you needed? I'm not sure where the code for
 visual-line-mode lives -- there isn't a visual-line.el anywhere that i
 can find on my system.

Fortunately, ‘visual-line-mode’ appears to be a distraction from what
you're describing; Carsten only needs to learn about ‘word-wrap’.

-- 
 \“The flattening of underwear with pleasure is the job of the |
  `\  chambermaid.” —hotel, Yugoslavia |
_o__)  |
Ben Finney


pgpXB2IJ8KNm8.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Feature request: Periodic events based on count of specific weekdays (was: Monthly events based on count of specific weekdays)

2009-11-19 Thread Ben Finney
Ben Finney ben+em...@benfinney.id.au writes:

 […] “second Tuesday of the month” isn't niche, it is pretty common, I
 would have thought.

[…]

  You'd have to ask Carsten to implement a new timestamp syntax. What
  would you propose as a more readable designation?

How about a keyword that specifies the type of repeat being requested:

2009-10-13 Tue 14:00 +1m dow
Repeat each month, on the second Tuesday of the month. Calculated
because this date is the second Tuesday of the month, and “dow” is
the specified repeat type.

2009-10-13 Tue 14:00 +1m dom
Repeat each month, on the 13th day of the month. Calculated because
this date is the 13th of the month, and “dom” is the specified
repeat type.

2009-10-13 Tue 14:00 +1m
Repeat each month, on the 13th day of the month. Calculated because
this date is the 13th of the month, and “dom” is the default repeat
type.

This allows existing behaviour to be continued (“repeat on the same day
of the month”), preserves the default behaviour, and allows for other
repeat types to be added later without breaking existing timestamp data.

-- 
 \“He who laughs last, thinks slowest.” —anonymous |
  `\   |
_o__)  |
Ben Finney



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


[Orgmode] Re: org-indent-mode and visual-line-mode

2009-11-19 Thread Ben Finney
Matt Price matt.pr...@utoronto.ca writes:

 Does anyone else use visual-=line-mode with org? I'm sort of surprised
 no one would -- it seems a completely obvious choice to me and it may
 be that I'm just missing something about optimum work flows or
 similar.

I hard-wrap (Emacs “fill” operations) paragraphs in most text files,
including my Org files. So I don't have to deal very often with the
distinction between visual versus local lines.

-- 
 \“Technology is neither good nor bad; nor is it neutral.” |
  `\   —Melvin Kranzberg's First Law of Technology |
_o__)  |
Ben Finney


pgpi5Fz7Iagiy.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Monthly events based on count of specific weekdays

2009-11-09 Thread Ben Finney
Giovanni Ridolfi giovanni.rido...@yahoo.it writes:

 --- Dom 8/11/09, Ben Finney ben+em...@benfinney.id.au ha scritto:
  How about this:
  
      2009-10-13 Tue 14:00 +1m Tue

 Does the ++1m help? : 

 ** TODO LUG meeting
DEADLINE: 2009-10-13 Tue 14:00 ++1m Tue

No, it doesn't help. When I specify what you show here, I get the item
in my agenda on:

2009-10-13 Tue 14:00
2009-11-13 Thu 14:00
2009-12-13 Sun 14:00
2010-01-13 Wed 14:00

and so on.

Marking this DONE will shift the date by at least one month,
but also by as many months as it takes to get this date into
the future.  However, it stays on a Tuesday, even 
if you called and marked it done on Saturday.

This doesn't seem to affect when the future events appear in the agenda,
so doesn't meet what I'm describing.

-- 
 \“I spent a lot of money on wine and women, and like a fool I |
  `\ squandered the rest.” —Benny Hill |
_o__)  |
Ben Finney



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


[Orgmode] Re: Monthly events based on count of specific weekdays

2009-11-08 Thread Ben Finney
Matt Lundin m...@imapmail.org writes:

 Ben Finney ben+em...@benfinney.id.au writes:

  How can I set an event in Org mode that repeats every month, on a
  specific weekday, on a week counted from the start of the month?
[…]

  Taking “first Tuesday of the month”, if I set it this month on
  2009-11-15 Sun, it should next repeat on 2009-12-20 Sun and so
  on each month.

 From the org manual:

 ,[8.1. Timestamps, deadlines, and scheduling]
 | DIARY-STYLE SEXP ENTRIES
 |  For more complex date specifications, Org mode supports using the
 |  special sexp diary entries implemented in the Emacs calendar/diary
 |  package.  For example
 | 
 |   * The nerd meeting on every 2nd Thursday of the month
 | %%(diary-float t 4 2)
 `

Ah. Where can I find documentation on “the special sexp diary entries
implemented in the Emacs calendar/diary package”?

 Here's how to schedule the examples above:

 * First Tuesday of month
 %%(diary-float t 2 1)

 * Third Sunday of month
 %%(diary-float t 0 3)

 * First or third Wednesday of month
 %%(or (diary-float t 3 1) (diary-float t 3 3))

Hmm. That makes the entry unreadable as a date+time. One of the main
advantages of the usual Org date+time specifications is they're
perfectly readable even to people who know nothing about Org, Emacs, or
Lisp. Is there a way to get a readable format that still behaves as I
described?

-- 
 \ “I used to think that the brain was the most wonderful organ in |
  `\   my body. Then I realized who was telling me this.” —Emo Philips |
_o__)  |
Ben Finney



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


[Orgmode] Re: Monthly events based on count of specific weekdays

2009-11-08 Thread Ben Finney
Matt Lundin m...@imapmail.org writes:

 Ben Finney ben+em...@benfinney.id.au writes:

  Hmm. [a sexp] makes the entry unreadable as a date+time. One of the
  main advantages of the usual Org date+time specifications is they're
  perfectly readable even to people who know nothing about Org, Emacs,
  or Lisp.

 Well, yes. But not for every possible niche usage.

That's partly my point: “second Tuesday of the month” isn't niche, it is
pretty common, I would have thought.

 Org-mode provides human readable syntax for the majority of scenarios,
 but allows power users to harness the capabilities of emacs and elisp
 for the rest.

Much appreciated.

  Is there a way to get a readable format that still behaves as I
  described?

 Not that I know of. But since this is org-mode, you could add a note
 under the diary sexp explaining what it represents.

 You'd have to ask Carsten to implement a new timestamp syntax. What
 would you propose as a more readable designation?

How about this:

2009-10-13 Tue 14:00 +1m Tue
Repeat each month, on the second Tuesday of the month. Calculated
because this date is the second Tuesday of the month, and the repeat
weekday is specified.

2009-10-13 Tue 14:00 +1m
Repeat each month, on the 13th day of the month. Calculated because
this date is the 8th of the month, and the repeat weekday is not
specified.

2009-10-13 Tue 14:00 +1m Fri
Invalid, since this date is not on a Friday.

Or, rather than introducing syntax that makes it easy to put invalid
syntax:

2009-10-13 Tue 14:00 +1m dow
Repeat each month, on the second Tuesday of the month. Calculated
because this date is the second Tuesday of the month, and “dow” is
the specified repeat type.

2009-10-13 Tue 14:00 +1m dom
Repeat each month, on the 13th day of the month. Calculated because
this date is the 8th of the month, and “dom” is the specified repeat
type.

2009-10-13 Tue 14:00 +1m
Repeat each month, on the 13th day of the month. Calculated because
this date is the 8th of the month, and “dom” is the default repeat
type.

I somewhat prefer this latter syntax, because it uses a brief keyword,
allowing for other keywords in the future if a case can be made for
other repeat types.

-- 
 \“Read not to contradict and confute, nor to believe and take |
  `\  for granted … but to weigh and consider.” —Francis Bacon |
_o__)  |
Ben Finney



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


[Orgmode] Monthly events based on count of specific weekdays

2009-11-07 Thread Ben Finney
Howdy all,

How can I set an event in Org mode that repeats every month, on a
specific weekday, on a week counted from the start of the month?

For example:

  * every month on the first Tuesday of the month.
  * every month on the third Sunday of the month.
  * every first and third Wednesday of the month.

Taking “first Tuesday of the month”, if I set it this month on
2009-11-15 Sun, it should next repeat on 2009-12-20 Sun and so on
each month. These do not do what I want:

  * 2009-11-15 Sun +1m
  * 2009-11-08 Sun ++1m
  * 2009-11-08 Sun .+1m

Each of these next repeats on 2009-12-15 Tue, the wrong date.

How can I specify a repeating event to Org mode that achieves what I
described above?

-- 
 \ “Nature is trying very hard to make us succeed, but nature does |
  `\   not depend on us. We are not the only experiment.” —Richard |
_o__)   Buckminster Fuller, 1978-04-30 |
Ben Finney



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


[Orgmode] Re: contact management in org-mode?

2009-11-07 Thread Ben Finney
Russell Adams rlad...@adamsinfoserv.com writes:

 Given the discussion about a simple database [for storing contacts],
 it struck me that I might just use properties and column mode. Dynamic
 fields and views, hotlinks, VC, text file...

Thank you, Russell, for the BBDB rant (which I quite agree with) and for
giving your current solution based on Org items with properties.

I'm dipping my toes into Org and, for contact data, BBDB seemed the
natural way to go; I'm glad I looked around to find alternatives before
dumping too much data into BBDB. Everyone's responses in this thread
have saved me a *lot* of time and effort.

-- 
 \ “Pinky, are you pondering what I'm pondering?” “I think so, |
  `\ Brain, but if they called them ‘Sad Meals’, kids wouldn't buy |
_o__)them!” —_Pinky and The Brain_ |
Ben Finney



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


[Orgmode] Keeping org files under git - trimming the repository

2009-08-04 Thread Ben Alexander

Hello all.
This is really more of a git question, but I keep my org file stored  
under git and I've seen other people on this list speak of doing the  
same.  Different people cite different benefits:


+ keeping home and work copies of todo.org in sync
+ storing todo.org on a USB stick for transport instead of using a  
network
+ safety while editing. If a slip of the fingers hits C-k on a folded  
line and you don't notice it for a long time, git allows you to find  
when that happen (git blame) and 'cherry-pick' a patch to bring the  
lost subtree forward in time.


I don't really know how to do any of  these things in git, but that's  
what you all say :-)


About a year ago, I decided to learn how to write macros in lisp and  
started by teaching myself about the after-save-hook.  I added a hook  
to auto commit every time I saved any org file.  My simple, small text  
file of todo items is now a giant git repository.


At last a question or two: Does this happen to you? What do you do?   
What new git command do I need to learn in order to do it?


Is there some way to clone my git repo onto my USB stick, but make it  
a subset instead of the whole thing?  That would be useful for me to  
learn for other git projects!


Just curious!

(and thanks to you all for the interesting discussions and excellent  
tool!)


-Ben


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


  1   2   >