Re: [Orgmode] [For Worg?] Gnuplot unevenly spaced non-numeric data plot?

2010-08-23 Thread Nick Dokos
John Hendy  wrote:

> Alright Nick, careful what you wish for :) For anyone else who could use this 
> or do something with it:
> 
> - Over the weekend I figured out a bunch of stuff with gnuplot
> - I modified what I found to make it generic and wrote it up in an org file
> - The org file, resultant pics (eps), converted pngs, and exported html/pdf 
> are in the attached .zip
> 

I haven't read it in complete detail yet, but so far it looks very nice.
Much more extensive and detailed than I expected (that's a Good Thing!)

> Let me know if this can be useful for worg.

I think so.

Thanks!
Nick

___
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] [For Worg?] Gnuplot unevenly spaced non-numeric data plot?

2010-08-23 Thread suvayu ali
Too good for words! Great work. :)

On 23 August 2010 19:44, John Hendy  wrote:
> Okay, bounced attempts with both .zip and tar. We'll try this instead... the
> "attached file" mentioned below is here:
> https://sites.google.com/site/jwhendytank/home/org-gnuplot-writeup.zip
> -
>
> Sorry if this is a duplicate. My first attempt failed, perhaps due to the
> attached .zip? I'm trying .tar this time.
>
> -
>
> Alright Nick, careful what you wish for :) For anyone else who could use
> this or do something with it:
>
> - Over the weekend I figured out a bunch of stuff with gnuplot
>
> - I modified what I found to make it generic and wrote it up in an org file
>
> - The org file, resultant pics (eps), converted pngs, and exported html/pdf
> are in the attached .zip [edit: .tar] [edit: see link above]
>
>
> Let me know if this can be useful for worg. There's really nothing new that
> can't be found, but it's tricky if you don't know what you're looking for.
> The attached is the result of lots of digging on my part and some excellent
> help from the mailing list. Included are gnuplot methods for:
>
> - Setting axis titles with the #+PLOT method
>
> - Getting better image quality via eps -> png from a previous mailing list
> discussion (thanks Eric & Eric)
>
> - The use of the 'reset' command when using multiple gnuplot babel blocks in
> the same file
>
> - Unevenly spaced names x-tics
>
> - Multiple x-axis scales on the same graph
>
> - Broken axis example from gnuplot-tricks
>
> Again, this info exists elsewhere, but this might be very nice to have on
> worg. Perhaps this would serve as a nice primer for the beginner? I
> footnoted everywhere I could to the original sources of my information
> (mostly the mailing list and gnuplot-tricks blog).
>
> Let me know if I can be of assistance with any edits if this is actually
> worg-candidate material. I have no idea what the standards are or how this
> works.
>
>
> Thanks for all the help!
>
> John
>>>
>>>
>>> On Mon, Aug 23, 2010 at 10:16 AM, Nick Dokos 
>>> wrote:

 John Hendy  wrote:

 > Sounds good. Where would I post the solution?  CLOSED: [2010-08-22 Sun
 > 15:44]
 >

 I think the list is the proper place: if the question comes up again,
 then it can be added to Worg.

 Cheers,
 Nick

 > On Sat, Aug 21, 2010 at 6:17 PM, Nick Dokos 
 > wrote:
 >
 >     John Hendy  wrote:
 >
 >     > Problem solved with babel. I was able to get everything I wanted
 > by
 >     > piecing together some examples from the mailing list and gnuplot
 >     > examples/manual around the web.
 >     >
 >
 >     Good! Maybe you should post the babel solution for future
 > reference.
 >     Here is an org-plot solution for future reference: there is a
 > script
 >     option that allows you to use an arbitrary gnuplot script.  The
 > org
 >     manual (http://orgmode.org/manual/Org_002dPlot.html#Org-Plot)
 > describes
 >     it very well:
 >
 >     ,
 >     | script If you want total control, you can specify a script file
 > (place
 >     |        the file name between double-quotes) which will be used
 > to
 >     |        plot. Before plotting, every instance of $datafile in the
 >     |        specified script will be replaced with the path to the
 > generated
 >     |        data file. Note: even if you set this option, you may
 > still want
 >     |        to specify the plot type, as that can impact the content
 > of the
 >     |        data file.
 >     `
 >
 >     foo.org:
 >     --8<---cut here---start->8---
 >     #+plot:  type:2d script:"myscript.gp"
 >     | 1 | x: where it should be on the scale | y  |
 >     |---++|
 >     | a |                                  0 | 10 |
 >     | b |                                 10 | 20 |
 >     | c |                                 11 | 30 |
 >     | d |                                 40 | 40 |
 >     --8<---cut here---end--->8---
 >
 >     myscript.gp:
 >     --8<---cut here---start->8---
 >     plot '$datafile' using 2:3:xticlabels(1)
 >     --8<---cut here---end--->8---
 >
 >     Nick
 >
 > ___
 > 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
>
>



-- 
Suvayu

Open source is the futur

[Orgmode] [APPLIED] Re: [PATCH] [babel] R :session should respect ess-ask-for-ess-directory set by user

2010-08-23 Thread Dan Davison
Erik Iverson  writes:

> Hello,
>
> I have (setq ess-ask-for-ess-directory nil) in my .emacs.  I.e., I don't
> want to be asked to set my working directory.  As it stands, if we
> run an R code block with the :session argument and no :dir argument,
> ess-ask-for-ess-directory gets set to t.  I would prefer if I had
> it previously set to nil, to do what ESS usually does to decide
> which directory to use.
>
> The following patch should do that, and below is some test code to
> make sure it works in each of the 4 cases.

Thanks Erik, I've applied that.

Dan

>
> ---
>  lisp/ob-R.el |3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/lisp/ob-R.el b/lisp/ob-R.el
> index 2a11421..e767449 100644
> --- a/lisp/ob-R.el
> +++ b/lisp/ob-R.el
> @@ -155,7 +155,8 @@ This function is called by `org-babel-execute-src-block'."
>"If there is not a current R process then create one."
>(unless (string= session "none")
>  (let ((session (or session "*R*"))
> -   (ess-ask-for-ess-directory (not (cdr (assoc :dir params)
> +   (ess-ask-for-ess-directory
> +(and ess-ask-for-ess-directory (not (cdr (assoc :dir params))
>(if (org-babel-comint-buffer-livep session)
> session
>   (save-window-excursion

___
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] [For Worg?] Gnuplot unevenly spaced non-numeric data plot?

2010-08-23 Thread John Hendy
Okay, bounced attempts with both .zip and tar. We'll try this instead... the
"attached file" mentioned below is here:

https://sites.google.com/site/jwhendytank/home/org-gnuplot-writeup.zip

-

> Sorry if this is a duplicate. My first attempt failed, perhaps due to the
attached .zip? I'm trying .tar this time.

>
-

> Alright Nick, careful what you wish for :) For anyone else who could use
this or do something with it:

>
- Over the weekend I figured out a bunch of stuff with gnuplot

> - I modified what I found to make it generic and wrote it up in an org file

> - The org file, resultant pics (eps), converted pngs, and exported html/pdf
are in the attached .zip *[edit: .tar] [edit: see link above]*

>

Let me know if this can be useful for worg. There's really nothing new that
can't be found, but it's tricky if you don't know what you're looking for.
The attached is the result of lots of digging on my part and some excellent
help from the mailing list. Included are gnuplot methods for:

>
- Setting axis titles with the #+PLOT method

> - Getting better image quality via eps -> png from a previous mailing list
discussion (thanks Eric & Eric)

> - The use of the 'reset' command when using multiple gnuplot babel blocks
in the same file

> - Unevenly spaced names x-tics

> - Multiple x-axis scales on the same graph

> - Broken axis example from gnuplot-tricks

>
Again, this info exists elsewhere, but this might be very nice to have on
worg. Perhaps this would serve as a nice primer for the beginner? I
footnoted everywhere I could to the original sources of my information
(mostly the mailing list and gnuplot-tricks blog).

>
Let me know if I can be of assistance with any edits if this is actually
worg-candidate material. I have no idea what the standards are or how this
works.

>

Thanks for all the help!

> John

>
>>
>> On Mon, Aug 23, 2010 at 10:16 AM, Nick Dokos wrote:
>>
>>> John Hendy  wrote:
>>>
>>> > Sounds good. Where would I post the solution?  CLOSED: [2010-08-22 Sun
>>> 15:44]
>>> >
>>>
>>> I think the list is the proper place: if the question comes up again,
>>> then it can be added to Worg.
>>>
>>> Cheers,
>>> Nick
>>>
>>> > On Sat, Aug 21, 2010 at 6:17 PM, Nick Dokos 
>>> wrote:
>>> >
>>> > John Hendy  wrote:
>>> >
>>> > > Problem solved with babel. I was able to get everything I wanted
>>> by
>>> > > piecing together some examples from the mailing list and gnuplot
>>> > > examples/manual around the web.
>>> > >
>>> >
>>> > Good! Maybe you should post the babel solution for future
>>> reference.
>>> > Here is an org-plot solution for future reference: there is a
>>> script
>>> > option that allows you to use an arbitrary gnuplot script.  The org
>>> > manual (http://orgmode.org/manual/Org_002dPlot.html#Org-Plot)
>>> describes
>>> > it very well:
>>> >
>>> > ,
>>> > | script If you want total control, you can specify a script file
>>> (place
>>> > |the file name between double-quotes) which will be used to
>>> > |plot. Before plotting, every instance of $datafile in the
>>> > |specified script will be replaced with the path to the
>>> generated
>>> > |data file. Note: even if you set this option, you may
>>> still want
>>> > |to specify the plot type, as that can impact the content
>>> of the
>>> > |data file.
>>> > `
>>> >
>>> > foo.org:
>>> > --8<---cut here---start->8---
>>> > #+plot:  type:2d script:"myscript.gp"
>>> > | 1 | x: where it should be on the scale | y  |
>>> > |---++|
>>> > | a |  0 | 10 |
>>> > | b | 10 | 20 |
>>> > | c | 11 | 30 |
>>> > | d | 40 | 40 |
>>> > --8<---cut here---end--->8---
>>> >
>>> > myscript.gp:
>>> > --8<---cut here---start->8---
>>> > plot '$datafile' using 2:3:xticlabels(1)
>>> > --8<---cut here---end--->8---
>>> >
>>> > Nick
>>> >
>>> > ___
>>> > 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] Re: Agenda view and timestamps

2010-08-23 Thread Matt Lundin
Hi Julien,

julien cubizolles  writes:

> Le lundi 16 août 2010 à 20:23 +0200, Bastien a écrit :
>> Hi Julien,
>> 
>> julien cubizolles  writes:
>> 
>> > Is there a way to make the agenda view display only the entries with a
>> > timestamp ? I would need that for a block agenda.
>> 
>> ,
>> | (setq org-agenda-custom-commands
>> |   '(("d" "With timestamps" agenda "List of tasks with a timestamp"
>> |  ((org-agenda-skip-function
>> |(lambda ()
>> |  (let* ((ts (org-entry-get nil "TIMESTAMP")))
>> |(if (or (not ts) (equal ts ""))
>> |(progn (outline-next-heading) (point))
>> `
>> 
>> Not tested but it should work.
>
> Just tested, and it works perfectly. Thanks a lot, I would never have
> come up with such an elaborate solution : my only experience of lisp
> programming is parenthesis matching while adapting other
> people's .emacs.
>

Another solution is to use the variable org-agenda-entry-types. This is
slightly more efficient, since it searches solely for timestamps when
creating the agenda, rather than considering all agenda types and then
filtering out everything that is not a timestamp.

--8<---cut here---start->8---
(setq org-agenda-custom-commands
   '(("d" "With timestamps" agenda "List of tasks with a timestamp"
  ((org-agenda-entry-types '(:timestamp))
--8<---cut here---end--->8---

Best,
Matt

___
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] [PATCH] Fix typo in org-find-exact-headling-in-buffer

2010-08-23 Thread Jambunathan K

Still thinkling but have no inkling about headling.

Jambunathan K.

>From a49dcabccf5d4589d553115d7ce8a648ab4328f2 Mon Sep 17 00:00:00 2001
From: Jambunathan K 
Date: Tue, 24 Aug 2010 03:05:04 +0530
Subject: [PATCH] Fix typo in org-find-exact-headling-in-buffer

* lisp/org.el (org-find-exact-heading-in-buffer): Renamed from
org-find-exact-headling-in-buffer.
* contrib/lisp/org-wikinodes.el (org-wikinodes-follow-link): Fix typo in
org-find-exact-headling-in-buffer

TINYCHANGE.
---
 contrib/lisp/org-wikinodes.el |6 +++---
 lisp/org.el   |4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/contrib/lisp/org-wikinodes.el b/contrib/lisp/org-wikinodes.el
index 0a00052..e07a8e4 100644
--- a/contrib/lisp/org-wikinodes.el
+++ b/contrib/lisp/org-wikinodes.el
@@ -119,10 +119,10 @@ setting of `org-wikinodes-create-targets'."
   (let ((create org-wikinodes-create-targets)
visiting buffer m pos file rpl)
 (setq pos
- (or (org-find-exact-headling-in-buffer target (current-buffer))
+ (or (org-find-exact-heading-in-buffer target (current-buffer))
  (and (eq org-wikinodes-scope 'directory)
   (setq file (org-wikinodes-which-file target))
-  (org-find-exact-headling-in-buffer
+  (org-find-exact-heading-in-buffer
target (or (get-file-buffer file)
   (find-file-noselect file))
 (if pos
@@ -288,7 +288,7 @@ with working links."
  (delete-region (match-beginning 0) (match-end 0))
  (save-match-data
(cond
-((org-find-exact-headling-in-buffer link (current-buffer))
+((org-find-exact-heading-in-buffer link (current-buffer))
  ;; Found in current buffer
  (insert (format "[[#%s][%s]]" link link)))
 ((eq org-wikinodes-scope 'file)
diff --git a/lisp/org.el b/lisp/org.el
index 15379ef..134ac56 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -14033,7 +14033,7 @@ only headings."
  (when (org-on-heading-p)
(move-marker (make-marker) (point
 
-(defun org-find-exact-headling-in-buffer (heading &optional buffer pos-only)
+(defun org-find-exact-heading-in-buffer (heading &optional buffer pos-only)
   "Find node HEADING in BUFFER.
 Return a marker to the heading if it was found, or nil if not.
 If POS-ONLY is set, return just the position instead of a marker.
@@ -14064,7 +14064,7 @@ When the target headline is found, return a marker to 
this location."
 (message "trying %s" file)
 (setq visiting (org-find-base-buffer-visiting file))
 (setq buffer (or visiting (find-file-noselect file)))
-(setq m (org-find-exact-headling-in-buffer
+(setq m (org-find-exact-heading-in-buffer
  heading buffer))
 (when (and (not m) (not visiting)) (kill-buffer buffer))
 (and m (throw 'found m))
-- 
1.7.0.4

___
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] Folding org drawers in elisp code?

2010-08-23 Thread Paul Sexton
Can anyone tell me how I can write elisp code to force drawers to appear closed
(folded) in an org buffer?

Thanks 
Paul



___
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] How to customize the org-mode's BEGIN_SRC HTML output

2010-08-23 Thread Erik Iverson

Hello Will,

I assume you don't want the htmlize.el functionality, which
syntax highlights the source code according to how you
have it in Emacs?

The way I ultimately ended up doing something similar was to
post-process the html file generated by the export process,
(there is probably a hook so you can do this automatically):

My wants required:

   (while (re-search-forward "
Hi,

Recently I start blogging using org-mode, it works pretty well, except 
that I would like to customize its output somehow and don't know how to 
make it work.


Here's one of the cusomization requirement:

when putting source code in blog, I would like to use the plugin: 
http://alexgorbatchev.com/SyntaxHighlighter/ which is basicly a 
javascript frontend engine turning the following HTML to a nice looking 
code snippet on the web brower.



/**
 * SyntaxHighlighter
 */
function foo()
{
if (counter <= 10)
return;
// it works!
}

 
I would like to make my code snippets in the org files exporting exactly 
what SyntaxHighlighter required (with a 

However, I could not find a way:
using #+BEGIN_EXAMPLE give me a  tag with class="example" and some 
 tag


using #+BEGIN_SRC give me a  tag with class="src src-%(lanangue 
name)" and a bunch of  in the code itself.


using #+BEGIN_HTML give me nothing and it does not escape special chars 
like "<>" either.


And there seems no custmized variable which could control the "class" of 
the  tag.


My questions are:
Is there some way to achive this?
If it need hack , where should I modify el files to be able to get the 
BEGIN_SRC works as my expected?
Generally, how should one do this kind of customization and how to even 
add another export format, is there any tutorial to startup ?


thanks for your help,
ZHUO,Qiang




___
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] org-capture templates with file+olp target

2010-08-23 Thread David Maus
Erik Iverson wrote:
>I tried to debug, and it looks like that variable is not getting
>evaluated for some reason.  I'm sure it's obvious to someone,
>but is there a way around this?

>Hardcoding the path is actually problematic, since my org
>files are passed around various machines using git/Dropbox,
>and therefore the path is different depending on where I
>am located.

>Below is the simplest example I could come up with, just
>create a ~/test.org file and try it out.

>   ;; a path to some org-files
>   (setq org-test-path "/tmp")
>   ;; a specific org-file
>   (setq org-test-file (concat org-test-path "/test.org"))

>   (setq org-capture-templates
> '(("t" "Todo" entry (file+headline org-test-file "Tasks")
>"* TODO %?\n  %i\n  %a")
>   ("b" "Buy" item (file+olp org-test-file "Stuff to Buy" "House")
>"")))

The symbol `org-test-file' is indeed not evaluated because the entire
template list is quoted.  You can use backquotes (Elisp manual, 13.5)
to tell Emacs to evaluate parts of the lisp:

,
| (setq org-capture-templates
|   `(("t" "Todo" entry (file+headline ,org-test-file "Tasks")
|"* TODO %?\n  %i\n  %a")
|   ("b" "Buy" item (file+olp ,org-test-file "Stuff to Buy" "House")
|"")))
`

The lisp starts with the backtick (`) and all expressions that are
prefix by comma (,) are evaluated.

HTH,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpo0K9GJMnle.pgp
Description: PGP signature
___
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] How to customize the org-mode's BEGIN_SRC HTML output

2010-08-23 Thread 卓强 Will Zhuo
Hi,

Recently I start blogging using org-mode, it works pretty well, except that
I would like to customize its output somehow and don't know how to make it
work.

Here's one of the cusomization requirement:

when putting source code in blog, I would like to use the plugin:
http://alexgorbatchev.com/SyntaxHighlighter/ which is basicly a javascript
frontend engine turning the following HTML to a nice looking code snippet on
the web brower.


/**
 * SyntaxHighlighter
 */
function foo()
{
if (counter <= 10)
return;
// it works!
}


I would like to make my code snippets in the org files exporting exactly
what SyntaxHighlighter required (with a  tag

using #+BEGIN_SRC give me a  tag with class="src src-%(lanangue name)"
and a bunch of  in the code itself.

using #+BEGIN_HTML give me nothing and it does not escape special chars like
"<>" either.

And there seems no custmized variable which could control the "class" of the
 tag.

My questions are:
Is there some way to achive this?
If it need hack , where should I modify el files to be able to get the
BEGIN_SRC works as my expected?
Generally, how should one do this kind of customization and how to even add
another export format, is there any tutorial to startup ?

thanks for your help,
ZHUO,Qiang
___
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] Deleting EXPERIMENTAL

2010-08-23 Thread Ethan
Hey everyone,

There's some code in EXPERIMENTAL (find-links-to-local.el) that causes
paredit to barf when I open it. This code doesn't do anything, hasn't been
touched in two years, and it offends my sense of order. Would someone please
delete it in master?

Thanks.

Ethan
___
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] mathjax HTML export question

2010-08-23 Thread Erik Iverson

Hello,

I'm really enjoying MathJax HTML export in the development
version of org-mode!

I do have one question though:

Jan Böcker writes in this post,
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28630.html ,
that:

"I found that when an HTML file on the local hard disk uses
MathJax from the web, MathJax reverts to image fonts in Firefox (this is
caused by a security feature of Firefox and mentioned in the MathJax
FAQ). Using a local MathJax installation in a subdirectory fixes this."

I am using Firefox to view the exported HTML documents from org-mode,
and everything seems to look great.  MathJax ix clearly working
since I can right-click an equation and zoom in, show the LaTeX source,
etc.

Is there something that I'm missing, or that could be "better" with
a local installation of MathJax?  I don't know what "reverts to image
fonts in Firefox" means, but whatever is happening on my export seems
to look nice.

I also see at:
http://www.mathjax.org/resources/docs/?installation.html
under 'Notes about shared installations' that making a
small change to .htaccess:

"should make it possible for pages at other sites to load MathJax
from this server in such a way that Firefox will be able to download
the web-based fonts."

Is this what has happened with the org-mode hosted MathJax install,
or should I install a local copy to get the full benefits of
MathJax support?

Thanks for any explanation!

Erik

___
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] Gnuplot unevenly spaced non-numeric data plot?

2010-08-23 Thread Nick Dokos
John Hendy  wrote:

> Sounds good. Where would I post the solution?
> 

I think the list is the proper place: if the question comes up again,
then it can be added to Worg.

Cheers,
Nick

> On Sat, Aug 21, 2010 at 6:17 PM, Nick Dokos  wrote:
> 
> John Hendy  wrote:
>
> > Problem solved with babel. I was able to get everything I wanted by
> > piecing together some examples from the mailing list and gnuplot
> > examples/manual around the web.
> >
>
> Good! Maybe you should post the babel solution for future reference.
> Here is an org-plot solution for future reference: there is a script
> option that allows you to use an arbitrary gnuplot script.  The org
> manual (http://orgmode.org/manual/Org_002dPlot.html#Org-Plot) describes
> it very well:
>
> ,
> | script If you want total control, you can specify a script file (place
> |        the file name between double-quotes) which will be used to
> |        plot. Before plotting, every instance of $datafile in the
> |        specified script will be replaced with the path to the generated
> |        data file. Note: even if you set this option, you may still want
> |        to specify the plot type, as that can impact the content of the
> |        data file.
> `
>
> foo.org:
> --8<---cut here---start->8---
> #+plot:  type:2d script:"myscript.gp"
> | 1 | x: where it should be on the scale | y  |
> |---++|
> | a |                                  0 | 10 |
> | b |                                 10 | 20 |
> | c |                                 11 | 30 |
> | d |                                 40 | 40 |
> --8<---cut here---end--->8---
>
> myscript.gp:
> --8<---cut here---start->8---
> plot '$datafile' using 2:3:xticlabels(1)
> --8<---cut here---end--->8---
>
> Nick
> 
> ___
> 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] Gnuplot unevenly spaced non-numeric data plot?

2010-08-23 Thread John Hendy
Sounds good. Where would I post the solution?

On Sat, Aug 21, 2010 at 6:17 PM, Nick Dokos  wrote:

> John Hendy  wrote:
>
> > Problem solved with babel. I was able to get everything I wanted by
> > piecing together some examples from the mailing list and gnuplot
> > examples/manual around the web.
> >
>
> Good! Maybe you should post the babel solution for future reference.
> Here is an org-plot solution for future reference: there is a script
> option that allows you to use an arbitrary gnuplot script.  The org
> manual (http://orgmode.org/manual/Org_002dPlot.html#Org-Plot) describes
> it very well:
>
> ,
> | script If you want total control, you can specify a script file (place
> |the file name between double-quotes) which will be used to
> |plot. Before plotting, every instance of $datafile in the
> |specified script will be replaced with the path to the generated
> |data file. Note: even if you set this option, you may still want
> |to specify the plot type, as that can impact the content of the
> |data file.
> `
>
> foo.org:
> --8<---cut here---start->8---
> #+plot:  type:2d script:"myscript.gp"
> | 1 | x: where it should be on the scale | y  |
> |---++|
> | a |  0 | 10 |
> | b | 10 | 20 |
> | c | 11 | 30 |
> | d | 40 | 40 |
> --8<---cut here---end--->8---
>
> myscript.gp:
> --8<---cut here---start->8---
> plot '$datafile' using 2:3:xticlabels(1)
> --8<---cut here---end--->8---
>
> Nick
>
___
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: Orgmode[PATCH] org-export-generic, "text markup" -- and a request

2010-08-23 Thread Robert Goldman
On 8/23/10 Aug 23 -9:16 AM, Wes Hardaker wrote:
>> On Sat, 21 Aug 2010 05:25:49 +0200, Carsten Dominik 
>>  said:
> 
> CD> I would like to ask that you - at least for a while - become
> CD> the responsible person for the generic exporter.
> 
> I'm more than fine with letting someone else either co-manage or manage 
> its development.  That means faster development to me :-)

That's fine with me.  Note that I am on vacation this week.  That's why
I haven't sent a response earlier.  I'll be mostly unavailable until the
1 September.

I have a couple of further patches to push that involve adding new
export formats based on the generic exporter (a couple of wikis).

I'll see if I can squeeze in time to do some tests (export modules are
reasonably easy to test), but that won't be for a while.

Best,
Robert

___
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: Orgmode[PATCH] org-export-generic, "text markup" -- and a request

2010-08-23 Thread Wes Hardaker
> On Fri, 20 Aug 2010 12:05:46 -0500, Robert Goldman  
> said:

RG> No, I'm afraid I have sent multiple emails and have heard nothing.

As I mentioned, I had a huge number of "away trips" in the summer and
just got over the last of my deadlines last week.  I was hoping to look
at them this week, and I apologize for the delay.

That being said, I typically prefer to take the "people intend to do
good" approach to OSS development and applying them without a more
detailed review is just fine with me Carsten.  Please don't let my
in-and-out schedule hold up others!

-- 
Wes Hardaker 
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/

___
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: Orgmode[PATCH] org-export-generic, "text markup" -- and a request

2010-08-23 Thread Wes Hardaker
> On Sat, 21 Aug 2010 05:25:49 +0200, Carsten Dominik 
>  said:

CD> I would like to ask that you - at least for a while - become
CD> the responsible person for the generic exporter.

I'm more than fine with letting someone else either co-manage or manage 
its development.  That means faster development to me :-)
-- 
Wes Hardaker 
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/

___
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] [PATCH] Recognize underscores in URL

2010-08-23 Thread Nicolas Goaziou
Hello,

> Carsten Dominik writes:
> can you please remind me why this would be necessary?

It _should_ allow to correctly fontify and export URL such as this
one:

http://en.wikipedia.org/wiki/Lisp_(programming_language)

Regards,

-- Nicolas

___
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] [PATCH] Recognize underscores in URL

2010-08-23 Thread Carsten Dominik

Hi Nicolas,

can you please remind me why this would be necessary?

Thanks!

- Carsten
On Aug 12, 2010, at 7:59 PM, Nicolas Goaziou wrote:


Hello,

This needs some testing as it may break something else, but the
following patch should prevent underscores in URL from introducing
subscript.

Regards,

-- Nicolas

<0001-Recognize-URL-with- 
underscores.patch>___

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


[Accepted] [Orgmode] body-only property for publishing projects

2010-08-23 Thread Carsten Dominik
Patch 228 (http://patchwork.newartisans.com/patch/228/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C4C6D081E.1050202%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] body-only property for publishing projects
> Date: Thu, 19 Aug 2010 15:31:58 -
> From: Harri Kiiskinen 
> X-Patchwork-Id: 228
> Message-Id: <4c6d081e.1050...@gmail.com>
> To: Org-mode list 
> 
> Dear All,
> 
> I had a look at the code and did some experimenting. The resulting patch
> is attached, and it adds the :body-only property to publishing, so that
> one can decide to publish the file with only the document included.
> 
> Best,
> 
> Harri Kiiskinen
> 
> PS. For some reason, I do not get copies of the messages I send to the
> list, even though I have selected that option in the settings. That's
> why this is not a response to my original mails.
> 
> 
> diff --git a/lisp/org-publish.el b/lisp/org-publish.el
> index 4bf2031..cae7be6 100644
> --- a/lisp/org-publish.el
> +++ b/lisp/org-publish.el
> @@ -189,7 +189,14 @@ sitemap of files or summary page for a given project.
>  
>  The following properties control the creation of a concept index.
>  
> -  :makeindex Create a concept index."
> +  :makeindex Create a concept index.
> +
> +Other properties affecting publication.
> +
> +  :body-only  Set this to 't' to publish only the body of the
> + documents, excluding everything outside and 
> + including the  tags in HTML, or 
> + \begin{document}..\end{document} in LaTeX."
>:group 'org-publish
>:type 'alist)
>  
> @@ -513,7 +520,9 @@ PUB-DIR is the publishing directory."
>   (setq export-buf-or-file
> (funcall (intern (concat "org-export-as-" format))
>  (plist-get plist :headline-levels)
> -nil plist nil nil pub-dir))
> +nil plist nil 
> +(plist-get plist :body-only) 
> +pub-dir))
>   (when (and (bufferp export-buf-or-file)
>  (buffer-live-p export-buf-or-file))
> (set-buffer export-buf-or-file)
> 

___
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] [Accepted] [Orgmode, 2/2] org-store-link: Fix storing of links to headlines in indirect buffers

2010-08-23 Thread Carsten Dominik
Patch 238 (http://patchwork.newartisans.com/patch/238/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C8162z2tf8n.fsf_-_%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode,
>   2/2] org-store-link: Fix storing of links to headlines in indirect
>   buffers
> Date: Mon, 23 Aug 2010 04:11:20 -
> From: Jambunathan K 
> X-Patchwork-Id: 238
> Message-Id: <8162z2tf8n.fsf...@gmail.com>
> To: emacs-orgmode@gnu.org
> Cc: 
> 
> Summary: 
> 
> When org-store-link is invoked on a headline in indirect buffer (as in a
> capture buffer), hyperlink gets created to the file and NOT the
> headline. This is a bug.
> 
> The attached patch fixes this.
> 
> Setup:
> 
> # ~/.emacs
> 
> (defun my-conversation-id ()
>   (interactive)
> 
>   (remove-hook 'org-capture-before-finalize-hook 'my-conversation-id)
> 
>   (let ((org-link-to-org-use-id t))
> (call-interactively 'org-store-link)
> )
>   )
> 
> 
> # org-capture-templates
> 
>  ("x" "Conversations" entry
>   (file+headline "~/conversation.org" "Conversations")
>   "%(progn (add-hook 'org-capture-before-finalize-hook 'my-conversation-id) 
> \"\")** Note taken on %U\n   %?  " :prepend t :empty-lines 1)
> 
> Steps for reproduction:
> 
> Trigger org-capture for the above capture entry.
> 
> Examine conversation.org before/after the patch is applied. Note the
> absence/presence of IDs for the captured entry. 
> 
> Check for the stored links using C-c C-l. Note the file/headline links.
> 
> # file conversation.org before and after the patch
> 
> * Conversations
> 
> ** Note taken on [2010-08-23 Mon 04:33]
>:PROPERTIES:
>:ID:   7e1974a6-8fa1-43cf-bef3-2adf37d99130
>:END:
> 
> ** Note taken on [2010-08-23 Mon 04:32]
> 
> # (org-insert-link) showing stored links before and after the patch
> 
> file:~/conversation.org (file:~/conversation.org)
> id:7e1974a6-8fa1-43cf-bef3-2adf37d99130 (Note taken on [2010-08-23 Mon 04:33])
> 
> 
> Jambunathan K.
> >From 90628b45ee4d270b32f8a56618ca75ceb4a16b21 Mon Sep 17 00:00:00 2001
> From: Jambunathan K 
> Date: Mon, 23 Aug 2010 02:32:15 +0530
> Subject: [PATCH 2/2] org-store-link: Fix storing of links to headlines in 
> indirect buffers
> 
> * org.el (org-store-link): Storing of links to headlines in indirect
> buffers was broken.  Fix it.
> 
> TINYCHANGE
> 
> ---
> lisp/org.el |   11 +++
>  1 files changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 5db7aab..15379ef 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -8301,13 +8301,14 @@ For file links, arg negates 
> `org-context-in-file-links'."
>   (setq cpltxt (concat "file:" file)
> link (org-make-link cpltxt
>  
> - ((and buffer-file-name (org-mode-p))
> + ((and (buffer-file-name (buffer-base-buffer)) (org-mode-p))
>(setq custom-id (ignore-errors (org-entry-get nil "CUSTOM_ID")))
>(cond
> ((org-in-regexp "<<\\(.*?\\)>>")
>   (setq cpltxt
> (concat "file:"
> -   (abbreviate-file-name buffer-file-name)
> +   (abbreviate-file-name
> +(buffer-file-name (buffer-base-buffer)))
> "::" (match-string 1))
> link (org-make-link cpltxt)))
> ((and (featurep 'org-id)
> @@ -8329,11 +8330,13 @@ For file links, arg negates 
> `org-context-in-file-links'."
>(error
> ;; probably before first headline, link to file only
> (concat "file:"
> -   (abbreviate-file-name buffer-file-name))
> +   (abbreviate-file-name
> +(buffer-file-name (buffer-base-buffer
> (t
>   ;; Just link to current headline
>   (setq cpltxt (concat "file:"
> -  (abbreviate-file-name buffer-file-name)))
> +  (abbreviate-file-name
> +   (buffer-file-name (buffer-base-buffer)
>   ;; Add a context search string
>   (when (org-xor org-context-in-file-links arg)
> (setq txt (cond
> 

___
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] [Accepted] [Orgmode, 1/2] org-store-link: Return link when invoked from within agenda buffer

2010-08-23 Thread Carsten Dominik
Patch 239 (http://patchwork.newartisans.com/patch/239/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C81sk26s06x.fsf%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode,
>   1/2] org-store-link: Return link when invoked from within agenda
>   buffer
> Date: Mon, 23 Aug 2010 03:37:31 -
> From: Jambunathan K 
> X-Patchwork-Id: 239
> Message-Id: <81sk26s06x@gmail.com>
> To: emacs-orgmode@gnu.org
> Cc: 
> 
> Carsten, 
> 
> Sorry about multiple drops. This post *should* contain the patch.
> 
> Summary: 
> 
> When I trigger a org-capture, with the cursor positioned on a line in
> the agenda buffer, I want the link to the agenda entry to be available
> as an annotation (%a) to the capture process. Currently this is broken.
> 
> The enclosed patch fixes this.
> 
> Setup:
> 
> # file todo.org
> * TODO Talk to someone
>SCHEDULED: <2010-08-23 Mon>
> 
> # org-capture-templates
>  ("z" "Conversation" entry
>   (file+headline "~/conversation.org" "Conversations")
>   "** Note taken on %U\n   %a\n   %?" :prepend t :empty-lines 1)
> 
> Steps for reporduction:
> 
> 1. Restrict agenda to todo.org
> 2. Do org-agenda
> 3. Place the cursor on the above todo line
> 4. Trigger an org-capture for the above capture entry
> 
> Examine the entries in conversation.org before/after the patch is
> applied. Note the absence/presence of the link to the parent todo entry.
> 
> * Conversations
> 
> ** Note taken on [2010-08-23 Mon 03:58]
>[[file:~/todo.org::*Talk%20to%20someone][Talk to someone]]
> 
> ** Note taken on [2010-08-23 Mon 03:42]
> 
> Jambunathan K.
> >From bcceabe70968416fb4540e32c68bfbda76820f9b Mon Sep 17 00:00:00 2001
> From: Jambunathan K 
> Date: Sun, 22 Aug 2010 23:36:52 +0530
> Subject: [PATCH 1/2] org-store-link: Return link when invoked from within 
> agenda buffer.
> 
> * org.el (org-store-link): Return link when invoked non-interactively from
> an agenda buffer.
> 
> TINYCHANGE
> 
> ---
> lisp/org.el |   11 ++-
>  1 files changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 366c8dd..5db7aab 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -8218,7 +8218,7 @@ For file links, arg negates 
> `org-context-in-file-links'."
>(org-load-modules-maybe)
>(setq org-store-link-plist nil)  ; reset
>(let ((outline-regexp (org-get-limited-outline-regexp))
> - link cpltxt desc description search txt custom-id)
> + link cpltxt desc description search txt custom-id agenda-link)
>  (cond
>  
>   ((run-hook-with-args-until-success 'org-store-link-functions)
> @@ -8250,9 +8250,10 @@ For file links, arg negates 
> `org-context-in-file-links'."
>  (get-text-property (point) 'org-marker
>   (when m
> (org-with-point-at m
> - (if (interactive-p)
> - (call-interactively 'org-store-link)
> -   (org-store-link nil))
> + (setq agenda-link
> +   (if (interactive-p)
> +   (call-interactively 'org-store-link)
> + (org-store-link nil)))
>  
>   ((eq major-mode 'calendar-mode)
>(let ((cd (calendar-cursor-to-date)))
> @@ -8389,7 +8390,7 @@ For file links, arg negates 
> `org-context-in-file-links'."
>  "::#" custom-id))
>   (setq org-stored-links
> (cons (list link desc) org-stored-links
> -  (and link (org-make-link-string link desc)
> +  (or agenda-link (and link (org-make-link-string link desc))
>  
>  (defun org-store-link-props (&rest plist)
>"Store link properties, extract names and addresses."
> 

___
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] [PATCH] Use integer syntax for the MODE argument to #'set-file-modes

2010-08-23 Thread Carsten Dominik
Applied, thanks.

- Carsten

On Sun, Aug 22, 2010 at 1:17 AM, Aidan Kehoe  wrote:
>
> Hello!
>
> We need this change to get org-mode compiling with recent XEmacs 21.5. On
> previous 21.5 and current 21.4, the problem manifests itself at runtime, not
> compile time, like so:
>
>  (set-file-modes "/tmp/aidan/foo.el" ?\755)
>  => Wrong type argument: integerp, ?í
>
> One old reason to go for the ?\755 syntax instead of the #o755 syntax under
> GNU Emacs was to be that older versions of GNU Emacs didn’t support #o755,
> but, to my knowledge, every released GNU Emacs since March 2000 has
> supported the latter syntax.
>
> Best,
>
> Aidan Kehoe, the XEmacs project.
>
> ChangeLog addition:
>
> 2010-08-21  Aidan Kehoe  
>
>        * ob-tangle.el (org-babel-tangle): Change the MODE argument to
>        #'set-file-modes to use integer, not character syntax, avoiding
>        compile problems with recent XEmacs.
>
> diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
> index a7ba072..adc054a 100644
> --- a/lisp/ob-tangle.el
> +++ b/lisp/ob-tangle.el
> @@ -187,7 +187,7 @@ exported source code blocks by language."
>                          (insert content)
>                          (write-region nil nil file-name
>                    ;; if files contain she-bangs, then make the executable
> -                   (when she-bang (set-file-modes file-name ?\755))
> +                   (when she-bang (set-file-modes file-name #o755))
>                     ;; update counter
>                     (setq block-counter (+ 1 block-counter))
>                     (add-to-list 'path-collector file-name)
>
>
> --
> “Apart from the nine-banded armadillo, man is the only natural host of
> Mycobacterium leprae, although it can be grown in the footpads of mice.”
>  -- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
>
> ___
> 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] Emacs 24.0.50.1 & problem to export to HTML

2010-08-23 Thread Emmanuel Di Pretoro
As I use a color-theme, I'll try another one.

Thanks

2010/8/23 Sebastian Rose 

> Emmanuel Di Pretoro  writes:
> > Hi,
> >
> > I've compiled my own emacs based on the git repository, but with this
> > version of emacs, I can't export anymore to HTML. The error message is
> > « face-attribute: Invalid face: off ». So the problem is related to
> > htmlize.el (so my excuses for this non strictly orgmode post). Anybody
> has
> > faced this problem? Is there a solution?
>
>
>
> I guess you should check your face definitions.  Something about faces
> changed this summer in emacs-24, but I can't recall what it was.
>
>
>
> I cannot reproduce this problem.
>
> My emacs-24 is eight days old.
>
>
>  Sebastian
>
>
___
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