Re: [O] [BUG] Cannot export a raw link

2014-04-16 Thread Nicolas Goaziou
I suggest the following for the 8.2.6 release:

  - revert the whole patches line

  - at the parser level

- if scheme is not "file" or derived (e.g., "file+sys" or
  "docview"), assume PATH is a correct URI and do not change
  anything ;

- otherwise, if PATH is absolute and do not start with two or more
  slashes, append "//" to it ;

  - at the back-ends level, simply add "file:" if PATH is absolute and
use PATH otherwise.

I think it is sufficient for 8.2.6.  We can still discuss if more
parsing is needed for 8.3.

WDYT?


Regards,

-- 
Nicolas Goaziou



Re: [O] How to change org-export-html-style

2014-04-16 Thread Rustom Mody
Ok Thanks Nick

I had to change org-export-html-style  to org-html-head  and now its working

How the 7.xx variable was working is still somewhat a mystery though.


[O] Strings inside code blocks

2014-04-16 Thread Rustom Mody
I want to put a string-literal inside an inline code-block
Neither
~"Hello World"~
nor ="Hello World"= seem to work

If it cant be done then I need an html specific solution; I'd prefer a
generic one though.

Thanks
Rusi


Re: [O] Strings inside code blocks

2014-04-16 Thread Thorsten Jolitz
Rustom Mody  writes:

> I want to put a string-literal inside an inline code-block
> Neither 
> ~"Hello World"~
> nor ="Hello World"= seem to work
>
> If it cant be done then I need an html specific solution; I'd prefer a
> generic one though.

This

,--
| * 1st Level
| src_emacs-lisp{"Hello World"}
`--

renders this

,--
| [...]
| 1. 1st Level
| 
| 
| 
| 
| 1 1st Level
| 
| 
| Hello World
| [...]
`--


-- 
cheers,
Thorsten




[O] noninteractive use of org-export

2014-04-16 Thread Julien Cubizolles
How can I use org-beamer-export-to-pdf for example for an org file that
the current buffer isn't visiting?

My setup is the following : I have two org files cours-beamer.org and
cours-notes.org each containing different +LATEX_CLASS and
+LATEX_CLASS_OPTIONS choices and the same +#INCLUDE "cours.org"
file. I'd like to be able to run the export to beamer-pdf for both
cours-beamer.org and cours-notes.org from cours.org, or even from a bash
script but the documentation for org-beamer-export-to-pdf doesn't show
how.


Julien.




Re: [O] How to change org-export-html-style

2014-04-16 Thread Rick Frankel

On 2014-04-15 23:25, Rustom Mody wrote:
On Tue, Apr 15, 2014 at 10:39 PM, Rick Frankel  
wrote:


On 2014-04-15 07:30, Rustom Mody wrote:

I need (for various reasons) to inline these styles

I have this code in my init to change the html style

(defun rusi/load-css()
  "Returns string from css file (hardwired) suitable for inline css"
  (interactive)
  (setq org-export-html-style
    (with-temp-buffer
      (insert "nn")
      (insert-file-contents (expand-file-name "my-org.css" "~/orghacks"))
      (goto-char (point-max))
      (insert "nn")
      (buffer-string
(rusi/load-css)
Now if I edit and save the my-org.css file and then call M-: 
(rusi/load-css)

it does not work.
Restarting emacs makes it work.
Ive checked that org-export-html-style is actually changed.
However org-mode seems to be keeping some internal copy after first 
use.

org-reload is not helping here

Can you explain "not working"? There's not enough info here to see
what problem you are having.



On further examination, I'm not sure how it works at all!
`org-export-html-style' is a customization variable from the (old)
version of org included w/ emacs:

#+BEGIN_SRC emacs-lisp
(describe-variable 'org-export-html-style)
#+END_SRC

#+RESULTS:
#+begin_example
org-export-html-style is a variable defined in `org-html.el'.

#+end_example

The source file for the current exporter is `ox-html.el'.

Try setting `org-html-head' and `org-html-head-include-default-style'.

rick





Re: [O] noninteractive use of org-export

2014-04-16 Thread Thorsten Jolitz
Julien Cubizolles  writes:

> How can I use org-beamer-export-to-pdf for example for an org file that
> the current buffer isn't visiting?
>
> My setup is the following : I have two org files cours-beamer.org and
> cours-notes.org each containing different +LATEX_CLASS and
> +LATEX_CLASS_OPTIONS choices and the same +#INCLUDE "cours.org"
> file. I'd like to be able to run the export to beamer-pdf for both
> cours-beamer.org and cours-notes.org from cours.org, or even from a bash
> script but the documentation for org-beamer-export-to-pdf doesn't show
> how.

This is untested! But maybe ...

#+begin_src emacs-lisp
  (defvar my-beamer-files '("/path/to/file1" "/path/to/file2"))

  (defun my-beamer-exp-fun ()
(interactive)
(when (consp my-beamer-files)
  (mapc
   (lambda (--file)
 (with-current-buffer (find-file --file)
   (org-mode)
   (org-beamer-export-to-pdf)
   (kill-buffer)))
   my-beamer-files)))
#+end_src

#+results:
: my-beamer-exp-fun

-- 
cheers,
Thorsten




Re: [O] Strings inside code blocks

2014-04-16 Thread Rustom Mody
Thorsten Jolitz wrote:

> This
>
> ,--
> | * 1st Level
> | src_emacs-lisp{"Hello World"}
> `--
>
> renders this...


does not seem to work for me.
Some requirements I need python code inline inside tables.


[O] ob-clojure :session echo settings

2014-04-16 Thread Michael Bach
Hi,

Emacs 24.4.
org-mode latest master
clojure-mode latest MELPA
cider latest MELPA

Following the instructions in [1], I set up session evaluation for
clojure in the snippet:

#+BEGIN_SRC org
#+PROPERTY: header-args:clojure :session :cache no

#+begin_src clojure
(+ 1 2 3)
#+end_src

#+RESULTS:
: 6
#+END_SRC

Now I would like to have the results echoed in the repl instead of
inserted into the buffer under #+RESULTS: for presentation purposes.
The session is active, as I am able to e.g. define functions in the
babel block and call them in the repl.  I did not find anything about
results in terms of sessions in the manual - am I missing something?

Best Regards,
Michael

[1]
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html#sec-7




Re: [O] The Org Package

2014-04-16 Thread Achim Gratz
David Masterson writes:
> Hmmm.  I would think that this process might work as well:
>
> 1. Start with "emacs -Q"

This fails with some older versions of Emacs since these had a bug where
parts of the init scripts were processed even when you said explicitly
that they shouldn't be read.

> 2. Bring up the Emacs Packages list
> 3. Mark the "available" org for "U"pgrade
> 4. Execute the upgrade
> 5. Restart Emacs

With the version of Emacs you have that should work, yes.

> The only question is what about the built-in Org?

Leave it alone.  Unless you _are_ planning to build your own Emacs
without it, nothing can be done that might not lead to hard to find
problems later on.  If you're willing to experiment, look at

testing/org-batch-test-init.el

for how to get rid of the pre-installed Org (or at least those parts
that I know about).  Obviously it works in batch mode, otherwise we'd
have tons of complaints about it; but I can't really say if there might
be problems with a full-fledged GUI Emacs session.


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

DIY Stuff:
http://Synth.Stromeko.net/DIY.html




Re: [O] Possible regexp bug in org.el

2014-04-16 Thread Bastien
Hi Thorsten and Nicolas,

Nicolas Richard  writes:

> It's almost certainly a typo, but it introduces no bug because '*' can't
> bear its special meaning after '^', so the regexp engine will make it
> match exactly the '*' character. But it'd be better written as "^*+"
> (but this is not recommended) or, preferably, "^\\*+" indeed.

Fixed in master, thanks,

-- 
 Bastien



Re: [O] Org-Babel concise named scalar variables

2014-04-16 Thread Achim Gratz
William Kunkel writes:
> Is there a more concise way to do simple variables, or am I stuck with
> the named example blocks?

It seems you'll want to define those through "var" properties.


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

DIY Stuff:
http://Synth.Stromeko.net/DIY.html




Re: [O] Centos 6.5 => emacs 23.1 => org 6.21b => Need help

2014-04-16 Thread Bastien
Hi Suhas,

Suhas Pai  writes:

> sudo yum groupupdate emacs
> Package 1:emacs-23.1-25.el6.x86_64 already installed and latest
> version
> In order to preserve the integrity of all pacakges installed, I
> prefer not
> deviate from "yum" so I don't have the latest emacs (24.1) or the
> orgmode pacakge.

I suggest you install latest Org release by

1. downloading http://orgmode.org/org-latest.zip
2. unzipping the file
3. cd org-mode/
3. make autoloads

Then add this to your .emacs.el file :

;; Adapt the directory path if needed
(add-to-list 'load-path "~/org-mode/")

This way you will enjoy a recent version without compromising
the stability of your distribution, and you'll be able to check
if the issues you reported are still there.

Best,

-- 
 Bastien



Re: [O] How can you sort an Org clock table?

2014-04-16 Thread Bastien
Hi Noah,

from master, you can now use a :sort parameter in clocktable
to sort a column.  For example:

#+BEGIN: clocktable :maxlevel 2 :scope file :sort (2 . ?t)
#+CAPTION: Clock summary at [2014-04-16 mer. 18:12]
| Headline |   Time |
|--+|
| *Total time* | *0:34* |
|--+|
| STRT abc |   0:15 |
| STRT def |   0:19 |
#+END:

The (2 . ?t) means: "sort the second column by time."

Let me know if it works for you,

-- 
 Bastien



Re: [O] [PATCH] No title in org-export-as-odt

2014-04-16 Thread Bastien
Hi Brady,

Brady Trainor  writes:

> I wanted to return to this and attempt it, here is my first patch ever: 

Thanks,

> diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
> index da2ca3f..8c7f0fe 100644
> --- a/lisp/ox-odt.el
> +++ b/lisp/ox-odt.el
> @@ -1491,7 +1491,7 @@ original parsed data.  INFO is a plist holding export 
> options."
>(goto-char (match-beginning 0))
>
>;; Preamble - Title, Author, Date etc.
> -  (insert
> +  (ignore
> (let* ((title (org-export-data (plist-get info :title) info))
>(author (and (plist-get info :with-author)
> (let ((auth (plist-get info :author)))

The way not to insert a title is simply to add an empty title like this:

#+TITLE:

Otherwise, Org falls back on the file name.

> I installed a fresh version of org-mode from Elpa or Melpa before doing 
> this. (I am just now looking a little into the maint branch.)
>
> In the long-long run, when I go to insert the code, I wonder why we don't 
> make removing the title an option in ox.el.

This could be done with a new `org-export-with-title' option but I
would rather stick to the current way of doing it (an empty value
for #+TITLE:).

Thanks anyway for the patches,

-- 
 Bastien



Re: [O] Mobileorg doesn't correctly import one .org file

2014-04-16 Thread Bastien
Hi Pere,

Pere Quintana Seguí  writes:

> Everything looks fine except one file which is not correctly
> imported.

If you don't get an answer here, and if you still have this problem,
maybe you can try asking directly on MobileOrg bug reporting page:

https://github.com/MobileOrg/mobileorg/issues

2 cts,

-- 
 Bastien



Re: [O] Org-Babel concise named scalar variables

2014-04-16 Thread Thomas S. Dye
Aloha Will,

You can set system-wide header arguments or set default values for a
buffer or heading.  See the Org mode manual, Section 14.8.1, Using
header arguments.

hth,
Tom

William Kunkel  writes:

> I'm just getting started using Org Babel and I've run into a bit of an
> annoyance that I can't seem to find an answer to in the Org Babel docs. I
> find myself wanting to use one variable in multiple code blocks, for
> example, the path to a file. Org Babel provides several mechanisms for
> including array/list types, via tables and lists with a #+NAME line before
> them. However the only mechanism it provides for single variables is #+NAME
> before example blocks, which just seem clunky for something as trivial as a
> file path or numeric variable. Is there a more concise way to do simple
> variables, or am I stuck with the named example blocks?
>
> Thanks,
> Will
> I'm just getting started using Org Babel and I've run into a bit of an
> annoyance that I can't seem to find an answer to in the Org Babel
> docs. I find myself wanting to use one variable in multiple code
> blocks, for example, the path to a file. Org Babel provides several
> mechanisms for including array/list types, via tables and lists with a
> #+NAME line before them. However the only mechanism it provides for
> single variables is #+NAME before example blocks, which just seem
> clunky for something as trivial as a file path or numeric variable. Is
> there a more concise way to do simple variables, or am I stuck with
> the named example blocks?
>
> Thanks,
> Will
>

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



Re: [O] How to test a draft of a new worg page?

2014-04-16 Thread Bastien
Hi James,

James Harkins  writes:

> I assume I need to specify the worg CSS and perhaps some other export
> properties, but the details are not easy to find and I don't care to
> guess at the moment.

I sent them to you in private.

> Can somebody explain *really* how to contribute to worg?

I hope the .emacs.el will put you on the right track.  That said, if
you are willing to enhance Worg appearance, maybe you can get access
to the server directly?

Thanks!

-- 
 Bastien



Re: [O] in-buffer settings, tags, org-element, org-id. . .

2014-04-16 Thread Bastien
Hi Lawrence,

Lawrence Bottorff  writes:

> . . . I'm getting confused about how to use these features.
> Sometimes, by chance, I'll find an example/use. but often as not I'm
> looking at a raw reference dump with no clue how to use (best
> practices) these features. For example, org-id has http://orgmode.org
> /worg/org-api/org-id-api.html

The link above was obsolete, as was the whole org-api directory on
Worg, now deleted.

> but no real explanation on what it is
> or how to use it. Googling doesn't bring anything either. in-buffer
> settings (http://orgmode.org/manual/In_002dbuffer-settings.html#
> In_002dbuffer-settings) is fairly cryptic for me too. Sometimes I can
> figure out what's going on, but I'm far from having a "best use"
> understanding. For example, I can look at the "source" for at WORG
> page (http://orgmode.org/worg/worg-setup.org.html) and see:
>
> #+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate
> #+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED
> (c@)
> #+TAGS:       Write(w) Update(u) Fix(f) Check(c)
> #+TITLE:      Worg setup on the http://orgmode.org server
> #+AUTHOR:     Worg people
> #+EMAIL:      mdl AT imapmail DOT org
> #+LANGUAGE:   en
> #+PRIORITIES: A C B
> #+CATEGORY:   worg
> #+OPTIONS:    H:3 num:nil toc:nil \n:nil ::t |:t ^:t -:t f:t *:t
> tex:t d:(HIDE) tags:not-in-toc
>
> I can then sift through the reference "in-buffer settings," but I'm
> not much wiser on the whytofors. Has anybody, tutorial-wise, really
> sorted these concepts out properly?

Looks like you try to groke all at once: I suggest you learn Org
incrementally, sticking to one concept, reading about it in the manual
and testing it in an Org buffer.

> One task I'd like to have is the ability to embed keywords throughout
> an org file so that a parser can find and grab these sections. I'm
> assailed with seemingly many ways: PROPERTIES, org-element, org-id,
> tags -- most/all of which I have only the dimmest grasp.

Start with tags.

A tag is a keyword attached to a headline this way:

* This is a headline :tag:

HTH,

-- 
 Bastien



Re: [O] Add TODO from external app?

2014-04-16 Thread Bastien
Hi Lawrence,

Lawrence Bottorff  writes:

> I've seen various things for interacting with org mode from external
> apps. I found org-protocol, as well as a Mutt-to-org mode article.
> Per the tittle, I want to be able to add new TODO items from, say, an
> email or a PHP-based web page form. Is this just brute force external
> file manipulation, i.e., e.g., my PHP code would simply open a .org
> file and concatenate a properly formatted TODO line . . . or are
> there more sophisticated ways of talking to emacs/org-mode from
> without?

I'm aware of such sophisticated ways, so for now simply open a .org
file and write to it.

-- 
 Bastien



Re: [O] [RFC] Properly handle keyword + COMMENT keyword

2014-04-16 Thread Bastien
Nicolas Goaziou  writes:

> Bastien  writes:
>
>> I know, but the users should not have to guess this.
>> Maybe a note about the allowed structure here in the
>> manual would be useful.
>
> Done in e84c1d8442b857f9275e86bb34f12811f49fcdd6.

Perfect, thanks,

-- 
 Bastien



Re: [O] How can you sort an Org clock table?

2014-04-16 Thread Noah Slater
Thanks Bastien! I'll look into this and report back.


On 16 April 2014 18:26, Bastien  wrote:

> Hi Noah,
>
> from master, you can now use a :sort parameter in clocktable
> to sort a column.  For example:
>
> #+BEGIN: clocktable :maxlevel 2 :scope file :sort (2 . ?t)
> #+CAPTION: Clock summary at [2014-04-16 mer. 18:12]
> | Headline |   Time |
> |--+|
> | *Total time* | *0:34* |
> |--+|
> | STRT abc |   0:15 |
> | STRT def |   0:19 |
> #+END:
>
> The (2 . ?t) means: "sort the second column by time."
>
> Let me know if it works for you,
>
> --
>  Bastien
>


[O] How do I chain babel blocks with arguments?

2014-04-16 Thread Alan Schmitt
Hello,

I have several babel blocks that each work well, but I'm now trying to
chain them to build some bigger functionality out of them. I'm having
trouble finding out how to pass arguments between blocks. Here is
a small example:

--8<---cut here---start->8---
#+name: test1
#+begin_src emacs-lisp :var x="foo"
x
#+end_src

#+name:test2
#+begin_src emacs-lisp :var z="bar" :var y=test1(x=z)
y
#+end_src

#+call: test2(z="baz")
--8<---cut here---end--->8---

Unfortunately this does not work: the evaluation of block `test2' fails
by telling me `z' does not exist.

How can I execute block `test1' from block `test2' by passing an
argument that is one from test2?

Thanks,

Alan



Re: [O] Strings inside code blocks

2014-04-16 Thread Thorsten Jolitz
Rustom Mody  writes:

> Thorsten Jolitz wrote:
>
> This
> 
> ,--
> | * 1st Level
> | src_emacs-lisp{"Hello World"}
> `--
> 
> renders this...
>
> does not seem to work for me.
> Some requirements I need python code inline inside tables.

this does not work for me either:

| label | code |
|---+--|
| greetings | src_emacs-lisp{"Hello World"}|
| arithm| src_emacs-lisp[:results value :exports results]{(+ 2 2)} |

#+begin_src emacs-lisp  :results value  replace
  (let ((org-export-with-toc nil))
(org-export-as 'ascii))
#+end_src

#+results:
   _

  725

Thorsten Jolitz
   _


1 --text follows this line--


  Rustom Mody  writes:

  > Thorsten Jolitz wrote: This ,-- | * 1st
  >Level | `Hello World' `-- renders this...
  >does not seem to work for me.  Some requirements I need python code
  >inline inside tables.

   label  code 
  -
   greetings  src_emacs-lisp{"Hello World"}
   arithm src_emacs-lisp[:results value :exports results]{(+ 2 2)} 

  ,
  | (let ((org-export-with-toc nil))
  |   (org-export-as 'ascii))
  `


  -- cheers, Thorsten

but did you read:

[[http://orgmode.org/worg/org-contrib/babel/intro.html][Code Block in Tables]]

?

-- 
cheers,
Thorsten




Re: [O] Bug: Org-mode interprets lines starting with | as tables even when those lined are inside an align* block [8.2.5h (8.2.5h-30-gdd810b-elpa @ /home/kosta/.emacs.d/elpa/org-20140303/)]

2014-04-16 Thread Bastien
Hi Konstantin,

Konstantin Kliakhandler  writes:

> Pretty much what the headline says. This incorrect interpretation means
> that if for example one tries to use org-cdlatex completions in that
> line or later in the block, they won't work: Instead, new cells will be
> created.

`org-try-cdlatex-tab' is now called before TAB gets its behavior
from the table environment.  That said, if `org-try-cdlatex-tab'
yields nothing, TAB will go the next field in a table.

Thanks for raising this,

-- 
 Bastien



Re: [O] Multiple agenda buffers

2014-04-16 Thread Bastien
Hi Robert,

"Robert P. Goldman"  writes:

> I find if I accidentally return over an item's date, I get a second
> agenda buffer for that date.
>
> That seems fine, but what I don't like is that from now on, any org
> agenda commands go to THAT buffer, rather than going into the old agenda
> buffer, which I keep around all the time.
>
> So I have, for example *Org Agenda* and *Org Agenda(a:2014-03-25)
>
> Is there some way to kill the latter so that it does not come back?
>
> I did ^X-k in that buffer, and it disappeared, but my next org agenda
> command went into a buffer like that, instead of going into the original
> *Org Agenda* (and its frame).

You can *exit* the agenda view with `x' and quit it with `q'.

In your case, I think you want to use `x'.

With a sticky agenda, `q' only buries the agenda, it does not delete
the agenda buffer.

> Is this related to org-agenda-this-buffer-is-sticky?  I don't really
> understand the description of stickiness in org-agenda.el and it's not
> referenced in the index of the manual.

I slightly rewrote the description of sticky agendas in the manual and
added an index entry.

Thanks,

-- 
 Bastien



Re: [O] Chaining strings between babel blocks: why so many '\'?

2014-04-16 Thread Bastien
Hi Alan,

Alan Schmitt  writes:

> I see you are the author of ob-dot.el. Should I push the attached
> patch?

I applied the patch in the master branch, so that Eric can revert it
without too much trouble if needed -- but I think it's not needed.

Thanks,

-- 
 Bastien



Re: [O] :no-expand not working on variables?

2014-04-16 Thread Bastien
Hi Rainer,

Rainer M Krug  writes:

> Sorry - sure. Attached.

Applied in master, thanks,

-- 
 Bastien



Re: [O] [Patch] Few small fixes to html header

2014-04-16 Thread Bastien
Hi Marcin and Rick,

Marcin Antczak  writes:

>> Another good question. Bastien- Do you think it makes sense to do a
>> whitespace cleanup only commit of ox-html to master?
>
> +1 from me.

The practice I've seen on Emacs is to not do whitespace commits,
but the cleanup whitespace when there is another real change.

Let's do it that way.

>> While source whitespace and output formatting are annoying, our
>> approach to modifications of this (quite old) file has been to not
>> make changes which don't materially affect functionality or fix bugs
>> (the rule of least damage :).
>
> I agree. But code really should be valid and IMHO little improvements
> and code cleanups are ok.

Agreed.  Can you submit a patch for the small enhancement you are
suggesting?  Then you can also do the whitespace cleanup.

Thanks!

-- 
 Bastien



Re: [O] Org-set-repeat

2014-04-16 Thread Bastien
Hi Michael,

"R. Michael Weylandt"  writes:

> I see that Org provides a `org-cancel-repeater` and `org-get-repeat`
> but I don't see a `org-set-repeat` (or function which can be made to
> do so). Is there something like that that I've missed or should I
> write a wrapper around `org-deadline`?

No, there is no such function.

What would be useful would be to let C-s C-s and friends add
a repeater, but that's quite tricky.

-- 
 Bastien



Re: [O] Chaining strings between babel blocks: why so many '\'?

2014-04-16 Thread Alan Schmitt
On 2014-04-16 17:37, Bastien  writes:

> Hi Alan,
>
> Alan Schmitt  writes:
>
>> I see you are the author of ob-dot.el. Should I push the attached
>> patch?
>
> I applied the patch in the master branch, so that Eric can revert it
> without too much trouble if needed -- but I think it's not needed.

Thanks a lot,

Alan



Re: [O] Add TODO from external app?

2014-04-16 Thread Tim Visher
On Wed, Apr 16, 2014 at 12:31 PM, Bastien  wrote:
> Hi Lawrence,
>
> Lawrence Bottorff  writes:
>
>> I've seen various things for interacting with org mode from external
>> apps. I found org-protocol, as well as a Mutt-to-org mode article.
>> Per the tittle, I want to be able to add new TODO items from, say, an
>> email or a PHP-based web page form. Is this just brute force external
>> file manipulation, i.e., e.g., my PHP code would simply open a .org
>> file and concatenate a properly formatted TODO line . . . or are
>> there more sophisticated ways of talking to emacs/org-mode from
>> without?
>
> I'm aware of such sophisticated ways, so for now simply open a .org
> file and write to it.

Emacs can be used as a scripting environment so if you can figure out
how to do it from elisp that might be a more sophisticated way.

That said, one of the beauties of org is that it's just plain text and
the format for a link is pretty darn simple. So I've always just
written to the file using the format.

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail



Re: [O] Possible to always show items in clocktable?

2014-04-16 Thread Sacha Chua
Noah Slater  writes:

Hello, Noah!

> I would like to my clocktable include a line for every node, regardless of
> whether there is any time clocked, or whether the time clocked is 0:00.
> My intention here is to highlight notes that have received no attention. I
> want them to show up on my report so that I can see that I need to work on
> them.

On a slightly different note, how about using Org column tables instead?
You can set your column table format to include the time clocked.
I use this in one of my files:
#+COLUMNS: %40ITEM %17Effort(Estimated effort){:} %CLOCKSUM

And then I use

#+BEGIN: columnview :hlines 1
#+END:

to get a table that has my estimated effort and clocked time for each
item, whether or not it has any clocked time in it.

Sacha




Re: [O] [BUG] Cannot export a raw link

2014-04-16 Thread Achim Gratz
Nicolas Goaziou writes:
[…]
> I think it is sufficient for 8.2.6.  We can still discuss if more
> parsing is needed for 8.3.

I agree that this should take care of it.  Unless Org honestly tries to
be RFC3986 conformant in the future, I don't really see the point in
further changes at the moment.


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

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Trouble with Tables and Python

2014-04-16 Thread Martin Schöön
Thanks for the explanations and guiding. Now this works the way I want it
to.

-- 
Martin Schöön

http://hem.bredband.net/b262106/index.html


Re: [O] Agenda items refer to the wrong headline

2014-04-16 Thread Bastien
Hi Nick,

Nick Dokos  writes:

> But I *did* reproduce it with latest:

I reproduced the bug too, and it's pretty bad.
Thanks for the recipe, and thanks to Florian for
reporting this.

I'm busy right now but this is top priority.

-- 
 Bastien



Re: [O] Bug: Org-mode interprets lines starting with | as tables even when those lined are inside an align* block [8.2.5h (8.2.5h-30-gdd810b-elpa @ /home/kosta/.emacs.d/elpa/org-20140303/)]

2014-04-16 Thread Konstantin Kliakhandler
Thanks!


On Wed, Apr 16, 2014 at 6:26 PM, Bastien  wrote:

> Hi Konstantin,
>
> Konstantin Kliakhandler  writes:
>
> > Pretty much what the headline says. This incorrect interpretation means
> > that if for example one tries to use org-cdlatex completions in that
> > line or later in the block, they won't work: Instead, new cells will be
> > created.
>
> `org-try-cdlatex-tab' is now called before TAB gets its behavior
> from the table environment.  That said, if `org-try-cdlatex-tab'
> yields nothing, TAB will go the next field in a table.
>
> Thanks for raising this,
>
> --
>  Bastien
>


Re: [O] Mobileorg doesn't correctly import one .org file

2014-04-16 Thread Ken Mankoff

On 2014-04-16 at 12:49, Bastien wrote:
> Pere Quintana Seguí  writes:
>
>> Everything looks fine except one file which is not correctly
>> imported.

I missed and can't find the original email, but does the erroneous file
have an "&" in the filename? That is a known MobileOrg bug.

  -k.



[O] (OT) How to follow a mailing list with very high activity (like this one here)?

2014-04-16 Thread M
This is off-topic, but I hope that someone can give me some good advice:

During the last years, I'be become a real org-mode fan and I want to stay
current and be active in the great org-mode community.
I've subscribed to the orgmode mailinglist about 1,5 years ago and so I have
>17.500 mails in my inbox.

You really have to be organized very well to deal with so much information!
Is there a tutorial somewhere for good approaches, how to participate in
such a list (without doing it as a full time job)?

IMHO, there must be some process like:
Review each new topic
 -> if interesting/relevant mark it to follow what happens,
 -> else if not interesting/relevant, then ignore the following posts.
The interesting stuff should also be stored to be available later for
reference...

How do you handle that?
Are there tools which make such a process easier?

Up to now I just used my old mail client Microsoft Entourage 2004 on OS X
for storing those mails.

Kind regards

Martin 





Re: [O] (OT) How to follow a mailing list with very high activity (like this one here)?

2014-04-16 Thread Alexander Baier
Hello Martin,

you might want to have a look at gnus - an news/email client for
emacs. It has something called scoring (I believe this is a concept from
usenet/nntp). It allowes to do exactly what you want to do and even
more. You can tell gnus to hide a particular thread, so you do not have
to see it again. You may even define certain rules that match headers
(subject lines, authors, ...) to tell gnus what you want and do not want
to read.

You can read more about it in (info "(Gnus) Scoring") [in case you do
not know what to do with this, copy it to your emacs and eval it ;-)].

As to storing mails, have you heard of gmane.org? This is a service that
lets you read mailing lists as if they were a newsgroup. I personally do
not save anything from this list locally, as I know I can always get it
from gmane.

In summary, gnus is a great thing, but also very complex and a bit
daunting to setup. I like to think of it as another emacs inside emacs
(which by the way also applies to org-mode) in terms of complexity.

HTH,
--
 Alexander Baier

On 2014-04-16 21:28 M wrote:
> This is off-topic, but I hope that someone can give me some good advice:
>
> During the last years, I'be become a real org-mode fan and I want to stay
> current and be active in the great org-mode community.
> I've subscribed to the orgmode mailinglist about 1,5 years ago and so I have
>>17.500 mails in my inbox.
>
> You really have to be organized very well to deal with so much information!
> Is there a tutorial somewhere for good approaches, how to participate in
> such a list (without doing it as a full time job)?
>
> IMHO, there must be some process like:
> Review each new topic
>  -> if interesting/relevant mark it to follow what happens,
>  -> else if not interesting/relevant, then ignore the following posts.
> The interesting stuff should also be stored to be available later for
> reference...
>
> How do you handle that?
> Are there tools which make such a process easier?
>
> Up to now I just used my old mail client Microsoft Entourage 2004 on OS X
> for storing those mails.
>
> Kind regards
>
> Martin 
>
>
>
>




Re: [O] How do I chain babel blocks with arguments?

2014-04-16 Thread Charles Berry
Alan Schmitt  polytechnique.org> writes:

> 
> Hello,
> 
> I have several babel blocks that each work well, but I'm now trying to
> chain them to build some bigger functionality out of them. I'm having
> trouble finding out how to pass arguments between blocks. Here is
> a small example:
> 
> --8<---cut here---start->8---
> #+name: test1
> #+begin_src emacs-lisp :var x="foo"
> x
> #+end_src
> 
> #+name:test2
> #+begin_src emacs-lisp :var z="bar" :var y=test1(x=z)
> y
> #+end_src
> 
> #+call: test2(z="baz")
> --8<---cut here---end--->8---
> 
> Unfortunately this does not work: the evaluation of block `test2' fails
> by telling me `z' does not exist.
> 
> How can I execute block `test1' from block `test2' by passing an
> argument that is one from test2?

This is not pretty, but it works:

#+name:test2 
#+begin_src emacs-lisp :var z="bar"
  (let ((y (org-sbe test1 (x (intern z)
y)
#+end_src


HTH,

Chuck





Re: [O] (OT) How to follow a mailing list with very high activity (like this one here)?

2014-04-16 Thread Sacha Chua
Alexander Baier  writes:

Hello, Alexander, Martin!

> you might want to have a look at gnus - an news/email client for
> emacs. It has something called scoring (I believe this is a concept from
> usenet/nntp). It allowes to do exactly what you want to do and even
> more. You can tell gnus to hide a particular thread, so you do not have

I vote for Gnus and scoring, too. Here's how I've set mine up:

In ~/.gnus:

(setq gnus-select-method '(nntp "news.gmane.org"))
(setq gnus-treat-hide-citation t)
(setq gnus-use-adaptive-scoring t)
(setq gnus-default-adaptive-score-alist
 '((gnus-unread-mark)
 (gnus-ticked-mark (subject 10))
 (gnus-killed-mark (subject -5))
 (gnus-catchup-mark (subject -1
; change this to real address, of course
(setq user-mail-address "exam...@example.com") 

After you set up your ~/.gnus, use M-x gnus to start. Go into the
news.gmane.org server (use ^ to see the list of servers if you don't see
the gmane server listed) and find gmane.emacs.orgmode. I think you can use
u to toggle subscription/unsubscription.

Adaptive scoring means that if you kill a thread you're not particularly
interested in, it lowers the score on that one, so any replies are shown
with a negative score. You can also configure it to hide messages with
scores below a certain threshold, so you don't even see replies.

I also have some more rules that score things up if they mention my name
or other things I'm interested in. =)

Hope that helps!

Sacha




Re: [O] Agenda items refer to the wrong headline

2014-04-16 Thread Bastien
Bastien  writes:

> I'm busy right now but this is top priority.

I reverted the patch and need more time fixing the issues
in this area.  Filtering agenda works by adding overlays
and when point finds itself in an invisible overlay, funny
stuff happens.

I need to wrap my head around this later on, thanks for
your patience.

-- 
 Bastien



Re: [O] Agenda items refer to the wrong headline

2014-04-16 Thread Bastien
Hi Fletcher,

Fletcher Charest  writes:

> This (in my opinion) serious bug still appears when using the last
> ELPA version of Org (8.2.5h-98-g0820d0-elpa @ ~/.emacs.d/elpa/
> org-20140407/) on Windows with GNU Emacs 24.3.1.

This is now fixed.  Thanks for raising it, and sorry it took so
long to fix this severe bug.

-- 
 Bastien



Re: [O] Agenda items refer to the wrong headline

2014-04-16 Thread Bastien
Bastien  writes:

> I'm busy right now but this is top priority.

Done -- I fixed the problem that 3559ff84 was supposed to
fix differently.  There are still glitches when changing the
date in a filtered agenda, but it's not about data corruption
anymore.

Thanks,

-- 
 Bastien



Re: [O] Is it possible to add a class to a paragraph in HTML export?

2014-04-16 Thread Rick Frankel
On Wed, Apr 02, 2014 at 09:06:48AM +0200, Nicolas Goaziou wrote:
>
> If deemed useful, I think this patch should use
> `org-html--make-attribute-string' instead of hard-coding "class"
> attribute:
>
>   (attributes (org-html--make-attribute-string
>(org-export-read-attribute :attr_html paragraph)))
>
> ...
>
>   (t (format "\n%s" attributes extra contents))
>
> This way, attributes will not be limited to "class" only. See, for
> example, `org-html-special-block'.

A version of this patch using Nicolas' approach has been pushed to master.

rick



Re: [O] Export Org checkboxes in ox-html using UTF-8 symbols

2014-04-16 Thread Rick Frankel
On Sat, Mar 29, 2014 at 03:12:14PM +0100, Marcin Borkowski wrote:
> Dnia 2014-03-28, o godz. 10:59:43
> Rick Frankel  napisał(a):
> 
> > On 2014-03-28 10:01, Sebastien Vauban wrote:
> > > Rick Frankel wrote:
> > > BTW, i used "[ ]" for the unchecked box (we use the same for
> > > checked and trans)... I think i'll change the unchecked box to
> > > ☐ to match the checked box (same as sachua).
> > > 
> > > Isn't it error-prone and very misleading to have 3 different states
> > > in the Org files, and just 2 different in the HTML exports?
> > 
> Wouldn't it be better to have (maybe in addition) three distinct
> classes for the  elements with checkboxes in various states?  This
> would make styling them with CSS possible.

The == elements for checklists now have the class `on', `off' or
`trans' depending on the state of the checkbox.

Thanx for the suggestion.

rick




Re: [O] Is it possible to add a class to a paragraph in HTML export?

2014-04-16 Thread Bastien
Rick Frankel  writes:

> A version of this patch using Nicolas' approach has been pushed to
> master.

Thanks!

-- 
 Bastien



Re: [O] Prepare release 8.2.6

2014-04-16 Thread Bastien
Hi Michael,

"R. Michael Weylandt"  writes:

> The attached should apply cleanly against master.

Applied, thanks,

-- 
 Bastien



Re: [O] [BUG] Cannot export a raw link

2014-04-16 Thread Bastien
Hi Nicolas,

Nicolas Goaziou  writes:

> I suggest the following for the 8.2.6 release:
>
>   - revert the whole patches line
>
>   - at the parser level
>
> - if scheme is not "file" or derived (e.g., "file+sys" or
>   "docview"), assume PATH is a correct URI and do not change
>   anything ;
>
> - otherwise, if PATH is absolute and do not start with two or more
>   slashes, append "//" to it ;
>
>   - at the back-ends level, simply add "file:" if PATH is absolute and
> use PATH otherwise.
>
> I think it is sufficient for 8.2.6.  We can still discuss if more
> parsing is needed for 8.3.

Indeed, please go ahead with this plan when you can.

Also, `org-open-at-point' needs to correctly deal with links
like mailto:j...@doe.com?subject=Test -- I think it used to
work but the subject is not parsed correctly here.

Thanks,

-- 
 Bastien



Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-16 Thread Bastien
Hi Eric,

Eric Schulte  writes:

>> Also, if you can sign your patches (git format-patch -s) that'd
>> be even better, but not mandatory.
>
> Should I start signing my patches as well?

Up to you, I don't want to enforce a policy here, I just think it's
good to have signed patch for people who don't contribute on behalf
of themselves but do so on behalf of a company they work for.

I'm myself only signing tags for new releases (have been since a
while at least.)

-- 
 Bastien



Re: [O] Fast Access to TODO States without C-t

2014-04-16 Thread Bastien
Oleh  writes:

> It's inspired by vi, so your task is handled by "cwd" (change word
> DONE).  Other stuff works as well, such as "cw[tnc]" for (change word
> [TODO NEXT CANCELLED]).
>
> Similarly:
> "cp" is change property,
> "dp" is delete property,
> "p" is move to property,
> "ct" is change tag,
> "hjkl" - navigate left/down/up/right
> "d2j" - delete two headings down
> "d3k" - delete three headings up
> "yj" - copy one heading down to kill ring
> "3i" - change view to summary level 3.
> "wn" - make "jk" move only by NEXT keywords.
> "c" - make "hjkl" behave like Meta+arrows
> "cf" - make "hjkl" behave like Shift+Meta+arrows
> "cs" - make "hjkl" behave line Shift+arrows
> "q" - return from the four modes above

Wow, this is kinda crazy, but good to know people are crazy about Org!

(Many vimers I know use neat tricks to display Org tables in vim
buffers...)

-- 
 Bastien