From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#20711: 25.0.50; Emacs 24.5 regression: C++ font lock displays incorrectly when pasting Date: 2 Jun 2015 13:41:59 -0000 Organization: muc.de e.V. Message-ID: <20150602134159.43823.qmail@mail.muc.de> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1433252611 3536 80.91.229.3 (2 Jun 2015 13:43:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 13:43:31 +0000 (UTC) Cc: Barry OReilly To: 20711@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 15:43:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YzmTL-0006Dw-1a for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 15:43:15 +0200 Original-Received: from localhost ([::1]:58548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzmTK-0003nh-G5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 09:43:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzmTG-0003nc-Ah for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 09:43:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzmTF-0000M0-AV for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 09:43:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzmT9-0000EY-54; Tue, 02 Jun 2015 09:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YzmT8-00089D-He; Tue, 02 Jun 2015 09:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 02 Jun 2015 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20711 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 20711-submit@debbugs.gnu.org id=B20711.143325252431248 (code B ref 20711); Tue, 02 Jun 2015 13:43:02 +0000 Original-Received: (at 20711) by debbugs.gnu.org; 2 Jun 2015 13:42:04 +0000 Original-Received: from localhost ([127.0.0.1]:36988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzmSB-00087t-C0 for submit@debbugs.gnu.org; Tue, 02 Jun 2015 09:42:03 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:41405 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzmS8-00087S-MC for 20711@debbugs.gnu.org; Tue, 02 Jun 2015 09:42:01 -0400 Original-Received: (qmail 43824 invoked by uid 3782); 2 Jun 2015 13:41:59 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (FreeBSD/10.1-RELEASE (amd64)) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103476 Archived-At: Hello, Barry. In article you wrote: > [-- text/plain, encoding 7bit, charset: UTF-8, 88 lines --] > Create ~/tmp/foo.cc with file contents: > // Did you create it using Emacs? If so, C++ Mode will automatically have added a linefeed at the end of the bare line. > Start Emacs 24.5 by: > emacs -Q ~/tmp/foo.cc > Type 42 in some other X11 window (eg Chrome), and select it. In the Emacs > window, paste it with the middle mouse button (mouse-yank-primary). The > number 4 is not fontified. That's a pretty crisp recipe, thanks. I can't reproduce it, though. I'm in XFCE in X-Windows, and the program I used to get "42" into the mouse-yank-primary buffer was vim running on xfce4-terminal. I'm assuming that the "//" is at the beginning of the line, that there is no trailing space after it, but there is a linefeed at the end of the line. I yanked in the "42" just after the second "/". Could there be anything unusual about the "42" you got from Chrome? What's your desktop environment? Is there anything else you can think of in your setup that might be influencing the bug? Does the bug happen every time you try it, sometimes, or did it only happen once? > Try the same with Emacs 24.4 and all fontification is correct. As a matter of interest, would you reproduce your Emacs configuration line, please (M-: system-configuration-options). > In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) > of 2015-05-12 on REDACTED This is Emacs 25.0.50. What is the connection, if any, between the debug info you included below, and the test you ran on 24.5? > Windowing system distributor `The X.Org Foundation', version 11.0.11501000 > System Description: Ubuntu 14.04 LTS (upgraded from: Ubuntu 12.04.4 LTS) > Configured features: > XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY FREETYPE XFT ZLIB > Important settings: > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: @im=ibus > locale-coding-system: utf-8-unix > Major mode: C++/l [ .... ] -- Alan Mackenzie (Nuremberg, Germany).