From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Add new keyword :coding for #+include directive Date: Tue, 17 Apr 2018 10:36:35 +0200 Message-ID: <874lkakz58.fsf@nicolasgoaziou.fr> References: <87tvsbx72g.fsf@killashandra.ballybran.fr> <87in8qyh3t.fsf@killashandra.ballybran.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8M6W-0005TJ-3d for emacs-orgmode@gnu.org; Tue, 17 Apr 2018 04:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8M6Q-0006sW-HB for emacs-orgmode@gnu.org; Tue, 17 Apr 2018 04:36:44 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:53233) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8M6Q-0006oP-Aj for emacs-orgmode@gnu.org; Tue, 17 Apr 2018 04:36:38 -0400 In-Reply-To: <87in8qyh3t.fsf@killashandra.ballybran.fr> ("Pierre =?utf-8?Q?T=C3=A9choueyres=22's?= message of "Mon, 16 Apr 2018 23:30:14 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Pierre =?utf-8?Q?T=C3=A9choueyres?= Cc: org-mode Hello, pierre.techoueyres@free.fr (Pierre T=C3=A9choueyres) writes: > I want to propose the attached patch which allow you to specify an > optionnal `:coding' keyword to the `#+INCLUDE:' directive. Thank you. > This allow you to specify something like > > #+begin_example > ,#+INCLUDE: "myfile.cmd" src cmd :coding "cp850-dos" > #+end_example The quotes are not necessary. AFAICT, coding systems do not contain spaces. > Which allow you to have different encoding for your various sources > files. > > This allow me to include localised Microsoft Windows batch sources > inside my utf-8-unix org-files. Is it really an Org problem? E.g., couldn't you put a coding: cookie in your ".cmd" file? IMO, the coding system depends on the includee, not the includer. WDYT? Regards, --=20 Nicolas Goaziou