From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.bugs Subject: bug#20711: 25.0.50; Emacs 24.5 regression: C++ font lock displays incorrectly when pasting Date: Mon, 1 Jun 2015 10:59:50 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d1e94987ee80517789733 X-Trace: ger.gmane.org 1433181691 9362 80.91.229.3 (1 Jun 2015 18:01:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2015 18:01:31 +0000 (UTC) To: 20711@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 01 20:01:21 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 1YzU1S-0003NY-Li for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jun 2015 20:01:14 +0200 Original-Received: from localhost ([::1]:53708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzU1S-00014S-6q for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jun 2015 14:01:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzU1I-0000ud-LW for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 14:01:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzU1H-0007GN-BH for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 14:01:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzU1H-0007GJ-8w for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 14:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YzU1H-0005vY-0V for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 14:01:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Barry OReilly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jun 2015 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20711 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: emacs bugs Original-Received: via spool by submit@debbugs.gnu.org id=B.143318161622666 (code B ref -1); Mon, 01 Jun 2015 18:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jun 2015 18:00:16 +0000 Original-Received: from localhost ([127.0.0.1]:36376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzU0S-0005tT-Qr for submit@debbugs.gnu.org; Mon, 01 Jun 2015 14:00:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51413) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzU0I-0005sH-Gj for submit@debbugs.gnu.org; Mon, 01 Jun 2015 14:00:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzU0B-0006ae-SR for submit@debbugs.gnu.org; Mon, 01 Jun 2015 13:59:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzU0B-0006aa-PF for submit@debbugs.gnu.org; Mon, 01 Jun 2015 13:59:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzU09-0000JT-Sm for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 13:59:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzU08-0006Zj-8w for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 13:59:53 -0400 Original-Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]:35161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzU08-0006Zb-0B for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2015 13:59:52 -0400 Original-Received: by oiax69 with SMTP id x69so4862055oia.2 for ; Mon, 01 Jun 2015 10:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=N3p1IeRupX66jmky3x/FDs8nQsAKUJ5DL8C+NM+jBOU=; b=iKGdoMh8xU7jBCyf4FdyqzujPYITw5TdfTDVpbBBjfwwHKolXRjYPKBRj03VRDhru3 +a6YdZWuKevJrcElupe157c9sREBp9r95HmEQPTfn0BjFuYIWJotNSmI/peMDETzp21G QAiuAJVX/9i+fXJD7hFi05KsFWNED3yJCMQXYekd6FmdcXgNL4ngvon2Zm3NZW3uqvSD bmgFscMWgX/OR7o+lrPIT8p1cIftAK5BCEmkr3qeaWzWX141bounPVX8FkSUcZ9lJnlN H0e4cwNjSxix2cU/R2vD+uErqdyM9kMcvZYxGSbn9BK9dN2mO0o/fH4F00n8mU+1aZMx Fn/w== X-Received: by 10.202.208.66 with SMTP id h63mr17758073oig.74.1433181590419; Mon, 01 Jun 2015 10:59:50 -0700 (PDT) Original-Received: by 10.76.34.69 with HTTP; Mon, 1 Jun 2015 10:59:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:103449 Archived-At: --001a113d1e94987ee80517789733 Content-Type: text/plain; charset=UTF-8 Create ~/tmp/foo.cc with file contents: // 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. Try the same with Emacs 24.4 and all fontification is correct. In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2015-05-12 on REDACTED 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 Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t abbrev-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. foo.cc has auto save data; consider M-x recover-this-file Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs mule-util time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95173 6053) (symbols 48 20219 1) (miscs 40 298 85) (strings 32 17455 4710) (string-bytes 1 598651) (vectors 16 12120) (vector-slots 8 419820 4972) (floats 8 84 47) (intervals 56 186 0) (buffers 976 12) (heap 1024 27404 1005)) --001a113d1e94987ee80517789733 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Create ~/tmp/foo.cc with file contents:
=C2=A0 //

Start Emacs 24.5 by:

=C2=A0 emacs -Q ~/tmp/foo.cc

Typ= e 42 in some other X11 window (eg Chrome), and select it. In the Emacs wind= ow, paste it with the middle mouse button (mouse-yank-primary). The number = 4 is not fontified.

Try the same with Emacs 24.4 a= nd all fontification is correct.


In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version= 2.24.23)
=C2=A0of 2015-05-12 on REDACTED
Windowing sys= tem distributor `The X.Org Foundation', version 11.0.11501000
System Description: Ubun= tu 14.04 LTS (upgraded from: Ubuntu 12.04.4 LTS)

C= onfigured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY = FREETYPE XFT ZLIB

Important settings:
= =C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @= im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

<= /div>
Major mode: C++/l

Minor modes in effect:=
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t<= /div>
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: = t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t<= /div>
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-= mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-num= ber-mode: t
=C2=A0 abbrev-mode: t

Recent= messages:
For information about GNU Emacs and the GNU system, ty= pe C-h C-a.
foo.cc has auto save data; consider M-x recover-this-= file

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr e= macsbug message dired format-spec
rfc822 mml mml-sec mm-decode mm= -bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailhea= der sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prs= vr mail-utils cc-mode cc-fonts easymenu
cc-guess cc-menus cc-cmds= cc-styles cc-align cc-engine cc-vars cc-defs
mule-util time-date= tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-t= ype mwheel x-win term/common-win x-dnd tool-bar dnd fontset
image= regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
=
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian=
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean=
japanese hebrew greek romanian slovak czech european ethiopic in= dian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simp= le abbrev
minibuffer cl-preloaded nadvice loaddefs button faces c= us-face macroexp
files text-properties overlay sha1 md5 base64 fo= rmat env code-pages mule
custom widget hashtable-print-readable b= ackquote gfilenotify
dynamic-setting system-font-setting font-ren= der-setting move-toolbar gtk
x-toolkit x multi-tty make-network-p= rocess emacs)

Memory information:
((cons= es 16 95173 6053)
=C2=A0(symbols 48 20219 1)
=C2=A0(mis= cs 40 298 85)
=C2=A0(strings 32 17455 4710)
=C2=A0(stri= ng-bytes 1 598651)
=C2=A0(vectors 16 12120)
=C2=A0(vect= or-slots 8 419820 4972)
=C2=A0(floats 8 84 47)
=C2=A0(i= ntervals 56 186 0)
=C2=A0(buffers 976 12)
=C2=A0(heap 1= 024 27404 1005))

--001a113d1e94987ee80517789733--