[O] [ox-ascii] Export file overwrites source file

2013-02-15 Thread Sebastien Vauban
Hello, As many people, I think, I've also associated Org-mode to .txt files. Now, with the new exporter, if I export `a.txt' as "plain text", it overwrites (without notice, BTW) my source file `a.txt': it's lost. Before, in such a case, the exporter noticed that I already had a file named `a.txt

Re: [O] Align argument in #+attr_latex for tabular env. is whitespace sensitive

2013-02-15 Thread Sebastien Vauban
Nicolas, Nicolas Goaziou wrote: > John Hendy writes: >> >> For what it's worth, these two behave identically: >> >> #+attr_latex: width=5cm >> #+attr_latex: width = 5cm >> >> I'm not sure why the tabular align argument is behaving differently. > > This syntax is wrong anyway. It should be: > >

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread T.F. Torrey
Hello, Nicolas Goaziou writes: > tftor...@tftorrey.com (T.F. Torrey) writes: > >> Now, I have these: >> >> #+BIND: org-html-style-include-default nil >> #+BIND: org-html-style-include-scripts nil >> >> But they seem to be silently ignored, though if I setq the values ahead >> of time, the output

Re: [O] Macro expansion in new exporter

2013-02-15 Thread T.F. Torrey
Hello Nicolas, Thank your for your thoughtful reply. Nicolas Goaziou writes: > tftor...@tftorrey.com (T.F. Torrey) writes: > >> 1. You wrote before that macros were scaled back because what they did >> could be done by babel. Is that really a good reason for removing >> functionality? Everyth

Re: [O] [PATCH] Stop with an error if the LaTeX class is not known to the new exporter

2013-02-15 Thread Sebastien Vauban
Hello Nicolas, Nicolas Goaziou wrote: > "Sebastien Vauban" writes: > >> I've lost (a bit of) time looking at why my documents were wrong with the new >> exporter. The fact is I've customized: >> >> (setq org-e-latex-default-class "myarticle") >> >> but hadn't added yet that private class to t

Re: [O] Statistics cookies in org-store-link

2013-02-15 Thread Bastien
Hi William, William writes: > As for a recent git version, calling org-store-link on a subtree records its > statistics cookie¹ in the link, which therefore breaks if the said statistic > is > changed (with “no match - create this as a new heading ?”) > > Links not featuring the progress cookie

Re: [O] suggestion: M-m should move point to first word on line

2013-02-15 Thread Bastien
Hi, Bastien writes: > Eric S Fraga writes: > >> this seems to cause a problem with org-ctrl-c-minus when trying to cycle >> a bullet point past +. That is, it works if the bullet is - so you can >> cycle to the next which is + but you cannot cycle past that. > > Attached patch (against master)

Re: [O] syntax table -- active dates

2013-02-15 Thread Bastien
Hi Samuel, Samuel Wales writes: > Should the <> indicate sexp? Yes, this is the case now in master. Also for {...} are sexps, which ease navigating through macros. Thanks for suggesting this, -- Bastien

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Nicolas Goaziou
tftor...@tftorrey.com (T.F. Torrey) writes: > I still don't see any similar options regarding MathJax. Perhaps > everyone else uses MathJax, or the functionality simply hasn't been > implemented yet. If only the HTML export backend maintainer were still > on the list... Would you mind describin

Re: [O] Macro expansion in new exporter

2013-02-15 Thread Nicolas Goaziou
tftor...@tftorrey.com (T.F. Torrey) writes: > Perhaps. We still know of no easy/straightforward way at all to > replicate using babel the behavior I had (creating ' class="foo">bar' with a macro), let alone in a pair of single > lines. Here is an example. Babel specialists can help you further.

Re: [O] using export filters to emulate multi-column table cells?

2013-02-15 Thread Nicolas Goaziou
Eric Abrahamsen writes: > Nicolas Goaziou writes: > I'd like to do the same for HTML, but of course the brackets in the > cookie are escaped by the time this filter kicks in. Would you recommend > using a different character to delineate the cookie, or match the > entities (yuck), or...? Hones

Re: [O] using export filters to emulate multi-column table cells?

2013-02-15 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Eric Abrahamsen writes: > >> Nicolas Goaziou writes: > >> I'd like to do the same for HTML, but of course the brackets in the >> cookie are escaped by the time this filter kicks in. Would you recommend >> using a different character to delineate the cookie, or match th

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Bastien
Hi, Nicolas Goaziou writes: > tftor...@tftorrey.com (T.F. Torrey) writes: > >> I still don't see any similar options regarding MathJax. Perhaps >> everyone else uses MathJax, or the functionality simply hasn't been >> implemented yet. If only the HTML export backend maintainer were still >> on

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Nicolas Goaziou
Bastien writes: > We need to make `org-html--build-mathjax-config' depends on whether > there is an latex-fragment element in the parse tree. Otherwise, > including the MathJAX config is useless. > > I've been looking at this this morning. > > Is there an org-element function to test whether an

Re: [O] [Bug] Yasnippet/Org: properties messed up when expanding $1

2013-02-15 Thread Karl Voit
* Memnon Anon wrote: > Karl Voit writes: > >> So there does not seem to be anybody who is able to fix this issue. >> Is there at least somebody who can confirm this weird bug? > > I tried your snippet, everything fine here with: > > Org-mode version 7.9.3e (7.9.3e-1032-g791a8d) > yas, latest git

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > (org-element-map (plist-get info :parse-tree) > '(latex-fragment latex-environment) 'identity info t) I used this, but only checking against LaTeX fragments. HTML pages without LaTeX fragments will not include the MathJax configuration. Thanks! --

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Nicolas Goaziou
Bastien writes: > Nicolas Goaziou writes: > >> (org-element-map (plist-get info :parse-tree) >> '(latex-fragment latex-environment) 'identity info t) > > I used this, but only checking against LaTeX fragments. > HTML pages without LaTeX fragments will not include the > MathJax configuratio

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Bastien
Nicolas Goaziou writes: > Just to be sure we're not mis-communicating, a latex environment is the > following: > > \begin{equation*} > 2 + 2 = 4 > \end{equation*} > > This is not to be confused with a latex block, such as: > > #+begin_latex > \[2 + 2 = 4\] > #+end_latex I made the co

Re: [O] Links in tables and org-return-follows-link

2013-02-15 Thread Bastien
Hi Vasil, vdya...@elvees.com (Дядов Васил Стоянов) writes: > When I set variable org-return-follows-link to true I expect that it > will work on links in tables too (when org-table-editor is on). But > it does not. > > Is it wrong behaviour of org-mode? The behavior of RET in tables takes preced

[O] New feature: export an agenda to an Org file

2013-02-15 Thread Bastien
Hi all, I've committed a feature that allows you to export your agenda buffer to an Org file. It will create a new file containing the headlines of the agenda. The headlines do not contain any children they may have. Please try the feature extensively before Org 8.0. In an agenda buffer C-x C-

Re: [O] [Bug] Yasnippet/Org: properties messed up when expanding $1

2013-02-15 Thread Karl Voit
* Karl Voit wrote: > > I updated Org to latest git and I moved from Debian yasnippet to > github yasnippet (latest) and I still do have this issue. > > So it's my set-up which is causing this effect. Damn. I guess I > have to debug this by disabling parts of my config ... So a quick test of my se

Re: [O] [TEXINFO] Link bug

2013-02-15 Thread Nicolas Goaziou
Hello, t...@tsdye.com (Thomas S. Dye) writes: > I think the new code to handle split links has broken links that aren't > split. > > Here is an ECM: > > * Headline to split > > [[Headline > to split]] > > [[Headline to split]], not! This should be fixed. Could you confirm it? Thank you. Rega

Re: [O] Align argument in #+attr_latex for tabular env. is whitespace sensitive

2013-02-15 Thread Nicolas Goaziou
"Sebastien Vauban" writes: >> This syntax is wrong anyway. It should be: >> >> #+attr_latex: :width "5cm" >> >> or >> >> #+attr_latex: :width 5cm > > From the tests I made on images, with the Beamer back-end, those did not work. > It had to be: > > #+ATTR_LaTeX: :options "width=5cm" > >

Re: [O] [ox-ascii] Export file overwrites source file

2013-02-15 Thread Nicolas Goaziou
Hello, "Sebastien Vauban" writes: > As many people, I think, I've also associated Org-mode to .txt files. > > Now, with the new exporter, if I export `a.txt' as "plain text", it overwrites > (without notice, BTW) my source file `a.txt': it's lost. > > Before, in such a case, the exporter notic

Re: [O] [PATCH] Stop with an error if the LaTeX class is not known to the new exporter

2013-02-15 Thread Nicolas Goaziou
"Sebastien Vauban" writes: > Your fix misses an argument to the error message, hence the `format-string' > function is failing. Applied. Thank you. Regards, -- Nicolas Goaziou

[O] new export dispatcher window

2013-02-15 Thread Skip Collins
The new export dispatcher confused me when it displayed an incomplete list of backend options. At first I thought my configuration must not be loading LaTeX and HTML properly. Then I discovered that the *Org Export Dispatcher* window does not behave well when the frame is too small. I am using the

Re: [O] [TEXINFO] Link bug

2013-02-15 Thread Thomas S. Dye
Aloha Nicolas, Nicolas Goaziou writes: > Hello, > > t...@tsdye.com (Thomas S. Dye) writes: > >> I think the new code to handle split links has broken links that aren't >> split. >> >> Here is an ECM: >> >> * Headline to split >> >> [[Headline >> to split]] >> >> [[Headline to split]], not! > >

Re: [O] Align argument in #+attr_latex for tabular env. is whitespace sensitive

2013-02-15 Thread Sebastien Vauban
Hi Nicolas, Nicolas Goaziou wrote: > "Sebastien Vauban" writes: > >>> This syntax is wrong anyway. It should be: >>> >>> #+attr_latex: :width "5cm" >>> >>> or >>> >>> #+attr_latex: :width 5cm >> >> From the tests I made on images, with the Beamer back-end, those did not >> work. >> It had to

Re: [O] [ox-ascii] Export file overwrites source file

2013-02-15 Thread Sebastien Vauban
Nicolas, Nicolas Goaziou wrote: > "Sebastien Vauban" writes: > >> As many people, I think, I've also associated Org-mode to .txt files. >> >> Now, with the new exporter, if I export `a.txt' as "plain text", it >> overwrites >> (without notice, BTW) my source file `a.txt': it's lost. >> >> Before,

Re: [O] [Bug] Yasnippet/Org: properties messed up when expanding $1

2013-02-15 Thread Karl Voit
* Karl Voit wrote: > > I guess I have to do a bug report to yasnippet. Bugreport: https://github.com/capitaomorte/yasnippet/issues/362 I cut down this issue to a minimal example: it's the combination of heading followed by a line with two colons and a text after the replacement string: ,[ S

Re: [O] new export dispatcher window

2013-02-15 Thread Nicolas Goaziou
Hello, Skip Collins writes: > The new export dispatcher confused me when it displayed an incomplete > list of backend options. At first I thought my configuration must not > be loading LaTeX and HTML properly. Then I discovered that the *Org > Export Dispatcher* window does not behave well when

Re: [O] Macro expansion in new exporter

2013-02-15 Thread T.F. Torrey
Hello Nicolas, Nicolas Goaziou writes: > tftor...@tftorrey.com (T.F. Torrey) writes: > >> Perhaps. We still know of no easy/straightforward way at all to >> replicate using babel the behavior I had (creating '> class="foo">bar' with a macro), let alone in a pair of single >> lines. > > Here is

[O] bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)'

2013-02-15 Thread Bastien
Let me restate the issue: M-x mark-word RET will highlight the word at point. M-: (mark-word) RET will *not* highlight the word at point. My understanding was that interactive call of mark-word highlight the region, while non-interactive call do not highlight it. Is this wrong? `org-mark-elemen

[O] Dynamic blocks in the new exporter

2013-02-15 Thread T.F. Torrey
Hello again, Does the new export framework impose new restrictions on or change the functionality of dynamic blocks? Best regards, Terry -- T.F. Torrey

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread T.F. Torrey
Hello, Nicolas Goaziou writes: > tftor...@tftorrey.com (T.F. Torrey) writes: > >> I still don't see any similar options regarding MathJax. Perhaps >> everyone else uses MathJax, or the functionality simply hasn't been >> implemented yet. If only the HTML export backend maintainer were still >>

Re: [O] Dynamic blocks in the new exporter

2013-02-15 Thread Sebastien Vauban
Hello T.F., T.F. Torrey wrote: > Does the new export framework impose new restrictions on or change the > functionality of dynamic blocks? I've used them quite extensively today. Did not notice anything wrong. What are you trying to tell us? Best regards, Seb -- Sebastien Vauban

Re: [O] Bug: [BUG] Interference of radio targets and external links [7.9.3e (7.9.3e-956-g3943be.dirty @ /home/vdyadov/Work/Tools/emacs/org-mode/lisp/)]

2013-02-15 Thread Bastien
Hi, vdya...@elvees.com (Дядов Васил Стоянов) writes: > I've an issue with radio targets and ordinary external links. > > #+begin_src org > #+ATTR_HTML: border="1" frame="border" style="max-width:50%;" > | / | <> | <> | <> | > | | Test | De

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Sebastien Vauban
Hi T.F, T.F. Torrey wrote: > (Similarly, as someone else wrote, #+HTML_STYLE would be much better > named #+HTML_HEAD, given that style is just one of the many things this > directive might put into the head element of the html.) I vote +1, at least if we can put anything we would put in the HTML

Re: [O] Macro expansion in new exporter

2013-02-15 Thread Nicolas Goaziou
tftor...@tftorrey.com (T.F. Torrey) writes: > This almost works, I think ... > > #+name: snippet-awesome > #+begin_src org :exports results :results raw > Snippet of awesome text that changes sometimes. #+end_src > > #+HTML: > #+CALL: snippet-awesome :results raw > #+HTML: > > ... except that it

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Bastien
Hi Terry, tftor...@tftorrey.com (T.F. Torrey) writes: > However, the new HTML exporter includes the MathJax JavaScript every > time, and I don't see any variable to set to suppress it. This is not the case anymore since commit 4d7f4d87. > Recent posts by Bastien suggest that maybe it is suppose

Re: [O] Macro expansion in new exporter

2013-02-15 Thread Nick Dokos
T.F. Torrey wrote: > ... > This almost works, I think ... > > #+name: snippet-awesome > #+begin_src org :exports results :results raw > Snippet of awesome text that changes sometimes. > #+end_src > > #+HTML: > #+CALL: snippet-awesome :results raw > #+HTML: > > ... except that it doesn't act

Re: [O] Converting csv (with new lines) to org-mode.

2013-02-15 Thread Bastien
Hi Nicolas, "Nicolas Richard" writes: > A csv table can include newlines in its fields, which confuses the csv > parser contained in org-table-convert-region. Since I had no time to > patch the current implementation of org-table-convert-region, I decided > to use an already existing csv parser

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread Bastien
Bastien writes: > For this one I agree completely. I will make this change. I share the patch here to let people discuss this change a bit. It will break again the configuration of those who take the time to test the current HEAD (sic), so I'd rather make sure everyone is fine with it. Thanks

Re: [O] LaTeX-export: letters after $..$ turn off math-mode

2013-02-15 Thread Bastien
Hi Greg, Greg Minshall writes: > i'd like to plead the case of allowing the user to suppress dollar-sign > behavior (or, force dollar-signs to mean math-mode). I'm attaching a patch that introduces `org-latex-escape-chars' which would allow you to bind it to something different for each buffer

Re: [O] exit code editing buffer without installing the changes

2013-02-15 Thread Bastien
Hi Zech, Not To Miss writes: > I know in a source code block, C-c ' will launch a buffer to edit the > source code and C-c ' again will install the buffer back to the code > block. Sometimes I just want to abort all the changes, so I am > wondering: Is there anyway to exit the buffer without ins

Re: [O] obsolete function in org-bibtex.el and merges from emacs

2013-02-15 Thread Bastien
Hi Aaron, Aaron Ecay writes: > org-bibtex.el contains a reference to longlines-mode, which is obsolete > in emacs trunk since Dec. 4. When the function was made obsolete, the > version of org distributed with emacs was changed to use > visual-line-mode (the successor to longlines-mode). > > But

Re: [O] Dynamic blocks in the new exporter

2013-02-15 Thread T.F. Torrey
Hello Seb, "Sebastien Vauban" writes: > Hello T.F., > > T.F. Torrey wrote: >> Does the new export framework impose new restrictions on or change the >> functionality of dynamic blocks? > > I've used them quite extensively today. Did not notice anything wrong. > > What are you trying to tell us?

Re: [O] Macro expansion in new exporter

2013-02-15 Thread T.F. Torrey
Nicolas Goaziou writes: > tftor...@tftorrey.com (T.F. Torrey) writes: > >> This almost works, I think ... >> >> #+name: snippet-awesome >> #+begin_src org :exports results :results raw >> Snippet of awesome text that changes sometimes. #+end_src >> >> #+HTML: >> #+CALL: snippet-awesome :results

Re: [O] [Bug] Yasnippet/Org: properties messed up when expanding $1

2013-02-15 Thread Bastien
Hi Karl, Karl Voit writes: > Bugreport: https://github.com/capitaomorte/yasnippet/issues/362 You've been quick on narrowing the problem, this didn't leave me a chance to learn yasnippet! Next time :) -- Bastien

Re: [O] Links to whole files recently changed

2013-02-15 Thread Bastien
Hi François, François Pinard writes: > In the recent days, I noticed that org-store-link, when the cursor is on > the #+TITLE line of an Org file, saves the information in such a way > that a later org-insert-link creates the link by repeating the title > before and after "::". I think that not

Re: [O] BIND org-html-style-include-*

2013-02-15 Thread T.F. Torrey
Hello, Bastien writes: > Hi Terry, > > tftor...@tftorrey.com (T.F. Torrey) writes: > >> However, the new HTML exporter includes the MathJax JavaScript every >> time, and I don't see any variable to set to suppress it. > > This is not the case anymore since commit 4d7f4d87. Yes. Thank you for t

Re: [O] [ANN] outorg.el -- reverse Org-Babel

2013-02-15 Thread Samuel Wales
Hi Thorsten, The idea is to allow the option of keeping your notes in your agenda files, so that you can do everything Org does. If you only keep them in comments, you can't do searches, for example. To do this, you put an ID in the comments. Then you have a command that will take you to the en

Re: [O] Agenda export with E option (Org entry text lines)

2013-02-15 Thread Bastien
Hi Subhan, For references, I replied on the Help GNU Emacs list: http://lists.gnu.org/archive/html/help-gnu-emacs/2013-02/msg00209.html Best, -- Bastien

[O] bug#13724: Calling 'org-babel-mark-block' with 'M-x cmd' and 'M-: (cmd)'

2013-02-15 Thread Stefan Monnier
> ,- > | M-: (org-mark-element) RET > `- > moves point to the beginning of source-block (body) and returns the > position of point without (visibly) marking the source-block body. Indeed, thank you. Should be fixed now, thanks to the patch below,

Re: [O] Align argument in #+attr_latex for tabular env. is whitespace sensitive

2013-02-15 Thread Nicolas Goaziou
Hello, "Sebastien Vauban" writes: > For my information (and not only for me, I guess), is there a fundamental > reason (I guess yes) why width is a first-class parameter for tables and an > option among others for images? > > Looking from a 50 ft perspective, I would even imagine the opposite:

Re: [O] new export dispatcher window

2013-02-15 Thread Skip Collins
On Fri, Feb 15, 2013 at 2:47 PM, Nicolas Goaziou wrote: > I added vertical scrolling to the menu a few hours ago. Could you > upgrade Org and report the results? Seems to be an improvement. Now the dispatch window uses all available space. The top of the buffer (Options) is displayed at the top o

Re: [O] new export dispatcher window

2013-02-15 Thread Nicolas Goaziou
Skip Collins writes: > But for short windows, the bottom of the buffer gets cut off. There is > no way to scroll the window that I can find, either in the gui or > terminal emacs. Also, in the gui I get a lot of repeated down-mouse-1 > messages in the minibuffer when I click around on the scroll

Re: [O] LaTeX-export: letters after $..$ turn off math-mode

2013-02-15 Thread Nicolas Goaziou
Hello, Bastien writes: > Greg Minshall writes: > >> i'd like to plead the case of allowing the user to suppress dollar-sign >> behavior (or, force dollar-signs to mean math-mode). > > I'm attaching a patch that introduces `org-latex-escape-chars' which > would allow you to bind it to something

Re: [O] Bug: [BUG] Interference of radio targets and external links [7.9.3e (7.9.3e-956-g3943be.dirty @ /home/vdyadov/Work/Tools/emacs/org-mode/lisp/)]

2013-02-15 Thread Nicolas Goaziou
Hello, Bastien writes: > vdya...@elvees.com (Дядов Васил Стоянов) writes: > >> I've an issue with radio targets and ordinary external links. >> >> #+begin_src org >> #+ATTR_HTML: border="1" frame="border" style="max-width:50%;" >> | / | <> | <> | <>