emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Export snippet translations are ignored
@ 2013-10-25 11:36 Suvayu Ali
  2013-10-25 17:09 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Suvayu Ali @ 2013-10-25 11:36 UTC (permalink / raw)
  To: Emacs Org mode

Hi,

I noticed yesterday that export snippet translations are being ignored.
I have tested this behaviour in a minimal Emacs instance.

1. $ emacs -Q -l minimal-org.el
2. Eval:
   (add-to-list 'org-export-snippet-translation-alist
	     '(("b" . "beamer")
	       ("l" . "latex")))
3. Try exporting to beamer the following line: "Shown in
   @@b:{\color{myblue}blue}@@."  I get: "Shown in ."  Replacing @@b:
   with @@beamer: works.

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] Export snippet translations are ignored
  2013-10-25 11:36 [BUG] Export snippet translations are ignored Suvayu Ali
@ 2013-10-25 17:09 ` Nicolas Goaziou
  2013-10-25 18:36   ` Suvayu Ali
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2013-10-25 17:09 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: Emacs Org mode

Hello,

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> I noticed yesterday that export snippet translations are being ignored.
> I have tested this behaviour in a minimal Emacs instance.
>
> 1. $ emacs -Q -l minimal-org.el
> 2. Eval:
>    (add-to-list 'org-export-snippet-translation-alist
> 	     '(("b" . "beamer")
> 	       ("l" . "latex")))

This produces an invalid value for the variable:

  '((("b" . "beamer") ("l" . "latex")))

Notice the spurious pair of parens.

You may use:

  (add-to-list 'org-export-snippet-translation-alist
               '("b" . "beamer"))
  (add-to-list 'org-export-snippet-translation-alist
               '("l" . "latex"))


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] Export snippet translations are ignored
  2013-10-25 17:09 ` Nicolas Goaziou
@ 2013-10-25 18:36   ` Suvayu Ali
  0 siblings, 0 replies; 3+ messages in thread
From: Suvayu Ali @ 2013-10-25 18:36 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Emacs Org mode

Hi Nicolas,

On Fri, Oct 25, 2013 at 07:09:13PM +0200, Nicolas Goaziou wrote:
> Hello,
> 
> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> 
> > I noticed yesterday that export snippet translations are being ignored.
> > I have tested this behaviour in a minimal Emacs instance.
> >
> > 1. $ emacs -Q -l minimal-org.el
> > 2. Eval:
> >    (add-to-list 'org-export-snippet-translation-alist
> > 	     '(("b" . "beamer")
> > 	       ("l" . "latex")))
> 
> This produces an invalid value for the variable:
> 
>   '((("b" . "beamer") ("l" . "latex")))
> 
> Notice the spurious pair of parens.
> 
> You may use:
> 
>   (add-to-list 'org-export-snippet-translation-alist
>                '("b" . "beamer"))
>   (add-to-list 'org-export-snippet-translation-alist
>                '("l" . "latex"))
> 

Thank you, I must have changed it recently.  Sorry for the noise.

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-25 18:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-25 11:36 [BUG] Export snippet translations are ignored Suvayu Ali
2013-10-25 17:09 ` Nicolas Goaziou
2013-10-25 18:36   ` Suvayu Ali

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).