From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Duscheleit Newsgroups: gmane.emacs.bugs Subject: bug#9383: 24.0.50; Comment-line continuation not highlighted correctly in c-mode. Date: Sat, 27 Aug 2011 01:04:54 +0200 Message-ID: <87mxevydt5.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314400810 23425 80.91.229.12 (26 Aug 2011 23:20:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2011 23:20:10 +0000 (UTC) To: 9383@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 27 01:20:06 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qx5gz-0002IG-QA for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Aug 2011 01:20:06 +0200 Original-Received: from localhost ([::1]:37432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5gy-0003ke-No for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Aug 2011 19:20:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5gC-0003hJ-Fw for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:19:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx5gB-0002QY-GM for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:19:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5gB-0002QU-EB for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:19:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qx5ir-0005vh-V6; Fri, 26 Aug 2011 19:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Duscheleit Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Aug 2011 23:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9383 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131440091622779 (code B ref -1); Fri, 26 Aug 2011 23:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Aug 2011 23:21:56 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qx5ik-0005vH-Oc for submit@debbugs.gnu.org; Fri, 26 Aug 2011 19:21:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qx5V9-0004ur-SY for submit@debbugs.gnu.org; Fri, 26 Aug 2011 19:07:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx5SR-0000Rh-Aj for submit@debbugs.gnu.org; Fri, 26 Aug 2011 19:05:04 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:33645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5SR-0000Rc-96 for submit@debbugs.gnu.org; Fri, 26 Aug 2011 19:05:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5SQ-00021p-9a for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:05:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx5SO-0000R3-NX for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:05:02 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:58230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5SO-0000Qi-Ic for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:05:00 -0400 Original-Received: by bkbzt4 with SMTP id zt4so3314217bkb.0 for ; Fri, 26 Aug 2011 16:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; bh=i7m0n/4K64zgwKvIM6Eqi4NA6dSW5EJe6pw4veyl3Sc=; b=iSTNBdYhxTRSa7tp/VLIJ/fehfNon6Ath6r1BiMctLCGmAMmNJQ9W75dlYvp8b84OJ wBP25ISR4C4SHBSlapWjN+P3q5DrinK5cwDByRH3DyovU10ufkqjxvj9v3TFskMYhrI2 yA9wn95V5xKkTSaO2h7ZgxrdZAG/frlf2JC74= Original-Received: by 10.204.152.148 with SMTP id g20mr900056bkw.382.1314399899079; Fri, 26 Aug 2011 16:04:59 -0700 (PDT) Original-Received: from hydra (odnb-4dbcbe5c.pool.mediaWays.net [77.188.190.92]) by mx.google.com with ESMTPS id j17sm577297bks.46.2011.08.26.16.04.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Aug 2011 16:04:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 26 Aug 2011 19:21:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 26 Aug 2011 19:22:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Fri, 26 Aug 2011 19:20:02 -0400 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:50372 Archived-At: At least in C and C++ modes comment line continuations (aka ending in '\') are not highlighted correcly. Th following code snipped demonstrates the wrong behaviour: else if (code == 200) { // Downloading whole file /* Write new file (plus allow reading once we finish) */ // FIXME Win32 native version fails here because Microsoft's version of tmpfile() creates the file in C:\ g = fname ? fopen(fname, "w+") : tmpfile(); } Although the //FIXME line ends in a backslash, Emacs renders the following line as normal code. In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.5) of 2011-08-23 on hydra Windowing system distributor `The X.Org Foundation', version 11.0.11003901 configured using `configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--without-sound' '--with-x-toolkit=gtk' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe' 'LDFLAGS=-Wl,--hash-style=gnu -Wl,--as-needed'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. goto-history-element: Beginning of history; no preceding item Load-path shadows: None found. Features: (shadow sort mail-extr message idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug tango-dark-theme org-google-weather solar cal-dst regexp-opt cal-menu calendar cal-loaddefs format-spec google-weather cl xml url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util password-cache url-vars mm-util mail-prsvr mailcap linum auctex-autoloads tex-site info easymenu clojure-mode-autoloads dired-single-autoloads magit-autoloads multi-term-autoloads paredit-autoloads rainbow-mode-autoloads slime-repl-autoloads slime-autoloads package tabulated-list mime-w3m advice help-fns advice-preload w3m-load time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --