emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master bb591f139f: Enhance CC Mode's fontification, et


From: Eli Zaretskii
Subject: Re: [Emacs-diffs] master bb591f139f: Enhance CC Mode's fontification, etc., of unterminated strings.
Date: Wed, 23 May 2018 17:52:39 +0300

> From: address@hidden (João Távora)
> Cc: address@hidden,  address@hidden
> Date: Tue, 22 May 2018 23:17:22 +0100
> 
> 
> I just pushed this change to master and though it's not perfect, I'm
> pretty happy with the result.  Here's readable output of M-x
> ert-describe-test for the test that Alan is investigating:
> 
>   electric-pair-autowrapping-5-at-point-2-in-c++-mode-in-strings is a
>   test defined in `electric-tests.elc'.
>    
>   Electricity test in a `c++-mode' buffer.
>    
>   Start with point at 2 in a 5-char-long buffer
>   like this one:
>    
>     |"foo"|   (buffer start and end are denoted by `|')
>    
>   Now call this:
>    
>   #'(lambda nil
>       (electric-pair-mode 1)
>       (mark-sexp 1))
>    
>   Now press the key for: "
>    
>   The buffer's contents should become:
>    
>     |""foo""|
>    
>   , and point should be at 3.

Thanks, LGTM.



reply via email to

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