Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-09 Thread Joseph Vidal-Rosset
Le ven.  08 mars 2019 à  05:19:13 , Eric S  Fraga  a
envoyé ce message:
> On Friday,  8 Mar 2019 at 17:53, Joseph Vidal-Rosset wrote:
>> I have reinstalled the current version of ox-koma-letter.el to compile
>> the example given here
>
>> https://code.orgmode.org/bzg/worg/raw/master/exporters/koma-letter-new-example.org
>>  
>
>> and here is the result with M-x toggle-debug-on-error: 
>
> This is very strange.  That file works just fine for me.
>
> What version of org are you using?  (I apologise if you already told us.)
>
> I have no special customization for ox-koma-letter.

I'm using the elpa version, both for org-plus-contrib and org: 

joseph@debian ~ $ cat 
MEGA/git/scimax/elpa/org-plus-contrib-20190304/ox-koma-letter.el
;;; ox-koma-letter.el --- KOMA Scrlttr2 Back-End for Org Export Engine

;; Copyright (C) 2007-2018 Free Software Foundation, Inc.

joseph@debian ~ $ cd MEGA/git/scimax/elpa/org-20190304/

I'm going to  install the older version of  ox-koma-letter.el that works
in my setup,  because I am unable to understand  why the current version
fails presently. 

Best wishes, 
-- 
Jo. 



Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-08 Thread Eric S Fraga
On Friday,  8 Mar 2019 at 17:53, Joseph Vidal-Rosset wrote:
> I have reinstalled the current version of ox-koma-letter.el to compile
> the example given here

> https://code.orgmode.org/bzg/worg/raw/master/exporters/koma-letter-new-example.org
>  

> and here is the result with M-x toggle-debug-on-error: 

This is very strange.  That file works just fine for me.

What version of org are you using?  (I apologise if you already told us.)

I have no special customization for ox-koma-letter.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.2-249-g51444a



Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-08 Thread Joseph Vidal-Rosset
Le ven.  08 mars 2019 à  09:36:51 , Eric S  Fraga  a
envoyé ce message:
> On Friday,  8 Mar 2019 at 09:11, Joseph Vidal-Rosset wrote:
>> Hello,
>>
>> I'm trying to export to koma class,  and especially to get the export to
>> koma letter but I meet always the same message: 
>
> Two things:
>
> 1. could you post a minimal example?
>
> 2. what do you see if you M-x toggle-debug-on-error RET first.

Hello, 

I have reinstalled  the current version of  ox-koma-letter.el to compile
the  example given  here
https://code.orgmode.org/bzg/worg/raw/master/exporters/koma-letter-new-example.org
 
and here is the result with M-x toggle-debug-on-error: 

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  format-spec(nil ((116 . #("Mis-shapen chaos of well-seeming forms!" 0 39 
(:parent (#("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent #7)) 
(97 . #("Romeo" 0 5 (:parent (#("Romeo" 0 5 (:parent #8)) (116 . 
#("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent (#("Mis-shapen chaos 
of well-seeming forms!" 0 39 (:parent #9)) (107 . "") (100 . "") (99 . 
"Emacs 27.0.50 (Org mode 9.2.2)") (108 . "french") (76 . "French") (68 #("1580" 
0 4 (:parent #12)
  org-koma-letter-template(#("\n\n\\begin{verse}\nThen plain..." 16 61 (:parent 
(verse-block ... ...)) 64 101 (:parent (verse-block ... ...)) 104 144 (:parent 
(verse-block ... ...)) 147 192 (:parent (verse-block ... ...)) 195 237 (:parent 
(verse-block ... ...)) 240 283 (:parent (verse-block ... ...)) 286 329 (:parent 
(verse-block ... ...)) 332 369 (:parent (verse-block ... ...)) ...) 
(:export-options nil :back-end #s(org-export-backend :name koma-letter :parent 
latex :transcoders (... ... ... ... ...) :options (... ... ... ... ... ... ... 
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 
...) :filters nil :blocks nil :menu (107 "Export with KOMA Scrlttr2" ...)) 
:translate-alist ((export-block . org-koma-letter-export-block) (export-snippet 
. org-koma-letter-export-snippet) (headline . org-koma-letter-headline) 
(keyword . org-koma-letter-keyword) (template . org-koma-letter-template) (bold 
. org-latex-bold) (center-block . org-latex-center-block) (clock . 
org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) 
(dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) 
(example-block . org-latex-example-block) (export-block . 
org-latex-export-block) (export-snippet . org-latex-export-snippet) 
(fixed-width . org-latex-fixed-width) (footnote-definition . 
org-latex-footnote-definition) (footnote-reference . 
org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule 
. org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) 
(inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . 
org-latex-item) (keyword . org-latex-keyword) (latex-environment . 
org-latex-latex-environment) ...) :exported-data # :input-buffer "koma-letter-new-example.or..." :input-file 
"/home/joseph/MEGA/lettre/k..." :latex-class "my-letter" :lco "DINmtext" 
:author (#("Romeo" 0 5 ...)) :author-changed-in-buffer-p "Romeo" :from-address 
"" :phone-number "" :url "" ...))
  org-export-as(koma-letter nil nil nil (:output-file 
"koma-letter-new-example.tex"))
  org-export-to-file(koma-letter "koma-letter-new-example.tex" nil nil nil nil 
nil #f(compiled-function (file) #))
  org-koma-letter-export-to-pdf(nil nil nil nil)
  (org-open-file (org-koma-letter-export-to-pdf nil s v b))
  (if a (org-koma-letter-export-to-pdf t s v b) (org-open-file 
(org-koma-letter-export-to-pdf nil s v b)))
  (lambda (a s v b) (if a (org-koma-letter-export-to-pdf t s v b) 
(org-open-file (org-koma-letter-export-to-pdf nil s v b(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)


I hope it helps (because I am unable to understand this output). 

Best wishes, 

-- 
Joseph 



Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-08 Thread Eric S Fraga
On Friday,  8 Mar 2019 at 10:31, Joseph Vidal-Rosset wrote:
> Hello,
>
> There was a problem with the last version of ox-koma-letter.el  , I have
> replaced it with an old version:

Great, but the current version works just fine for me.  I think it would
be helpful to isolate why it doesn't work for you as others may fall
into the same problem.
-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.2-249-g51444a



Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-08 Thread Eric S Fraga
On Friday,  8 Mar 2019 at 09:11, Joseph Vidal-Rosset wrote:
> Hello,
>
> I'm trying to export to koma class,  and especially to get the export to
> koma letter but I meet always the same message: 

Two things:

1. could you post a minimal example?

2. what do you see if you M-x toggle-debug-on-error RET first.

I use koma letter export all the time and it works fine for me but I do
think it's fragile.
-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.2-249-g51444a



Re: [O] org-koma-letter-template: Wrong type argument: char-or-string-p, nil

2019-03-08 Thread Joseph Vidal-Rosset
Hello,

There was a problem with the last version of ox-koma-letter.el  , I have
replaced it with an old version:

;;; ox-koma-letter.el --- KOMA Scrlttr2 Back-End for Org Export Engine

;; Copyright (C) 2007-2012, 2014  Free Software Foundation, Inc.

and now the export works.

I hope that it will be helpful.

Best wishes,

Jo.

Le ven. 8 mars 2019 à 09:11, Joseph Vidal-Rosset <
joseph.vidal.ros...@gmail.com> a écrit :

> Hello,
>
> I'm trying to export to koma class,  and especially to get the export to
> koma letter but I meet always the same message:
>
> "org-koma-letter-template: Wrong type argument: char-or-string-p, nil"
>
> and I do  not succeed to see  what is wrong in my  setup. Therefore your
> help is welcome.
>
> Best wishes,
>
> Jo.
>