[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Add new keyword :coding for #+include directive
From: |
Pierre Téchoueyres |
Subject: |
Re: [O] [PATCH] Add new keyword :coding for #+include directive |
Date: |
Wed, 25 Apr 2018 00:57:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Nicolas Goaziou <address@hidden> writes:
> Hello,
>
> address@hidden (Pierre Téchoueyres) writes:
>
>> I think I've corrected all points. You'll find new versions attached.
>
> Thank you.
>
>> Would you mind consider to include the patch for the detection of
>> encoding with the #+include keyword in 9.2 release ?
>
> This patch is still missing some small parts for proper integration,
> namely documentation, and, if possible, a couple of tests. Besides, 9.2
> branch is supposedly frozen.
I argree for the documentation and tests (but I have to admit I don't
know how to add them).
> Granted, it doesn't seem too harmful, but is there any strong reason to
> integrate it in Org 9.2 (assuming documentation is ready)?
I think I wasn't clear enough : I had hope you will only include the
part which correct the decoding of include keyword, not the whole two
patchs. I think the former is simply a bug fixes.
>
>> + (coding
>> + (intern (or (and (string-match
>> +
>> ":coding[[:space:]]+\\_<\\(\\(?:\\sw\\|\\$\\|&\\|\\*\\|\\+\\|-\\|_\\|<\\|>\\)+\\)\\_>"
>> value)
>> + (prog1 (match-string 1 value)
>> + (setq value (replace-match "" nil nil
>> value))))
>> + (symbol-name coding-system-for-read))))
>
> I suggested a refactoring that you didn't integrate: it seems wasteful
> to call `intern' on the return value of `symbol-name'.
>
> Besides, my suggestion about the regexp was wrong. We shouldn't make the
> syntax foolproof. I think
>
> ":coding +\\(\\S-+\\)"
>
> is enough actually. Sorry about sending you in the wrong track.
>
> Regards,
Here is a new amended patch.
0001-Add-new-keyword-coding-for-include-directive.patch
Description: include-new-directive
Regards,
--
Pierre Téchoueyres
- [O] [PATCH] Add new keyword :coding for #+include directive, Pierre Téchoueyres, 2018/04/16
- Re: [O] [PATCH] Add new keyword :coding for #+include directive, Pierre Téchoueyres, 2018/04/16
- Re: [O] [PATCH] Add new keyword :coding for #+include directive, Nicolas Goaziou, 2018/04/17
- Re: [O] [PATCH] Add new keyword :coding for #+include directive, Pierre Téchoueyres, 2018/04/18
- Re: [O] [PATCH] Add new keyword :coding for #+include directive, Pierre Téchoueyres, 2018/04/20
- Re: [O] [PATCH] Add new keyword :coding for #+include directive, Nicolas Goaziou, 2018/04/23
- Re: [O] [PATCH] Add new keyword :coding for #+include directive, Pierre Téchoueyres, 2018/04/23
- Re: [O] [PATCH] Add new keyword :coding for #+include directive, Nicolas Goaziou, 2018/04/24
- Re: [O] [PATCH] Add new keyword :coding for #+include directive,
Pierre Téchoueyres <=