Re: [O] [New exporter] Org code blocks

2012-10-22 Thread Nicolas Goaziou


Hello,

"Sebastien Vauban"
 writes:

> That is, there is a *wrong comma* in front of the link. It should not be
> outputted, isn't it?

Correct. It should be fixed now. Thanks for the report.


Regards,

-- 
Nicolas Goaziou




Re: [O] [new exporter] Enabling multiple exporters?

2012-10-22 Thread Nicolas Goaziou
Hello,

Michael Gauland  writes:

> Thanks for looking into it. I am running a small screen (netbook), but
> your commit doesn't seem to change anything.
>
> If I change to a smaller font, the full menu is presented, so this is
> consistent with the problem being related to window size.

If window size is a problem, assuming you really need all those
exporters, I suggest to use `org-export-dispatch-use-expert-ui' instead.


Regards,

-- 
Nicolas Goaziou



Re: [O] [new exporter] Enabling multiple exporters?

2012-10-22 Thread Nicolas Goaziou
Hello,

Achim Gratz  writes:

> Nicolas Goaziou  gmail.com> writes:
>> Correct. The window displaying the UI is probably too short to display
>> it completely.
>>
>> I've pushed a commit in order to fix this. It is better now?
>
> Actually, the window is even shorter now than it was before (I'm only loading
> org-e-latex) and only shows
>
> [q] Quit

Indeed. This mistake should be fixed now.

> Maddeningly, you cannot even scroll in that window.

That's because the ui is just a loop over `read-char-exclusive', as it
already was in the previous exporter.

I don't feel like building a whole major mode for the interface, à la
Magit.


Regards,

-- 
Nicolas Goaziou



Re: [O] Using git-annex with org-attach

2012-10-22 Thread John Wiegley
> John Wiegley  writes:

> The value of git-annex is that it lets you associate truly huge files with a
> Git repository that are check-summed and easily archived, which you can then
> drop from your local attachments directory when you no longer need the file
> there.  Later, if you need files that you dropped, use `C-c C-a F' and `M-!
> git annex get . RET' to re-download those attachments back into your local
> repo.

I have some further git-annex integration here:

https://github.com/jwiegley/git-annex-el

In particular, when you use C-c C-a F to visit the attachments directory in
dired, locally available annexed files will be green, and locally unavailable
files will be red.  Use @g to get unavailable files from another reachable
repository, and @d to drop them from your local repository.

If you open the file in Emacs and type C-x C-q to make it editable, this will
automatically do a "git annex edit", and when the buffer dies it will "git
annex add" the new version and then do a "git commit" automatically.

John



Re: [O] Setting Tags Using #+INCLUDE:

2012-10-22 Thread Sebastien Vauban
Hi François,

François Pinard wrote:
> Ian Barton  writes:
>> On 22/10/12 13:59, Carsten Dominik wrote:
>>> On 22 okt. 2012, at 14:39, Ian Barton  wrote:
 I thought I would define them in another file (setup.org) and INCLUDE
 this in each of the 100 files.
>>>
>>> you need to use #+setupfile instead of #+include for this purpose.
>
> Didn't we recently read on this list that there are plans to have #+INCLUDE
> subsume the functionality of #+SETUPFILE, so the later may disappear?

Yes, we did (last week or so).

> I noticed because I would prefer having only #+INCLUDE in my files, rather
> than having both #+SETUPFILE and #+INCLUDE.

I already tried it with current files (*and* current HTML exporter), but that
does not work. So, I guess we'll have to wait for the new exporter to be in
Org for that to be completely effective.

But, for sure, that will work -- and SETUPFILE will be dropped.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [ANN] Editable HTML export of Org-mode files

2012-10-22 Thread Eric Schulte
Simon Thum  writes:

> Hi Eric,
>
> thank you for this very interesting thing!
>

Happy you're finding this interesting.

>
> I have two comments from my first testing.
> 1) It seems editing is eating all the whitespace in a section. They
> probably need html protection. (  or the like)

I'm not experiencing what I think you're describing.  When I enter say
the following into a text box.

--8<---cut here---start->8---
foo bar  





--8<---cut here---end--->8---

all of the spaces and newlines are inserted into the Org-mode file.
However, when that Org-mode file is re-exported, it uses the normal html
exporter (which *does* ignore whitespace by default).

So, if you are not having the spaces inserted into your Org-mode file
that is a problem with org-ehtml, but if you *are* having the spaces
appear in your .org file (server-side), but they are not appearing in
the exported HTML, that is expected behavior.

> 
> 2) I cannot use the auth handler:
>

Perhaps you could provide a minimal .el initialization file which shows
how you are trying to launch the server?

Hope this Helps,

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



Re: [O] Setting Tags Using #+INCLUDE:

2012-10-22 Thread François Pinard
Ian Barton  writes:

> Thanks Carsten,
> Works perfectly.

> On 22/10/12 13:59, Carsten Dominik wrote:
>> you need to use #+setupfile instead of #+include for this purpose.

>> On 22 okt. 2012, at 14:39, Ian Barton  wrote:
>>> I thought I would define them in another file (setup.org) and
>>> INCLUDE this in each of the 100 files.

Didn't we recently read on this list that there are plans to have
#+INCLUDE subsume the functionality of #+SETUPFILE, so the later may
disappear?

I noticed because I would prefer having only #+INCLUDE in my files,
rather than having both #+SETUPFILE and #+INCLUDE.

François



Re: [O] [new exporter] Windows / LaTeX export

2012-10-22 Thread Sebastien Vauban
Hi Nicolas,

Nicolas Goaziou wrote:
> Achim Gratz  writes:
>
>> The new exporter fires off LaTeX with an absolute path for the file to
>> export. If you happen to use a native Emacs, but the LaTeX from Cygwin that
>> will fail because it expects a POSIX path. Would it be possible to change
>> things so that a relative path is used as in the old exporter
>
> It should be so in the latest commit. Does it fix the problem?

The same type of problem exists for `org-latex-to-pdf-process': contrarily to
what I'd thought from reading the doc, the argument %b is NOT (only) the base
name, but the full name without the file extension; hence, the problem under
Cygwin Emacs with /cygdrive/c type of paths which are sent (via LaTeXMK or
directly) to PDFLaTeX.

Hence, my current (ugly) workaround to support PDFLaTeX and XeTeX in both
Windows and Cygwin versions of Emacs:

--8<---cut here---start->8---
  ;; running a Cygwin version of Emacs
  (if (eq system-type 'cygwin)

  (progn
;; default (in Cygwin Emacs)
(setq org-latex-to-pdf-process
  ;; use latexmk (if installed with LaTeX)
  (if (executable-find "latexmk")
  '("latexmk -pdf $(cygpath -m %f) && rm -f %b.fdb_latexmk 
%b.fls %b.ilg %b.ind")
'("pdflatex -interaction=nonstopmode -output-directory=%o 
$(cygpath -m %f)"
  "pdflatex -interaction=nonstopmode -output-directory=%o 
$(cygpath -m %f)"
  "pdflatex -interaction=nonstopmode -output-directory=%o 
$(cygpath -m %f)")))

(when (string-match "^#\\+LATEX_CMD: xelatex" (buffer-string))
  (setq org-latex-to-pdf-process
(if (executable-find "latexmk")
'("latexmk -pdf -pdflatex=xelatex $(cygpath -m %f) && rm -f 
%b.fdb_latexmk %b.fls %b.ilg %b.ind")
  '("xelatex -interaction=nonstopmode -output-directory=%o 
$(cygpath -m %f)"
"xelatex -interaction=nonstopmode -output-directory=%o 
$(cygpath -m %f)"
"xelatex -interaction=nonstopmode -output-directory=%o 
$(cygpath -m %f)")

;; default (in Windows binary)
(setq org-latex-to-pdf-process
  (if (executable-find "latexmk")
  '("latexmk -pdf %f && rm -f %b.fdb_latexmk %b.fls %b.ilg %b.ind")
'("pdflatex -interaction=nonstopmode -output-directory=%o %f"
  "pdflatex -interaction=nonstopmode -output-directory=%o %f"
  "pdflatex -interaction=nonstopmode -output-directory=%o %f")))

(when (string-match "^#\\+LATEX_CMD: xelatex" (buffer-string))
  (setq org-latex-to-pdf-process
(if (executable-find "latexmk")
'("latexmk -pdf -pdflatex=xelatex %f && rm -f %b.fdb_latexmk 
%b.fls %b.ilg %b.ind")
  '("xelatex -interaction=nonstopmode -output-directory=%o %f"
"xelatex -interaction=nonstopmode -output-directory=%o %f"
"xelatex -interaction=nonstopmode -output-directory=%o %f")
--8<---cut here---end--->8---

where I convert Cygwin paths to mixed Windows paths (mixed meaning: use
slashes instead of backslashes -- otherwise, the backslashes should be
escaped, which isn't the case).

Best regards,
  Seb

-- 
Sebastien Vauban




[O] tnx (was: Re: Using git-annex with org-attach)

2012-10-22 Thread Giovanni Ridolfi
Da: John Wiegley 
Inviato: Sabato 20 Ottobre 2012 16:59

> I pushed a change to master that allows you to use the wonderful git-annex
> utility[1] seamlessly with org-attach.  The way it works is as follows:


Amazing! Thank you!

Giovanni



Re: [O] [new exporter] Windows / LaTeX export

2012-10-22 Thread Achim Gratz
Nicolas Goaziou writes:
>> The new exporter fires off LaTeX with an absolute path for the file to
>> export.  If you happen to use a native Emacs, but the LaTeX from Cygwin
>> that will fail because it expects a POSIX path.  Would it be possible to
>> change things so that a relative path is used as in the old exporter
>
> It should be so in the latest commit. Does it fix the problem?

Thank you.  I'll be able to tell you tomorrow.


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

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] [new exporter] Windows / LaTeX export

2012-10-22 Thread Nicolas Goaziou
Hello,

Achim Gratz  writes:

> The new exporter fires off LaTeX with an absolute path for the file to
> export.  If you happen to use a native Emacs, but the LaTeX from Cygwin
> that will fail because it expects a POSIX path.  Would it be possible to
> change things so that a relative path is used as in the old exporter

It should be so in the latest commit. Does it fix the problem?


Regards,

-- 
Nicolas Goaziou



Re: [O] Sort Phrases

2012-10-22 Thread Sanjib Sikder
Hi Giovanni,

- substitute "," with \n
> - sort region
> - substitute \n with ","
>

1. I am new in org-mode and emacs. Can you please tell me what is "sort
region" and what are the key bindings ?
2. Is there a way by which I can replace all the ',' with '\n' and do the
reverse automatically ?

Thanks.


-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*



On Mon, Oct 22, 2012 at 11:44 PM, Sanjib Sikder wrote:

> Hi Giovanni,
>
> You need to put the following lines into your .emacs to sort WORDS and
> LINES.
>
> --8<---cut here---start->8---
>
> ;;;Sort words
>  (defun sort-words (reverse beg end)
>   "Sort words in region alphabetically, in REVERSE if negative.
> Prefixed with negative \\[universal-argument], sorts in reverse.
> The variable `sort-fold-case' determines whether alphabetic case
> affects the sort order.
> See `sort-regexp-fields'."
>   (interactive "*P\nr")
>   (sort-regexp-fields reverse "\\w+" "\\&" beg end))
>
> --8<---cut here---start->8---
>
> Then to sort words like
>
> apple, mango, oranges, cat, elephant
>
> You need to do
>
> M-x sort-words
>
> To sort lines, similarly do
>
> M-x sort-lines
>
>
>
> -
> *Sanjib Sikder
> *Ph.D. Fellow
> Chemical Engineering
> IIT Bombay*
>
> *
>
>
>
> On Mon, Oct 22, 2012 at 5:10 PM, Giovanni Ridolfi <
> giovanni.rido...@yahoo.it> wrote:
>
>> Da: Sanjib Sikder 
>>
>> Inviato: Lunedì 22 Ottobre 2012 13:27
>>
>>
>> > I know it is possible to sort words and sort lines alphabetically in
>> emacs org-mode
>>
>> Would you please be so kind to explain to me how?
>>
>> I have only:
>> org-sort-entries  M-x ... RET Sort entries on a certain level
>> of an outline tree.
>> org-sort-list  M-x ... RET   Sort list items.
>> org-table-sort-linesin
>> a table.
>>
>>
>> Is it possible to sort words like:
>>
>> banana fruit chees  apple
>>
>> or lines like
>>
>>
>> banana
>>
>> fruit
>> chees
>>
>> apple
>>
>>
>>
>> > but is it possible to sort phrases ?
>>
>> > Face the music, Fifteen minutes of fame, A beautiful mind.
>> > I want to sort it alphabetically like,
>> >  A beautiful mind, Face the music, Fifteen minutes of fame.
>>
>> In Emacs everything is possible.
>>
>> - substitute "," with \n
>> - sort region
>> - substitute \n with ","
>>
>> Cheers,
>>
>> Giovanni
>>
>>
>


Re: [O] Sort Phrases

2012-10-22 Thread Sanjib Sikder
Hi Giovanni,

You need to put the following lines into your .emacs to sort WORDS and
LINES.

--8<---cut here---start->8---

;;;Sort words
 (defun sort-words (reverse beg end)
  "Sort words in region alphabetically, in REVERSE if negative.
Prefixed with negative \\[universal-argument], sorts in reverse.
The variable `sort-fold-case' determines whether alphabetic case
affects the sort order.
See `sort-regexp-fields'."
  (interactive "*P\nr")
  (sort-regexp-fields reverse "\\w+" "\\&" beg end))

--8<---cut here---start->8---

Then to sort words like

apple, mango, oranges, cat, elephant

You need to do

M-x sort-words

To sort lines, similarly do

M-x sort-lines


-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*



On Mon, Oct 22, 2012 at 5:10 PM, Giovanni Ridolfi  wrote:

> Da: Sanjib Sikder 
>
> Inviato: Lunedì 22 Ottobre 2012 13:27
>
>
> > I know it is possible to sort words and sort lines alphabetically in
> emacs org-mode
>
> Would you please be so kind to explain to me how?
>
> I have only:
> org-sort-entries  M-x ... RET Sort entries on a certain level
> of an outline tree.
> org-sort-list  M-x ... RET   Sort list items.
> org-table-sort-linesin a
> table.
>
>
> Is it possible to sort words like:
>
> banana fruit chees  apple
>
> or lines like
>
>
> banana
>
> fruit
> chees
>
> apple
>
>
>
> > but is it possible to sort phrases ?
>
> > Face the music, Fifteen minutes of fame, A beautiful mind.
> > I want to sort it alphabetically like,
> >  A beautiful mind, Face the music, Fifteen minutes of fame.
>
> In Emacs everything is possible.
>
> - substitute "," with \n
> - sort region
> - substitute \n with ","
>
> Cheers,
>
> Giovanni
>
>


[O] [new exporter] Windows / LaTeX export

2012-10-22 Thread Achim Gratz

The new exporter fires off LaTeX with an absolute path for the file to
export.  If you happen to use a native Emacs, but the LaTeX from Cygwin
that will fail because it expects a POSIX path.  Would it be possible to
change things so that a relative path is used as in the old exporter (or
better yet, start LaTeX in the correct working directory and don't use a
path component at all)?


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Sort Phrases

2012-10-22 Thread Giovanni Ridolfi
Da: Sanjib Sikder 

Inviato: Lunedì 22 Ottobre 2012 13:27


> I know it is possible to sort words and sort lines alphabetically in emacs 
> org-mode 

Would you please be so kind to explain to me how?

I have only:
org-sort-entries      M-x ... RET     Sort entries on a certain level of an 
outline tree.
org-sort-list          M-x ... RET       Sort list items.
org-table-sort-lines    in a 
table.


Is it possible to sort words like:

banana fruit chees  apple

or lines like 


banana 

fruit
chees 

apple 



> but is it possible to sort phrases ?

> Face the music, Fifteen minutes of fame, A beautiful mind.
> I want to sort it alphabetically like, 
>  A beautiful mind, Face the music, Fifteen minutes of fame.

In Emacs everything is possible.

- substitute "," with \n
- sort region
- substitute \n with ","

Cheers,

Giovanni




Re: [O] Speeding up the agenda search

2012-10-22 Thread François Allisson

Marcelo de Moraes Serpa writes:

> Anyone else with huge org "databases" out there? Any tips on improving
> performance of the agenda search would be appreciated :)
>

Hi Marcello,

16 files and 3 MB: is that huge for you?

Note that only 13 (1.5 MB) are agenda files; the "big three others" (2
databases and 1 archive file; 1.5 MB) are added to the search via
org-agenda-search-extra-files.

As I never had to "kill" a search, that is probably not huge...

Best,

François.



Re: [O] [new exporter] [latex] #+CAPTION: [short]{long}

2012-10-22 Thread Nicolas Goaziou
Hello,

"Myles English"  writes:

> Apart from looking at the code, could I have found that out from
> somewhere?

It was asked on the ML a couple of times already. But I guess you're
talking about documentation. So, no, there's no documentation for that,
since current documentation applies to current exporter.


Regards,

-- 
Nicolas Goaziou



Re: [O] [new exporter] two unexpected behaviours of an #+INCLUDEd #+call

2012-10-22 Thread Nicolas Goaziou
Hello,

"Myles English"  writes:

> Just adding some evidence: similar behaviour was reported in this
> thread:
>
> http://lists.gnu.org/archive/html/emacs-orgmode/2012-09/msg00634.html

Yes, I'm working on it on my spare time but it requires some
modifications to Babel core, so I'm advancing slowly.

Thanks for the report, btw.


Regards,

-- 
Nicolas Goaziou



Re: [O] [new exporter] [latex] #+CAPTION: [short]{long}

2012-10-22 Thread Myles English

Thanks Tom!

Apart from looking at the code, could I have found that out from
somewhere?

Myles

Thomas S. Dye writes:

> Aloha Myles,
>
> The syntax is different in the new exporter.
>
> #+CAPTION[short]: long
>
> All the best,
> Tom
>
> "Myles English"  writes:
>
>> Hello,
>>
>> Should it possible to do this yet:
>>
>> #+CAPTION: [short]{long}
>>
>> with the new exporter, as it is with the current exporter?
>>
>> Thanks,
>>
>> Myles
>>
>>




Re: [O] Speeding up the agenda search

2012-10-22 Thread Marcelo de Moraes Serpa
Anyone else with huge org "databases" out there? Any tips on improving
performance of the agenda search would be appreciated :)

On Sat, Oct 20, 2012 at 12:29 AM, Marcelo de Moraes Serpa <
celose...@gmail.com> wrote:

> Hello everyone,
>
> My list of files in the agenda got to a considerable size. It still
> searchable, but some types of search, such as PROPERTY, usually lock down
> emacs and I'm forced to kill the process. Is there any way to speed it up?
> Perhaps by compiling the elisp files to bytecode?
>
> I'm on OSX Lion, emacs: GNU Emacs 23.4.1 (x86_64-apple-darwin, NS
> apple-appkit-1038.36) of 2012-01-29 on bob.porkrind.org
> M
> orgmode: Org-mode version 7.9.1 (release_7.9.1-299-g08c5ea.dirty-git @
> mixed installation! /Applications/Emacs.app/Contents/Resources/lisp/org/
> and /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/)
> M
>
> Any hints appreciated,
>
> - Marcelo.
>


[O] bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"

2012-10-22 Thread Glenn Morris
Jonathan Schaeffer wrote:

> To reproduce :
>
> Create a .org file, create 2 level-1 entries. Create one level-2 entry
> and hit C-c C-w to refile it into the other level-1 entry.
>
> Like this :
>
> * Entry One
> * Entry Two
> ** Refile Me
>
> The level-2 entry is copied in the correct location but is not removed
> from original location.
> Minibuffer shows message "Not Bookmark Format". And the file looks like :

Thanks for the report, but it works fine for me with Emacs 24.2.
Can you give a complete recipe starting from emacs -Q?





Re: [O] [new exporter] [latex] #+CAPTION: [short]{long}

2012-10-22 Thread Thomas S. Dye
Aloha Myles,

The syntax is different in the new exporter.

#+CAPTION[short]: long

All the best,
Tom

"Myles English"  writes:

> Hello,
>
> Should it possible to do this yet:
>
> #+CAPTION: [short]{long}
>
> with the new exporter, as it is with the current exporter?
>
> Thanks,
>
> Myles
>
>

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



Re: [O] Sort Phrases

2012-10-22 Thread Nick Dokos
Sanjib Sikder  wrote:

> Hi,
> 
> I know it is possible to sort words and sort lines alphabetically in emacs 
> org-mode but is it
> possible to sort phrases ?
> 
> For example,
> 
> Face the music, Fifteen minutes of fame, A beautiful mind.
> 
> I want to sort it alphabetically like,
> 
> A beautiful mind, Face the music, Fifteen minutes of fame.
> 
> Is it possible ?
> 

Not with native org-mode facilities, I think.  It is possible of
course, but you would need to write your own elisp to do it.

Nick




Re: [O] Setting Tags Using #+INCLUDE:

2012-10-22 Thread Ian Barton

Thanks Carsten,

Works perfectly.

Ian.

On 22/10/12 13:59, Carsten Dominik wrote:

Hi Ian,

you need to use #+setupfile instead of #+include for this purpose.

- Carsten

On 22 okt. 2012, at 14:39, Ian Barton  wrote:


I have tags defined in my .emacs using setq org-tag-alist. However, I have a group 
of files (>100) for which I want to define a different set of tags. Rather than 
place a #+TAGS directive I thought I would define them in another file (setup.org) 
and INCLUDE this in each of the 100 files.

However, this doesn't seem to work. Pressing C-q on the first headline of 
fpr.org only offers me the inherited tags defined in org-tag-alist. Is this 
expected behaviour or a bug?

setup.org
#+TITLE: Common Setup Parameters for All Blog Files.
#+TAGS: blog(b) gear(g) mountaineering(m) emacs(e) linux(l) mythtv(m) 
backpacking(k) review(r)
#+STARTUP: logdone noptag


fpr.org:

#+STARTUP: showall indent
#+STARTUP: hidestars
#+TITLE: First Pinnacle Rib.
#+INCLUDE: "setup.org"

* First Pinnacle Rib - Tryfan



- Carsten









Re: [O] Setting Tags Using #+INCLUDE:

2012-10-22 Thread Carsten Dominik
Hi Ian,

you need to use #+setupfile instead of #+include for this purpose.

- Carsten

On 22 okt. 2012, at 14:39, Ian Barton  wrote:

> I have tags defined in my .emacs using setq org-tag-alist. However, I have a 
> group of files (>100) for which I want to define a different set of tags. 
> Rather than place a #+TAGS directive I thought I would define them in another 
> file (setup.org) and INCLUDE this in each of the 100 files.
> 
> However, this doesn't seem to work. Pressing C-q on the first headline of 
> fpr.org only offers me the inherited tags defined in org-tag-alist. Is this 
> expected behaviour or a bug?
> 
> setup.org
> #+TITLE: Common Setup Parameters for All Blog Files.
> #+TAGS: blog(b) gear(g) mountaineering(m) emacs(e) linux(l) mythtv(m) 
> backpacking(k) review(r)
> #+STARTUP: logdone noptag
> 
> 
> fpr.org:
> 
> #+STARTUP: showall indent
> #+STARTUP: hidestars
> #+TITLE: First Pinnacle Rib.
> #+INCLUDE: "setup.org"
> 
> * First Pinnacle Rib - Tryfan
> 

- Carsten






[O] Setting Tags Using #+INCLUDE:

2012-10-22 Thread Ian Barton
I have tags defined in my .emacs using setq org-tag-alist. However, I 
have a group of files (>100) for which I want to define a different set 
of tags. Rather than place a #+TAGS directive I thought I would define 
them in another file (setup.org) and INCLUDE this in each of the 100 files.


However, this doesn't seem to work. Pressing C-q on the first headline 
of fpr.org only offers me the inherited tags defined in org-tag-alist. 
Is this expected behaviour or a bug?


setup.org
#+TITLE: Common Setup Parameters for All Blog Files.
#+TAGS: blog(b) gear(g) mountaineering(m) emacs(e) linux(l) mythtv(m) 
backpacking(k) review(r)

#+STARTUP: logdone noptag


fpr.org:

#+STARTUP: showall indent
#+STARTUP: hidestars
#+TITLE: First Pinnacle Rib.
#+INCLUDE: "setup.org"

* First Pinnacle Rib - Tryfan



[O] [New exporter] Org code blocks

2012-10-22 Thread Sebastien Vauban
Hello Nicolas,

I've noticed that exporting a presentation such as:

--8<---cut here---start->8---
#+TITLE: Org code blocks
#+AUTHOR:Sebastien Vauban
#+LANGUAGE:  en_US

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation,t]

#+OPTIONS:   H:1 toc:nil

* How to center pictures horizontally?

- Add a caption:

#+begin_src org
,#+CAPTION: Dock
,#+ATTR_LaTeX: width=0.5\linewidth
[[~/Pictures/Dock.jpg]]
#+end_src

- Results:

#+CAPTION: Dock
#+ATTR_LaTeX: width=0.5\linewidth
[[~/Pictures/Dock.jpg]]
--8<---cut here---end--->8---

gives the following with the new exporter:

--8<---cut here---start->8---
% Created 2012-10-22 Mon 14:08
\documentclass[presentation,t]{beamer}
% ...

\begin{frame}[fragile,label=sec-1]{How to center pictures horizontally?}
 \begin{itemize}
\item Add a caption:
\end{itemize}

\begin{verbatim}
#+CAPTION: Dock
#+ATTR_LaTeX: width=0.5\linewidth
,[[~/Pictures/Dock.jpg]]
\end{verbatim}

% ...
--8<---cut here---end--->8---

That is, there is a *wrong comma* in front of the link. It should not be
outputted, isn't it?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [new exporter] two unexpected behaviours of an #+INCLUDEd #+call

2012-10-22 Thread Myles English

Myles English writes:

> Hi,
>
> I think there is a bug here.

Just adding some evidence: similar behaviour was reported in this
thread:

http://lists.gnu.org/archive/html/emacs-orgmode/2012-09/msg00634.html

Myles

>
>
> Given the situation below, I would expect that the block named xxx
> would never be evaluated:
>
> #- file b.org ---
> #+TITLE: b.org
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
>
> * A heading  :noexport:
>
> #+INCLUDE: "c.org"
>
> #- file c.org ---
> * A Heading in c.org
> #+name: xxx
> #+BEGIN_SRC sh
> echo "Evaluated" > c.out
> #+END_SRC
>
> #+call: xxx()
>
> #
>
> And maybe it isn't evaluated but the call is still processed to some
> extent upon latex export:
>
> #+BEGIN_SRC sh :shebang "#!/usr/bin/env bash" :tangle eval_bug.sh
> emacs -Q --batch --eval "(progn
>(add-to-list 'load-path
>  (expand-file-name \"./lisp/\"))
>(add-to-list 'load-path
>  (expand-file-name \"./contrib/lisp/\" t))
>(require 'org-e-latex)
>(org-babel-do-load-languages
> 'org-babel-load-languages
> '((sh . t)))
>(find-file \"b.org\")
>(org-e-latex-export-to-latex))"
> #+END_SRC
>
>  $ ./eval_bug.sh
> Loading /home/myles/.emacs.d/plugins/org-mode/lisp/org-loaddefs.el (source)...
> OVERVIEW
> Loading vc-git...
> OVERVIEW
> OVERVIEW
> Reference 'xxx' not found in this buffer
>
> Removing the :noexport: results in the same message as above, removing
> the #+call causes c.org to be included but even adding these line to the
> batch function above will not cause the block to be evaluated
> (i.e. there is no c.out written):
>
> (setq org-confirm-babel-evaluate nil)
> (setq org-export-babel-evaluate t)
>
> This is with Org-mode version 7.9.2 (release_7.9.2-454-g949709 @
> /home/myles/.emacs.d/plugins/org-mode/lisp/).
>
> Thanks,
>
> Myles




[O] Sort Phrases

2012-10-22 Thread Sanjib Sikder
Hi,

I know it is possible to sort words and sort lines alphabetically in emacs
org-mode but is it possible to sort phrases ?

For example,

Face the music, Fifteen minutes of fame, A beautiful mind.


I want to sort it alphabetically like,

A beautiful mind, Face the music, Fifteen minutes of fame.


Is it possible ?

Thanks.

-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*


Re: [O] [new exporter] Enabling multiple exporters?

2012-10-22 Thread Achim Gratz
Nicolas Goaziou  gmail.com> writes:
> Correct. The window displaying the UI is probably too short to display
> it completely.
>
> I've pushed a commit in order to fix this. It is better now?

Actually, the window is even shorter now than it was before (I'm only loading
org-e-latex) and only shows

[q] Quit

Maddeningly, you cannot even scroll in that window.


Regards,
Achim.






[O] [new exporter] [latex] #+CAPTION: [short]{long}

2012-10-22 Thread Myles English

Hello,

Should it possible to do this yet:

#+CAPTION: [short]{long}

with the new exporter, as it is with the current exporter?

Thanks,

Myles



Re: [O] Word wrap in org-mode

2012-10-22 Thread Myles English

Chris Henderson writes:

> On Mon, Oct 22, 2012 at 9:47 AM, Myles English  wrote:
>>
>> Chris Henderson writes:
>>
>>> Is there a way to do word wrap in org-mode? When I copy and paste long
>>> texts, it goes across the window. Alt-q doesn't do word wrap.
>>
>> Maybe I am misunderstanding, but M-q works for me and is bound to
>> `(fill-paragraph)', perhaps yours is bound to something else?  Press:
>>
>> C-h k M-q
>>
>> to find out.
>
> This is what I get:
>
> It is bound to M-q.
>
> (fill-paragraph &optional JUSTIFY REGION)
>
> Should it work?

I get it now: I think you want to handle a very long line that
disappears off the end of the buffer by making it go to the next line
instead and have little arrows at each end to indicate that it is all
the same line -- probably called 'wrapping'.  Fill-paragraph puts line
feed (or is it carriage return?) characters at the end of each screen
line so that it appears as a neat block of text.

I am afraid we have reached the limit of my experience of these things.
If M-q isn't doing anything it is a bit strange though.

May be someone more useful will respond to your question.

Myles



Re: [O] publish one org-file as many html files

2012-10-22 Thread Tongzhu Zhang
On Mon, Oct 22, 2012 at 5:01 PM, Tongzhu Zhang  wrote:

> check out https://github.com/eggcaker/jo-exporter ,
>
> i took some code from o-blog and changed it to working with jekyll. it can
> export org entry to html file . hope it's works .
>
>
> On Mon, Oct 22, 2012 at 4:57 AM, Detlef Steuer wrote:
>
>> On Tue, 16 Oct 2012 15:21:39 +0200
>> Vincent Beffara  wrote:
>>
>> > Dear list,
>> >
>> > Is there a way to publish a huge org file, typically containing a
>> single date-tree, into one html file per day / per leaf of the tree ? That
>> would be a neat tool to blog using org-mode (org-capture a post into the
>> tree, export, you're done).
>>
>>
>> There is a tool/cms cmsimple_xh which displays a single html file as
>> many of pages splitted by headline levels. My homepage
>> ( http://fawn.hsu-hh.de/~steuer/  ; nothing fancy ) is generated that
>> way. One large org file, export as html, show as many pages using
>> cmsimple.
>>
>> http://www.cmsimple-xh.com/
>>
>> I like that combo a lot. Should work out of the box with date-trees.
>>
>> Detlef
>>
>>
>> >
>> > Cheers,
>> >
>> > /vincent
>> >
>> > --
>> > Vincent Beffara
>> >
>> >
>> >
>> >
>>
>>
>>
>>
>