[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31006: [PATCH] Handle quotation marks and apostrophes in ‘sgml-quote
From: |
Eli Zaretskii |
Subject: |
bug#31006: [PATCH] Handle quotation marks and apostrophes in ‘sgml-quote’ |
Date: |
Sun, 01 Apr 2018 11:59:35 +0300 |
> From: Michal Nazarewicz <mina86@mina86.com>
> Date: Sat, 31 Mar 2018 18:00:35 +0100
>
> To be able to use text in an HTML argument, quotation marks need
> to be replaced with an appropriate character reference. Make
> ‘sgml-quote’ do that.
>
> While at it, fix entiteis not being unquoted if they lack closing
> semicolon (e.g. ‘&’) occuring at the very end of a region.
> Even though unlikely, make ‘sgml-quote’ handle this scenario.
>
> * lisp/textmodes/sgml-mode.el (sgml-quote): Handle quotation marks and
> apostrophes. Match entities lacking semicolon at the end of regions.
> * test/lisp/textmodes/sgml-mode-tests.el (sgml-quote-works): New test
> case for ‘sgml-quote’ function.
Thanks, this LGTM, with a minor nit: the NEWS entry should be marked
"---", as sgml-quote is not currently documented in the Emacs manual.
Please wait for a few days to let others comment, and if nothing else
comes up, please push to the master branch with the above nit fixed.
- bug#31006: [PATCH] Handle quotation marks and apostrophes in ‘sgml-quote’,
Eli Zaretskii <=