emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#33163: closed (Adding a " in c++-mode fills the wh


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#33163: closed (Adding a " in c++-mode fills the whole file with red)
Date: Tue, 30 Oct 2018 12:02:02 +0000

Your message dated Tue, 30 Oct 2018 12:01:32 +0000
with message-id <address@hidden>
and subject line Re: bug#33163: Adding a " in c++-mode fills the whole file 
with red
has caused the debbugs.gnu.org bug report #33163,
regarding Adding a " in c++-mode fills the whole file with red
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
33163: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33163
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Adding a " in c++-mode fills the whole file with red Date: Fri, 26 Oct 2018 17:05:04 +0300 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
This long-standing problem appears occasionally, and only disappears if you 
kill the buffer completely, then reopen the file. I never got to report it 
because I never could find steps to reproduce it… until now :) Nvm the 
non-sense code, I reduced testcase as far as I managed.

# Steps to reproduce:

1. Save the following text in `test.cpp`
    int main() {
            puts(It's");
        auto foo = []()-> void {  };
            puts("It's");
    }
2. Open `emacs -Q ./test.cpp`
3. Now, the text lacks a quote in the first `puts(It's");`. Add it so it looks like 
`puts("It's");`. Essentially, if you'd compile it with g++, it lacks any syntax 
error besides `puts` being undeclared.

# Expected

The line with `auto foo…` is not red.

# Actual

The line with `auto foo…` (in particular) becomes red.

# Additional information

Emacs version GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.22.30) of 2018-10-01, build with -flto.



--- End Message ---
--- Begin Message --- Subject: Re: bug#33163: Adding a " in c++-mode fills the whole file with red Date: Tue, 30 Oct 2018 12:01:32 +0000 User-agent: Mutt/1.10.1 (2018-07-13)
Hello, Konstantin

On Mon, Oct 29, 2018 at 21:46:50 +0300, Konstantin Kharlamov wrote:
> Thank you, so, I've used the patch today for working with a code, and 
> everything seemed to be well :)

> Tested-by: Konstantin Kharlamov <address@hidden>

Thanks for the testing.  I've committed the patch to all the usual
places, and I'm closing the bug.

-- 
Alan Mackenzie (Nuremberg, Germany).


--- End Message ---

reply via email to

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