emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [RFC] Introduce ox-i18n.el


From: Jambunathan K
Subject: Re: [O] [RFC] Introduce ox-i18n.el
Date: Tue, 02 Jul 2013 23:42:06 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Rasmus <address@hidden> writes:

> Nicolas Goaziou <address@hidden> writes:
>
>> Even though it is a defconst, you can still change it. You are not
>> forced to anything. But you're on your own.
>
> I agree, but it being a defconst, it comes with the message
>
>   "This declares that neither programs nor users should ever change
>    the value."
>
>> By the way, it is a defconst because of the keys, which shouldn't be
>> altered, not the values. 
>
> If that's really a the concern then why not write a function to alter
> values in a safe manner?
>
> Alternatively, it could stay defconst, and there could be a
> org-export-smart-quotes-alist-user, defaulting to nil but taking
> precedence over its non-user counterpart.  If people specify a wrong
> language code it'll just be ignored.

Snippet below is a good starting point, for customizability you are
asking for.

(defcustom ox-sq-alist  nil
  ""
  :type '(alist :key-type string :value-type
                (alist :key-type symbol
                       :options (ODQ CDQ OSQ CSQ)
                       :value-type (plist :options (:utf-8 :html :latex 
:texinfo)))))


> –Rasmus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]