|
From: Peter M. <pet...@gm...> - 2023-04-24 04:07:06
|
Hi Uwe,
Here are the original patches (matlab-elecp-patch and
matlab-elecp-patch_PHM) that would be applied to commit [5069e3c], and the
patch corresponding to the PR in question
(0001-fix-electric-pair-handling-of-single-quote.patch) to be applied to be
applied to [b700722]. Content-wise, the PR is the same as the two original
patches applied serially.
Here is the text of the original issue:
note: I formatted this email in markdown for readability (let me know if
> there's a better way).
>
> I use **electric-pair-mode**. If you don't you can turn it on locally with
> ```
> (electric-pair-local-mode t)
> ```
> to see what the issue is.
>
> Briefly, with **electric-pair-mode** on (locally or globally), If I type
> the characters `(abc)def`, I get the same output. The characters that pair
> are the ones in the syntax table (use `describe-syntax' to see it) that are
> of type "open", "close", or "string".
>
> In **matlab-mode**, the pairs (), [], {} (all "open"/"close" type) work
> fine, as does the "string" type delimiter " (aka, double-quote, #x22, ?")
> because it is listed in the variable `electric-pair-pairs`. The only one
> that does NOT work is the "string" type delimiter ' (aka, single-quote,
> #x27, ?'). So with the `(abc)def` example above, with #x27, I get:
> ```
> 'abc'def'
> ```
> Note the single-quote at the end of the output string after the `f`.
>
Peter
|