From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wd Newsgroups: gmane.emacs.bugs Subject: bug#10095: 24.0.50; cperl-mode highlight bug Date: Fri, 27 Apr 2012 17:29:57 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1335519078 27926 80.91.229.3 (27 Apr 2012 09:31:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2012 09:31:18 +0000 (UTC) To: 10095@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 11:31:14 2012 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 1SNhWD-00025z-Ok for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Apr 2012 11:31:13 +0200 Original-Received: from localhost ([::1]:38034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNhWD-0007xD-1e for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Apr 2012 05:31:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNhW5-0007wj-K2 for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 05:31:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNhVy-0003Us-Pz for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 05:31:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNhVy-0003Un-MF for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 05:30:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SNhWz-0004ff-JD for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 05:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: wd Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Apr 2012 09:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10095 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.133551909317920 (code B ref -1); Fri, 27 Apr 2012 09:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2012 09:31:33 +0000 Original-Received: from localhost ([127.0.0.1]:55130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNhWW-0004ex-VK for submit@debbugs.gnu.org; Fri, 27 Apr 2012 05:31:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45027) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNhWU-0004em-TF for submit@debbugs.gnu.org; Fri, 27 Apr 2012 05:31:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNhVH-0003LX-Pu for submit@debbugs.gnu.org; Fri, 27 Apr 2012 05:30:22 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:47573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNhVH-0003LM-Mn for submit@debbugs.gnu.org; Fri, 27 Apr 2012 05:30:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNhVA-0007se-Ts for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 05:30:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNhV2-00036B-Ha for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 05:30:08 -0400 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:61282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNhV2-00034h-74 for bug-gnu-emacs@gnu.org; Fri, 27 Apr 2012 05:30:00 -0400 Original-Received: by bkwj4 with SMTP id j4so345751bkw.0 for ; Fri, 27 Apr 2012 02:29:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding:x-gm-message-state; bh=x/dmElL7L0vUMuLhrrXe6Tvzw31nYJuhCQ4MGJbGTpw=; b=gIdlzR0geOHYeQjeJ97Wwppq5rv+mKUXzMKW4My2F6XIYNH7j2oEMKeb34GfSnuH33 2ZxqtTLDmQWdxuaRVeoh9KWtNlBoEuD5iEolb+32w7EIiJZ/aeFSf5+hfVTwRsnAXzc6 ogSnG+BHv0YoNGdyIOz4bE0YtNpHF0T27auXzD1xZfuY/bVaXK//k4F5KZwOnTCgcTPt c3sOxU9oIR/dEYY326zCqtKj4Da6KQWMluRrpeEaOt6k4ObkkJRpB2n2uBfsEuZs4/IH gW0unZNesb6eOvfYTjGZmOAwzY4xt55u7vy1oKYh5Kq5U3w0LkVT5IgjOMwsfQP1VLl7 qWlg== Original-Received: by 10.204.156.65 with SMTP id v1mr3560596bkw.109.1335518997202; Fri, 27 Apr 2012 02:29:57 -0700 (PDT) Original-Received: by 10.205.82.132 with HTTP; Fri, 27 Apr 2012 02:29:57 -0700 (PDT) In-Reply-To: X-Gm-Message-State: ALoCoQnm2d+hKrXEgrnZVyUsqxrbwCi5JdhFvjf7Yvdga9Q1YrlsHLm2QMdenGwfX5gHUuHHDz3U X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59551 Archived-At: Exists in GNU Emacs 24.0.95.1 (i686-pc-linux-gnu) Gentoo. On Tue, Apr 3, 2012 at 3:37 AM, wd wrote: > This bug still exists in emacs 24.0.94.1, both gnus/linux and macos. > > GNU Emacs 24.0.94.1 (i386-apple-darwin11.3.0, NS apple-appkit-1138.32) > of 2012-03-03 on localhost > > > On Mon, Nov 21, 2011 at 6:10 PM, wd wrote: >> This bug report will be sent to the Bug-GNU-Emacs mailing list >> and the GNU bug tracker at debbugs.gnu.org. =A0Please check that >> the From: line contains a valid email address. =A0After a delay of up >> to one day, you should receive an acknowledgement at that address. >> >> Please write in English if possible, as the Emacs maintainers >> usually do not have translators for other languages. >> >> Please describe exactly what actions triggered the bug, and >> the precise symptoms of the bug. =A0If you can, give a recipe >> starting from `emacs -Q': >> >> >> 1. Write a perl file named as 'a.pl', and past the following code >> #!/usr/bin/perl >> >> use strict; >> use warnings; >> use Data::Dumper; >> use POSIX qw/strftime mktime/; >> use Getopt::Long; >> use DBI; >> >> use JSON; >> >> sub main { >> } >> >> sub log { >> =A0 =A0my $msg =3D shift; >> =A0 =A0print localtime() . " $msg\n" if $v; >> } >> >> sub get_all_teams { >> =A0 =A0# we only can process temas that begin_time greater than >> 2011-09-07, since refund_log only start at that time >> =A0 =A0my $sql =3D qq/ >> =A0 =A0 =A0 =A0select >> =A0 =A0 =A0 =A0 =A0 =A0id, >> =A0 =A0 =A0 =A0 =A0 =A0to_timestamp(begin_time)::date as begin_time, >> =A0 =A0 =A0 =A0 =A0 =A0to_timestamp(end_time)::date as end_time, >> =A0 =A0 =A0 =A0 =A0 =A0cost_price, >> =A0 =A0 =A0 =A0 =A0 =A0payment_method, >> =A0 =A0 =A0 =A0 =A0 =A0ZuiHouGuiTuan_date, >> =A0 =A0 =A0 =A0 =A0 =A0N, >> =A0 =A0 =A0 =A0 =A0 =A0XiaoFeiQuanQuanBuLuRu_date, >> =A0 =A0 =A0 =A0 =A0 =A0ShangHuQuanXiaoFeiDaoQi_date, >> =A0 =A0 =A0 =A0 =A0 =A0KuaiDiQuanBuLuRu_date >> =A0 =A0 =A0 =A0from >> =A0 =A0 =A0 =A0 =A0 =A0public.team >> =A0 =A0 =A0 =A0where >> =A0 =A0 =A0 =A0 =A0 =A0to_timestamp(begin_time)::date >=3D '2011-09-07' >> =A0 =A0 =A0 =A0 =A0 =A0and to_timestamp(end_time)::date <=3D '$dt' >> =A0 =A0 =A0 =A0 =A0 =A0and payment_method > 0 >> =A0 =A0 =A0 =A0 =A0 =A0and id not in ( select team_id from >> report.tuan_balance_history where finish =3D 1 ) >> =A0 =A0/; >> >> =A0 =A0my $r =3D $dbh->selectall_arrayref($sql); >> =A0 =A0for(@$r) { >> =A0 =A0 =A0 =A0my ( $team_id, $begin_time, $end_time, $cost_price, >> $payment_method, $zhgt_date, $N, $xfqqblr_date, $shqxfdq_date, >> $kdqblr_date ) =3D @$_; >> =A0 =A0 =A0 =A0$teams_hash{ $team_id } =3D { >> =A0 =A0 =A0 =A0 =A0 =A0begin_time =3D> $begin_time, >> =A0 =A0 =A0 =A0 =A0 =A0end_time =3D> $end_time, >> =A0 =A0 =A0 =A0 =A0 =A0cost_price =3D> $cost_price, >> =A0 =A0 =A0 =A0 =A0 =A0payment_method =3D> $payment_method, >> =A0 =A0 =A0 =A0 =A0 =A0balanced_count =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0balanced_money =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0other_tuan_quantity =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0other_tuan_refund_quantity =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0other_tuan_coupon_consumed_count =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0quantity =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0refund_quantity =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0real_quantity =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0vendor_fee =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0coupon_consumed_count =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0coupon_consumed_percent =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0coupon_is_expire =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0vendor_fee =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0zhgt_date =3D> $zhgt_date, >> =A0 =A0 =A0 =A0 =A0 =A0xfqqblr_date =3D> $xfqqblr_date, >> =A0 =A0 =A0 =A0 =A0 =A0N =3D> $N, >> =A0 =A0 =A0 =A0 =A0 =A0kdqblr_date =3D> $kdqblr_date, >> =A0 =A0 =A0 =A0 =A0 =A0shqxfdq_date =3D> $shqxfdq_date, >> =A0 =A0 =A0 =A0 =A0 =A0balanced_dates =3D> [], >> =A0 =A0 =A0 =A0 =A0 =A0expressed_count =3D> 0, >> =A0 =A0 =A0 =A0 =A0 =A0through_coupon_consumed_count =3D> 0 >> =A0 =A0 =A0 =A0}; >> =A0 =A0} >> } >> >> 2. Open 'a.pl' use 'emacs -Q a.pl', emacs will use perl-mode open this >> file, type 'M-x cperl-mode', type C-v to page down, you will see 'my $r'= and >> the following lines will not highlight as expect. >> >> >> If Emacs crashed, and you have the Emacs process in the gdb debugger, >> please include the output from the following gdb commands: >> =A0 =A0`bt full' and `xbacktrace'. >> For information about debugging Emacs, please read the file >> /usr/share/emacs/24.0.50/etc/DEBUG. >> >> >> In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.5) >> =A0of 2011-08-02 on tux >> Windowing system distributor `The X.Org Foundation', version 11.0.111020= 00 >> configured using `configure =A0'--prefix=3D/usr' >> '--build=3Di686-pc-linux-gnu' '--host=3Di686-pc-linux-gnu' >> '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' >> '--datadir=3D/usr/share' '--sysconfdir=3D/etc' '--localstatedir=3D/var/l= ib' >> '--disable-dependency-tracking' '--program-suffix=3D-emacs-24' >> '--infodir=3D/usr/share/info/emacs-24' >> '--with-crt-dir=3D/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/../../..' >> '--with-gameuser=3Dgames' '--without-compress-info' '--without-hesiod' >> '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' >> '--without-gnutls' '--without-selinux' '--with-sound' '--with-x' >> '--without-xml2' '--without-toolkit-scroll-bars' '--without-wide-int' >> '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' >> '--with-xpm' '--without-imagemagick' '--without-gsettings' >> '--without-gconf' '--with-xft' '--without-libotf' '--without-m17n-flt' >> '--with-x-toolkit=3Dgtk' 'build_alias=3Di686-pc-linux-gnu' >> 'host_alias=3Di686-pc-linux-gnu' 'CFLAGS=3D-O2 -march=3Dprescott -pipe' >> 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed'' >> >> Important settings: >> =A0value of $LC_ALL: nil >> =A0value of $LC_COLLATE: nil >> =A0value of $LC_CTYPE: zh_CN.UTF-8 >> =A0value of $LC_MESSAGES: nil >> =A0value of $LC_MONETARY: nil >> =A0value of $LC_NUMERIC: nil >> =A0value of $LC_TIME: nil >> =A0value of $LANG: en_US.UTF-8 >> =A0value of $XMODIFIERS: @im=3Dibus >> =A0locale-coding-system: utf-8-unix >> =A0default enable-multibyte-characters: t >> >> Major mode: CPerl >> >> Minor modes in effect: >> =A0tooltip-mode: t >> =A0mouse-wheel-mode: t >> =A0tool-bar-mode: t >> =A0menu-bar-mode: t >> =A0file-name-shadow-mode: t >> =A0global-font-lock-mode: t >> =A0font-lock-mode: t >> =A0blink-cursor-mode: t >> =A0auto-composition-mode: t >> =A0auto-encryption-mode: t >> =A0auto-compression-mode: t >> =A0line-number-mode: t >> =A0transient-mark-mode: t >> >> Recent input: >> M-x c p e r l - m o d e C-v C-x C-f C-g M-x >> r e p o r t - b u >> >> Recent messages: >> For information about GNU Emacs and the GNU system, type C-h C-a. >> Quit >> >> Load-path shadows: >> /usr/share/emacs/site-lisp/flim/hex-util hides >> /usr/share/emacs/24.0.50/lisp/hex-util >> /usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/24.0.50/lisp/= md4 >> /usr/share/emacs/site-lisp/flim/sasl-cram hides >> /usr/share/emacs/24.0.50/lisp/net/sasl-cram >> /usr/share/emacs/site-lisp/flim/sasl-digest hides >> /usr/share/emacs/24.0.50/lisp/net/sasl-digest >> /usr/share/emacs/site-lisp/flim/sasl hides >> /usr/share/emacs/24.0.50/lisp/net/sasl >> /usr/share/emacs/site-lisp/flim/ntlm hides >> /usr/share/emacs/24.0.50/lisp/net/ntlm >> /usr/share/emacs/site-lisp/flim/sasl-ntlm hides >> /usr/share/emacs/24.0.50/lisp/net/sasl-ntlm >> /usr/share/emacs/site-lisp/flim/hmac-md5 hides >> /usr/share/emacs/24.0.50/lisp/net/hmac-md5 >> /usr/share/emacs/site-lisp/flim/hmac-def hides >> /usr/share/emacs/24.0.50/lisp/net/hmac-def >> /usr/share/emacs/site-lisp/semi/smime hides >> /usr/share/emacs/24.0.50/lisp/gnus/smime >> /usr/share/emacs/site-lisp/emms/tq hides >> /usr/share/emacs/24.0.50/lisp/emacs-lisp/tq >> /usr/share/emacs/site-lisp/semi/pgg hides >> /usr/share/emacs/24.0.50/lisp/obsolete/pgg >> /usr/share/emacs/site-lisp/semi/pgg-def hides >> /usr/share/emacs/24.0.50/lisp/obsolete/pgg-def >> /usr/share/emacs/site-lisp/semi/pgg-gpg hides >> /usr/share/emacs/24.0.50/lisp/obsolete/pgg-gpg >> /usr/share/emacs/site-lisp/semi/pgg-pgp hides >> /usr/share/emacs/24.0.50/lisp/obsolete/pgg-pgp >> /usr/share/emacs/site-lisp/semi/pgg-parse hides >> /usr/share/emacs/24.0.50/lisp/obsolete/pgg-parse >> /usr/share/emacs/site-lisp/semi/pgg-pgp5 hides >> /usr/share/emacs/24.0.50/lisp/obsolete/pgg-pgp5 >> >> Features: >> (shadow sort gnus-util mail-extr message format-spec rfc822 mml mml-sec >> mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 >> ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader >> emacsbug cperl-mode easymenu perl-mode time-date china-util 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 font-render-setting move-toolbar gtk x-toolkit >> x multi-tty emacs)