[O] Error escaping '' and '' in HTML export

2013-01-12 Thread Daniel Dehennin
Hello,

I tried to export as HTML some script I made and found that the exporter
do not handle correctly URL in the form 'http://example.net' like in
the GPL licence notice when followed by a line containing ''

For example:

#+begin_src sh
  #!/bin/sh
  
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program.  If not, see http://www.gnu.org/licenses/.
  
  # Report bug to Hello Bug Tracking system hello-...@example.net

  echo Hello World
#+end_src

produce the following:

#+begin_src html
span style=color: #adadad;# /spanspan style=color: #adadad;along with 
this program.  If not, see a href=http://www.gnu.org/licenses/.

# Report bug to Hello Bug Tracking system 
hello-...@example.netlt;http://www.gnu.org/licenses/gt;./a/spana 
href=http://www.gnu.org/licenses/.

# Report bug to Hello Bug Tracking system hello-...@example.net

/aspan style=color: #adadad;a href=http://www.gnu.org/licenses/.

# Report bug to Hello Bug Tracking system hello-...@example.net# 
/a/spanspan style=color: #adadad;a href=http://www.gnu.org/licenses/.

# Report bug to Hello Bug Tracking system hello-...@example.netReport bug to 
Hello Bug Tracking system hello-...@example.netgt;/a/span
#+end_src

Regards.

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgp9zmauoD8dX.pgp
Description: PGP signature


[O] [PATCH] Small API fix and add test for addlevel inclusion parameter

2012-11-18 Thread Daniel Dehennin
The following changes since commit c2223c8979c5510e01c0dd6cc2378b71484828fc:

  still execute code block even if :results none (2012-11-17 17:54:08 -0700)

are available in the git repository at:

  git://git.baby-gnu.net/org-mode tags/fix-and-test-org-exp-inclusion

for you to fetch changes up to eec6c6086a2e93e4a8a30081603405a4b7b48634:

  org-exp: Add tests for addlevel (2012-11-18 15:47:50 +0100)


Without any parameter, inclusion should be done as-is, it was always
demoted due to a bug of org-get-file-contents call in
org-export-handle-include-files.

Add test cases for the addlevel option[fn:1] which add one to the
current level.

Footnotes:

[fn:1] http://article.gmane.org/gmane.emacs.orgmode/50030


Daniel Dehennin (2):
  org-exp: Fix minlevel inclusion
  org-exp: Add tests for addlevel

 lisp/org-exp.el  |2 +-
 testing/examples/org-exp.org |   25 +
 testing/lisp/test-org-exp.el |   24 
 3 files changed, 50 insertions(+), 1 deletion(-)

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgpkX54srPtP1.pgp
Description: PGP signature


Re: [O] Bug: Formatting URL labels does not works with LaTeX export

2012-03-28 Thread Daniel Dehennin
Bastien b...@gnu.org writes:

 Hi Daniel,

 Daniel Dehennin daniel.dehen...@baby-gnu.org writes:

 When comparing different exports, I found a possible bug when formatting
 the label of URLs:

 Can you clearly state what the problem is?

Sorry, the problem is the output of literal OrgMode formatting
characters in LaTeX which could be misinterpreted for PDF generation.

I get links in my PDF labeled:

- literal output /Org-Mode/ and =Org-Mode=
- miinterpreted subscripted Org-Mode

The formatting in URLs labels is managed for HTML, I was
expecting something like the following for LaTeX:

#+begin_src latex
\href{http://orgmode.org}{\emph{Org-Mode}}

\href{http://orgmode.org}{\verb=Org-Mode=}

\href{http://orgmode.org}{\underline{Org-Mode}}
#+end_src

Or at least, stripping the formatting characters to prevent clash with
LaTeX processing.

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgpV5MLjCtncf.pgp
Description: PGP signature


[O] Export of link with underscore does not work nicely

2012-03-27 Thread Daniel Dehennin
Hello,

I try to export the following as HTML and text but the output is not
optimal:

#+begin_src org
This is the
[[http://www.postgresql.org/docs/9.1/static/client-authentication.html][pg_hba.conf]]
configuration file
#+end_src

With HTML export, the hba is subscript.

Escaping it with a backslash works fine for HTML export but not for
ASCII one.

Is this intended or a bug?

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgpIndfSf0E0a.pgp
Description: PGP signature


Re: [O] Export of link with underscore does not work nicely

2012-03-27 Thread Daniel Dehennin
Daniel Dehennin daniel.dehen...@baby-gnu.org writes:

 With HTML export, the hba is subscript.

 Escaping it with a backslash works fine for HTML export but not for
 ASCII one.

It seems that the problem is with the ASCII export, the backslash to
escape the underscore is not striped.

- ASCII output: [pg\_hba.conf]

- HTML output: a 
href=http://www.postgresql.org/docs/9.1/static/client-authentication.html;pg_hba.conf/a

- PDF output: pg_hba.conf


Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgpNsMoYQ3XNB.pgp
Description: PGP signature


Re: [O] [DEV] New git workflow

2012-03-24 Thread Daniel Dehennin
Simon Thum simon.t...@gmx.de writes:

 Hi all,

Hello,

[...]

 Many projects use the IMO more sane model of release branches (or
 maintenance branches, if you prefer) for major releases. Minor ones
 are tagged on those branches, and back-porting critical fixes is much
 cleaner: Fixes and development go to master, fixes which should be
 back-ported are cherry-picked onto the release branches. When desired,
 a new release is tagged. Releases only come from release branches, of
 course.

It seems that one problem with cherry-picking is the tracking of what is
in which branch and from where it comes.

I'm not a git neither DVCS guru, but daggyfixes[1][2][3] is saner than
cherry-picking.

My 2¢.

Regards.

Footnotes: 
[1]  http://mercurial.selenic.com/wiki/DaggyFixes

[2]  http://wiki.monotone.ca/DaggyFixes/

[3]  
http://stackoverflow.com/questions/2922652/git-is-there-a-way-to-figure-out-where-a-commit-was-cherry-picked-from

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


pgpTMNJvX2vJE.pgp
Description: PGP signature


Re: [O] Babel add comma in front of my '*'

2012-02-18 Thread Daniel Dehennin
Eric Schulte eric.schu...@gmx.com writes:


[...]

 Yes,

 Org-mode does the above to protect the rest of the file from the
 possible Org-mode syntax in the code block.  However if you then use
 this text (e.g., through tangling or reference from another code block)
 the comma will be automatically removed, so it shouldn't cause you any
 problems.

What about removing it during org-edit-special?

My use is to org-edit-special the block, and use that overlay by
cutpast and so on.

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


pgpeb8wKTRyZE.pgp
Description: PGP signature


[O] Babel add comma in front of my '*'

2012-02-15 Thread Daniel Dehennin
Hello,

I tryed to babelize an iptables-save file and file to restore it.

Babel put a comma in front of my '*', in the following, the '*mangle'
became ',*mangle':

#+begin_src text
# Generated by iptables-save v1.4.4 on Wed Feb 15 10:16:05 2012
,*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
#+end_src

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


pgpaHtAz00nrl.pgp
Description: PGP signature


[O] [PATCH] Dynamically demote included file relatively to the current heading level

2011-12-12 Thread Daniel Dehennin
 (point-min) (point-max
-(buffer-string)))
+(when addlevel
+  (let ((inclevel (or (if (org-before-first-heading-p)
+ (- (outline-next-heading) 1)
+   (- (org-current-level) 1))
+ 0)))
+   (dotimes (level (- (+ parentlevel addlevel) inclevel))
+ (org-map-region 'org-demote (point-min) (point-max)
+  (buffer-string)))
 
 (defun org-get-and-remove-property (listvar prop)
   Check if the value of LISTVAR contains PROP as a property.
diff --git a/testing/examples/include-1.org b/testing/examples/include-1.org
new file mode 100644
index 000..0c7ed29
--- /dev/null
+++ b/testing/examples/include-1.org
@@ -0,0 +1,8 @@
+
+* Include 1 header (initial level is 1)
+
+Some text in include1.
+
+Followed by a demoted include.
+
+#+INCLUDE: include-2.org :addlevel 1
diff --git a/testing/examples/include-2.org b/testing/examples/include-2.org
new file mode 100644
index 000..8558947
--- /dev/null
+++ b/testing/examples/include-2.org
@@ -0,0 +1,4 @@
+
+* Include 2 header (initial level is 1)
+
+Some text in include 2.
diff --git a/testing/examples/include-addlevel.txt 
b/testing/examples/include-addlevel.txt
new file mode 100644
index 000..c4fd1c3
--- /dev/null
+++ b/testing/examples/include-addlevel.txt
@@ -0,0 +1,58 @@
+   Test #+INCLUDE: addlevel
+   
+
+Author: Test user
+Date: 
+
+
+Table of Contents
+=
+1 Top level1 header1 
+2 Include 1 header (initial level is 1) 
+2.1 Include 2 header (initial level is 1) 
+3 Top level1 header2 
+3.1 Include 1 header (initial level is 1) 
+3.1.1 Include 2 header (initial level is 1) 
+
+
+1 Top level1 header1 
+-
+
+Following come a level1
+
+
+2 Include 1 header (initial level is 1) 
+
+
+Some text in include1.
+
+Followed by a demoted include.
+
+
+2.1 Include 2 header (initial level is 1) 
+==
+
+Some text in include 2.
+
+
+
+3 Top level1 header2 
+-
+
+Following come a level1 header demoted to level2
+
+
+3.1 Include 1 header (initial level is 1) 
+==
+
+Some text in include1.
+
+Followed by a demoted include.
+
+
+3.1.1 Include 2 header (initial level is 1) 
+
+
+Some text in include 2.
+
+
diff --git a/testing/examples/include-master.org 
b/testing/examples/include-master.org
new file mode 100644
index 000..f63b883
--- /dev/null
+++ b/testing/examples/include-master.org
@@ -0,0 +1,15 @@
+#+TITLE: Test #+INCLUDE: addlevel
+#+AUTHOR: Test user
+#+DATE:
+
+* Top level1 header1
+
+Following come a level1
+
+#+INCLUDE: include-1.org
+
+* Top level1 header2
+
+Following come a level1 header demoted to level2
+
+#+INCLUDE: include-1.org :addlevel 1
-- 
1.7.7.3



-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


pgpvLJZv1fXp7.pgp
Description: PGP signature


[O] Search links in a list of files

2011-12-12 Thread Daniel Dehennin
Hello,

As I want to write some documentation with org-mode, I'm looking for a
way to manage an list of files in which org-mode will look for links, or
better, a list or directory to scan.

For example:

- in file1.org, I link something like
  [[file:file2.org::#some-point][some point in some file]]

- in file2.org I have a property CUSTOM_ID: some-point somewhere.

If I reorganize my documentation and move file2.org in some
subdirectory, like examples/file2.org, I would like to avoid changing
all the references to file2::#some-point.

Maybe a link like [[search:PATH::SOMETHING]], with SOMETHING like in
search-options[1].

We could define a per-org file PATH, with something like
#+LINK_SEARCH_PATH: path1, path2, ...
 
Any idea about this issue?

Regards.

Footnotes: 
[1]  http://orgmode.org/manual/Search-options.html#Search-options

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


pgpFOcRbi3DWm.pgp
Description: PGP signature


[Orgmode] LaTeX export

2007-11-02 Thread Daniel Dehennin
Hello,

Using org mode for near everything, I want to use LaTeX export.

I have 2 problems:

- the underscore _ is not escaped,
- I use non-breakable spaces in my input files, like « some text »,
  is-it possible to replace this by ~ ?

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x2A408F69


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


Re: [Orgmode] Spreedsheet and row formulas

2007-05-08 Thread Daniel Dehennin
Le 4997 Septembre 1993, Carsten Dominik a tapoté:
 One reason why row formulas have not been implemented is that
 it is not straight forward to exclude columns from applying the
 row formula.

 For column formulas, it is natural to exclude the table header.

Maybe defining a format for the table, telling that column 1 and row
1 are header ?

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Spreedsheet and row formulas

2007-04-26 Thread Daniel Dehennin
Hello,

This is a feature request as it doesn't seems to exists.

I would like to have row formulas, like colum formulas.

It's always possible to invert a table to make the formulas on colums
instead of row, but it changes the meaning of the table.

Thanks.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] QUOTE, HTML export and URL handling

2007-04-21 Thread Daniel Dehennin
Hello,

Using the quote environment for command-line examples, I discover a
strange behaviour, let's see my example:

:  wget http://www.example.org/a-page.html

When I export to HTML it gives me:

wget [[http://www.example.org/a-page.html][http://www.example.org/a-page.html]]

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Enhancing text with HTML export

2007-04-20 Thread Daniel Dehennin
Le 4979 Septembre 1993, Carsten Dominik a tapoté:
 The reason for this is that / is used to indicate italic text,

[...]

 This restriction will be removed in the next version, but I
 am not entirely sure if it will break some other part of
 emphasis highlighting.  We will see...

Thanks.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode