From unknown Mon Aug 18 02:38:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8169: 23.2; wrong fontification in gdb-script Resent-From: Tom Tromey Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2011 21:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8169@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129918623013470 (code B ref -1); Thu, 03 Mar 2011 21:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 21:03:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvFgb-0003VD-6e for submit@debbugs.gnu.org; Thu, 03 Mar 2011 16:03:49 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvFgT-0003Uu-KV for submit@debbugs.gnu.org; Thu, 03 Mar 2011 16:03:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvFgM-0000cm-Nd for submit@debbugs.gnu.org; Thu, 03 Mar 2011 16:03:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:35475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvFgM-0000ci-JW for submit@debbugs.gnu.org; Thu, 03 Mar 2011 16:03:34 -0500 Received: from [140.186.70.92] (port=38702 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvFgK-0002Tf-K1 for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 16:03:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvFgI-0000cJ-Fx for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 16:03:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvFgI-0000c6-2S for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 16:03:30 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p23L3SdM009677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 3 Mar 2011 16:03:28 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p23L3RW1025580; Thu, 3 Mar 2011 16:03:28 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p23L3R55027648; Thu, 3 Mar 2011 16:03:27 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id D805B3792F7; Thu, 3 Mar 2011 14:03:26 -0700 (MST) From: Tom Tromey X-Attribution: Tom Date: Thu, 03 Mar 2011 14:03:26 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 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, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Visit a file named .gdbinit and enter: define something echo hi # a comment end Notice that "end" is incorrect given the comment face. This happens due to some logic in gdb-script-syntax-propertize-function. It overrides the comment-end syntax on the newline. But, this is only really ok if the newline is actually part of a "document" command. I looked at this a little but didn't see a simple way to fix it. In GNU Emacs 23.2.1 (i386-redhat-linux-gnu, GTK+ Version 2.20.1) of 2010-06-03 on x86-07.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.10802000 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'' 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.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Summary Minor modes in effect: compilation-in-progress: (gid) gnus-agent-mode: t diff-auto-refine-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-spelling-mode: t erc-truncate-mode: t shell-dirtrack-mode: t erc-status-mode: t erc-services-mode: t erc-networks-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: a k e s SPC t h e SPC p r o m p t SPC s h o w SPC u p SPC i m m e d i a t e l y . SPC SPC b u t SPC I S-SPC d SPC n o o SPC n o t SPC r e a l l y SPC u n d e r s t a n d SPC i t . SPC SPC a n d SPC M-b M-b M-b M-b M-b M-b M-b M-b M-b M-f SPC f o r SPC " r u n " C-e I SPC C-a C-k C-c C-n C-r p a l C-r v M-> C-r p e c o s M-> C-y C-l s t i l l t h e SPC C - c SPC b e h a v i o r SPC i s SPC a l s o SPC s t i l l SPC u p C-t z z l i n g - l m e c h e c k SPC d o e s SPC s o m e SPC C-a C-k n o t SPC r e a l l y , SPC b u t SPC C-y c a n SPC d o SPC s o m e SPC o f SPC i t C-a C-k M-v C-l C-z o M-v C-u C-u C-p C-n C-n p M-g M-g M-g M-g C-u C-p = M-> C-p C-p SPC = C-l C-z n M-v M-v M-> C-x b C-x b C-z o M-v C-l M-x r e p o r t - e m b Recent messages: Mark set Mark saved where search started Mark set [3 times] Opening nntp server on news.gmane.org...done Retrieving newsgroup: nntp+news.gmane.org:gmane.comp.gdb.patches... Fetching headers for nntp+news.gmane.org:gmane.comp.gdb.patches...done Generating summary...done Mark set call-interactively: Beginning of buffer Mark set Load-path shadows: /home/tromey/lib/lisp/rpm-spec-mode hides /usr/share/emacs/site-lisp/rpm-spec-mode /usr/share/emacs/site-lisp/flim/sha1 hides /usr/share/emacs/23.2/lisp/sha1 /usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/23.2/lisp/md4 /usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/23.2/lisp/hex-util /home/tromey/.emacs.d/elpa/css-mode-1.0/css-mode hides /usr/share/emacs/23.2/lisp/textmodes/css-mode /home/tromey/.emacs.d/elpa/ruby-mode-1.0/ruby-mode hides /usr/share/emacs/23.2/lisp/progmodes/ruby-mode /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-glyph hides /usr/share/emacs/23.2/lisp/nxml/nxml-glyph /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-valid hides /usr/share/emacs/23.2/lisp/nxml/rng-valid /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-maint hides /usr/share/emacs/23.2/lisp/nxml/nxml-maint /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-cmpct hides /usr/share/emacs/23.2/lisp/nxml/rng-cmpct /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-loc hides /usr/share/emacs/23.2/lisp/nxml/rng-loc /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-dt hides /usr/share/emacs/23.2/lisp/nxml/rng-dt /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-parse hides /usr/share/emacs/23.2/lisp/nxml/rng-parse /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-uri hides /usr/share/emacs/23.2/lisp/nxml/rng-uri /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-util hides /usr/share/emacs/23.2/lisp/nxml/rng-util /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-uchnm hides /usr/share/emacs/23.2/lisp/nxml/nxml-uchnm /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-ns hides /usr/share/emacs/23.2/lisp/nxml/nxml-ns /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-rap hides /usr/share/emacs/23.2/lisp/nxml/nxml-rap /home/tromey/.emacs.d/elpa/nxml-mode-20041004/xsd-regexp hides /usr/share/emacs/23.2/lisp/nxml/xsd-regexp /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-mode hides /usr/share/emacs/23.2/lisp/nxml/nxml-mode /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-enc hides /usr/share/emacs/23.2/lisp/nxml/nxml-enc /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-outln hides /usr/share/emacs/23.2/lisp/nxml/nxml-outln /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-xsd hides /usr/share/emacs/23.2/lisp/nxml/rng-xsd /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-nxml hides /usr/share/emacs/23.2/lisp/nxml/rng-nxml /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-maint hides /usr/share/emacs/23.2/lisp/nxml/rng-maint /home/tromey/.emacs.d/elpa/nxml-mode-20041004/xmltok hides /usr/share/emacs/23.2/lisp/nxml/xmltok /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-util hides /usr/share/emacs/23.2/lisp/nxml/nxml-util /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-parse hides /usr/share/emacs/23.2/lisp/nxml/nxml-parse /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-pttrn hides /usr/share/emacs/23.2/lisp/nxml/rng-pttrn /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-match hides /usr/share/emacs/23.2/lisp/nxml/rng-match /usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/23.2/lisp/net/sasl-cram /usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/23.2/lisp/net/hmac-def /usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/23.2/lisp/net/hmac-md5 /usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/23.2/lisp/net/sasl /usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/23.2/lisp/net/sasl-digest /usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/23.2/lisp/net/sasl-ntlm /usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/23.2/lisp/net/ntlm /home/tromey/.emacs.d/elpa/emms-3.0/tq hides /usr/share/emacs/23.2/lisp/emacs-lisp/tq Features: (shadow emacsbug net-utils vcard nroff-mode log-edit url-cache url-http tls url-gw url-auth pydoc-info-autoloads autoload tar-mode find-func asm-mode erc-dcc tabify man assoc log-view pcvs-util thai-util thai-word dired-aux m4-mode conf-mode gnus-topic sh-script executable compare-w gnus-dup apropos nnfolder starttls mailalias smtpmail rfc2368 iswitchb utf-7 info-look dictionary link connection cal-move autoconf autoconf-mode texinfo find-dired cus-start cus-load autorevert imenu ffap tcl smerge-mode vc-sccs vc-dir ewoc vc-rcs gnus-draft vc-annotate gdb-ui bindat json gud find-file make-mode grep warnings vc-svn python-21 python mule-util w3m-cookie w3m-bookmark w3m-tabmenu w3m-session gnus-fun idutils jimb-patch vc vc-dispatcher copyright edmacro kmacro vc-cvs goto-addr add-log diff-mode vc-git etags vc-bzr cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-mode view bbdb-hooks dabbrev newcomment bbdb-sc supercite regi mail-hist flow-fill erc-menu erc-join erc-ring erc-pcomplete pcomplete erc-track erc-match erc-button erc-fill erc-stamp erc-netsplit erc-spelling erc-truncate w3m-form w3m browse-url doc-view jka-compr image-mode w3m-hist w3m-fb w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util bbdb-gui gnus-cite smiley gnus-async gnus-bcklg gnus-ml disp-table parse-time auth-source byte-opt bytecomp byte-compile nnml nndraft nnmh bbdb-gnus bbdb-snarf mail-extr bbdb-com nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime dig nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message idna sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1 sha1-el hex-util hashcash gnus-win gnus gnus-ems nnheader gnus-util netrc mail-utils wid-edit multi-isearch gdb-shell compile ansi-color shell flyspell ispell eldoc emms-status emms-lastfm emms-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mm-util mail-prsvr mailcap emms-browser sort emms-playlist-sort emms-score emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics time-date emms-streams emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file dired emms-setup emms emms-compat gdb-shell-autoloads nxml-enc info weblogger-autoloads xml-rpc-autoloads package reporter cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs cal-menu easymenu calendar cal-loaddefs uniquify mouse-sel easy-mmode status cl cl-19 erc-services erc-networks erc-goodies erc erc-backend erc-compat format-spec thingatpt pp bbdb timezone ange-ftp regexp-opt comint ring server advice help-fns advice-preload u-vm-color vm-autoloads vm-vars vm-version bbdb-autoloads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) Tom From unknown Mon Aug 18 02:38:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8169: 23.2; wrong fontification in gdb-script Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Mar 2011 04:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tom Tromey Cc: 8169@debbugs.gnu.org Received: via spool by 8169-submit@debbugs.gnu.org id=B8169.129921416026110 (code B ref 8169); Fri, 04 Mar 2011 04:50:02 +0000 Received: (at 8169) by debbugs.gnu.org; 4 Mar 2011 04:49:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvMx6-0006n5-9K for submit@debbugs.gnu.org; Thu, 03 Mar 2011 23:49:20 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvMx3-0006ms-LU for 8169@debbugs.gnu.org; Thu, 03 Mar 2011 23:49:18 -0500 Received: from [207.96.179.97] (port=52876 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1PvMwy-0002Cl-6D; Thu, 03 Mar 2011 23:49:12 -0500 Received: by ceviche.home (Postfix, from userid 20848) id E98FC660D6; Thu, 3 Mar 2011 23:49:10 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Thu, 03 Mar 2011 23:49:10 -0500 In-Reply-To: (Tom Tromey's message of "Thu, 03 Mar 2011 14:03:26 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) >>>>> "Tom" == Tom Tromey writes: > Visit a file named .gdbinit and enter: > define something > echo hi > # a comment > end > Notice that "end" is incorrect given the comment face. > This happens due to some logic in gdb-script-syntax-propertize-function. > It overrides the comment-end syntax on the newline. But, this is > only really ok if the newline is actually part of a "document" command. Good point. The patch below fixes this case, I think. Stefan "can't commit right now" === modified file 'lisp/progmodes/gud.el' --- lisp/progmodes/gud.el 2011-01-25 20:26:05 +0000 +++ lisp/progmodes/gud.el 2011-03-04 04:47:29 +0000 @@ -3128,7 +3128,9 @@ ("^document\\s-.*\\(\n\\)" (1 "< b")) ("^end\\(\\>\\)" (1 (ignore - (unless (eq (match-beginning 0) (point-min)) + (when (and (> (match-beginning 0) (point-min)) + (eq 1 (nth 7 (save-excursion + (syntax-ppss (1- (match-beginning 0))))))) ;; We change the \n in front, which is more difficult, but results ;; in better highlighting. If the doc is empty, the single \n is ;; both the beginning and the end of the docstring, which can't be From unknown Mon Aug 18 02:38:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8169: 23.2; wrong fontification in gdb-script Resent-From: Tom Tromey Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Mar 2011 15:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 8169@debbugs.gnu.org Received: via spool by 8169-submit@debbugs.gnu.org id=B8169.129925303622288 (code B ref 8169); Fri, 04 Mar 2011 15:38:02 +0000 Received: (at 8169) by debbugs.gnu.org; 4 Mar 2011 15:37:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvX47-0005nQ-LC for submit@debbugs.gnu.org; Fri, 04 Mar 2011 10:37:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvX45-0005nD-5G for 8169@debbugs.gnu.org; Fri, 04 Mar 2011 10:37:14 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p24Fb7kM017505 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 4 Mar 2011 10:37:07 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p24Fb6Sx001549; Fri, 4 Mar 2011 10:37:06 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p24Fb5Dw005288; Fri, 4 Mar 2011 10:37:05 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id D333137967C; Fri, 4 Mar 2011 08:37:04 -0700 (MST) From: Tom Tromey References: X-Attribution: Tom Date: Fri, 04 Mar 2011 08:37:03 -0700 In-Reply-To: (Stefan Monnier's message of "Thu, 03 Mar 2011 23:49:10 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -9.0 (---------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.0 (---------) Stefan> Good point. The patch below fixes this case, I think. Thanks. I tried this and it works for the case I sent. However, I think it now fails on: document something this is some text end Now it gives "end" the string face. In fact, it doesn't seem to recognize the "end" at all any more, subsequent lines are also fontified as strings. Tom From unknown Mon Aug 18 02:38:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8169: 23.2; wrong fontification in gdb-script Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Mar 2011 20:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tom Tromey Cc: 8169@debbugs.gnu.org Received: via spool by 8169-submit@debbugs.gnu.org id=B8169.129944460713582 (code B ref 8169); Sun, 06 Mar 2011 20:51:02 +0000 Received: (at 8169) by debbugs.gnu.org; 6 Mar 2011 20:50:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PwKty-0003X1-Kp for submit@debbugs.gnu.org; Sun, 06 Mar 2011 15:50:06 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PwKtx-0003WX-B2 for 8169@debbugs.gnu.org; Sun, 06 Mar 2011 15:50:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAL+Cc03O+Lo//2dsb2JhbACmYHW9eYViBIUcj3E X-IronPort-AV: E=Sophos;i="4.62,272,1297054800"; d="scan'208";a="94720724" Received: from 206-248-186-63.dsl.teksavvy.com (HELO ceviche.home) ([206.248.186.63]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 06 Mar 2011 15:49:36 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 4683B660C9; Sun, 6 Mar 2011 15:49:36 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Sun, 06 Mar 2011 15:49:36 -0500 In-Reply-To: (Tom Tromey's message of "Fri, 04 Mar 2011 08:37:03 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > document something > this is some text > end > Now it gives "end" the string face. In fact, it doesn't seem to > recognize the "end" at all any more, subsequent lines are also fontified > as strings. Are you testing it in Emacs-23 maybe, where (nth 7 (syntax-ppss)) never return 1? Stefan From unknown Mon Aug 18 02:38:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tom Tromey Subject: bug#8169: closed (Re: bug#8169: 23.2; wrong fontification in gdb-script) Message-ID: References: X-Gnu-PR-Message: they-closed 8169 X-Gnu-PR-Package: emacs Reply-To: 8169@debbugs.gnu.org Date: Sun, 06 Mar 2011 20:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1299445142-14374-1" This is a multi-part message in MIME format... ------------=_1299445142-14374-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8169: 23.2; wrong fontification in gdb-script which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8169@debbugs.gnu.org. --=20 8169: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8169 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1299445142-14374-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8169-done) by debbugs.gnu.org; 6 Mar 2011 20:58:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PwL2J-0003jP-Tc for submit@debbugs.gnu.org; Sun, 06 Mar 2011 15:58:44 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PwL2H-0003jC-NA for 8169-done@debbugs.gnu.org; Sun, 06 Mar 2011 15:58:42 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAOqDc03O+Lo//2dsb2JhbACmYHW9eoViBIUcj3E X-IronPort-AV: E=Sophos;i="4.62,272,1297054800"; d="scan'208";a="94722415" Received: from 206-248-186-63.dsl.teksavvy.com (HELO ceviche.home) ([206.248.186.63]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 06 Mar 2011 15:58:36 -0500 Received: by ceviche.home (Postfix, from userid 20848) id DBD0D660C9; Sun, 6 Mar 2011 15:58:35 -0500 (EST) From: Stefan Monnier To: Tom Tromey Subject: Re: bug#8169: 23.2; wrong fontification in gdb-script Message-ID: References: Date: Sun, 06 Mar 2011 15:58:35 -0500 In-Reply-To: (Stefan Monnier's message of "Thu, 03 Mar 2011 23:49:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8169-done Cc: 8169-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) Version: 24.1 > Good point. The patch below fixes this case, I think. Installed, Stefan ------------=_1299445142-14374-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 21:03:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvFgb-0003VD-6e for submit@debbugs.gnu.org; Thu, 03 Mar 2011 16:03:49 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvFgT-0003Uu-KV for submit@debbugs.gnu.org; Thu, 03 Mar 2011 16:03:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvFgM-0000cm-Nd for submit@debbugs.gnu.org; Thu, 03 Mar 2011 16:03:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:35475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvFgM-0000ci-JW for submit@debbugs.gnu.org; Thu, 03 Mar 2011 16:03:34 -0500 Received: from [140.186.70.92] (port=38702 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvFgK-0002Tf-K1 for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 16:03:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvFgI-0000cJ-Fx for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 16:03:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvFgI-0000c6-2S for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 16:03:30 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p23L3SdM009677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 3 Mar 2011 16:03:28 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p23L3RW1025580; Thu, 3 Mar 2011 16:03:28 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p23L3R55027648; Thu, 3 Mar 2011 16:03:27 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id D805B3792F7; Thu, 3 Mar 2011 14:03:26 -0700 (MST) From: Tom Tromey To: bug-gnu-emacs@gnu.org Subject: 23.2; wrong fontification in gdb-script X-Attribution: Tom Date: Thu, 03 Mar 2011 14:03:26 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 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, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Visit a file named .gdbinit and enter: define something echo hi # a comment end Notice that "end" is incorrect given the comment face. This happens due to some logic in gdb-script-syntax-propertize-function. It overrides the comment-end syntax on the newline. But, this is only really ok if the newline is actually part of a "document" command. I looked at this a little but didn't see a simple way to fix it. In GNU Emacs 23.2.1 (i386-redhat-linux-gnu, GTK+ Version 2.20.1) of 2010-06-03 on x86-07.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.10802000 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'' 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.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Summary Minor modes in effect: compilation-in-progress: (gid) gnus-agent-mode: t diff-auto-refine-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-spelling-mode: t erc-truncate-mode: t shell-dirtrack-mode: t erc-status-mode: t erc-services-mode: t erc-networks-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: a k e s SPC t h e SPC p r o m p t SPC s h o w SPC u p SPC i m m e d i a t e l y . SPC SPC b u t SPC I S-SPC d SPC n o o SPC n o t SPC r e a l l y SPC u n d e r s t a n d SPC i t . SPC SPC a n d SPC M-b M-b M-b M-b M-b M-b M-b M-b M-b M-f SPC f o r SPC " r u n " C-e I SPC C-a C-k C-c C-n C-r p a l C-r v M-> C-r p e c o s M-> C-y C-l s t i l l t h e SPC C - c SPC b e h a v i o r SPC i s SPC a l s o SPC s t i l l SPC u p C-t z z l i n g - l m e c h e c k SPC d o e s SPC s o m e SPC C-a C-k n o t SPC r e a l l y , SPC b u t SPC C-y c a n SPC d o SPC s o m e SPC o f SPC i t C-a C-k M-v C-l C-z o M-v C-u C-u C-p C-n C-n p M-g M-g M-g M-g C-u C-p = M-> C-p C-p SPC = C-l C-z n M-v M-v M-> C-x b C-x b C-z o M-v C-l M-x r e p o r t - e m b Recent messages: Mark set Mark saved where search started Mark set [3 times] Opening nntp server on news.gmane.org...done Retrieving newsgroup: nntp+news.gmane.org:gmane.comp.gdb.patches... Fetching headers for nntp+news.gmane.org:gmane.comp.gdb.patches...done Generating summary...done Mark set call-interactively: Beginning of buffer Mark set Load-path shadows: /home/tromey/lib/lisp/rpm-spec-mode hides /usr/share/emacs/site-lisp/rpm-spec-mode /usr/share/emacs/site-lisp/flim/sha1 hides /usr/share/emacs/23.2/lisp/sha1 /usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/23.2/lisp/md4 /usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/23.2/lisp/hex-util /home/tromey/.emacs.d/elpa/css-mode-1.0/css-mode hides /usr/share/emacs/23.2/lisp/textmodes/css-mode /home/tromey/.emacs.d/elpa/ruby-mode-1.0/ruby-mode hides /usr/share/emacs/23.2/lisp/progmodes/ruby-mode /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-glyph hides /usr/share/emacs/23.2/lisp/nxml/nxml-glyph /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-valid hides /usr/share/emacs/23.2/lisp/nxml/rng-valid /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-maint hides /usr/share/emacs/23.2/lisp/nxml/nxml-maint /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-cmpct hides /usr/share/emacs/23.2/lisp/nxml/rng-cmpct /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-loc hides /usr/share/emacs/23.2/lisp/nxml/rng-loc /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-dt hides /usr/share/emacs/23.2/lisp/nxml/rng-dt /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-parse hides /usr/share/emacs/23.2/lisp/nxml/rng-parse /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-uri hides /usr/share/emacs/23.2/lisp/nxml/rng-uri /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-util hides /usr/share/emacs/23.2/lisp/nxml/rng-util /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-uchnm hides /usr/share/emacs/23.2/lisp/nxml/nxml-uchnm /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-ns hides /usr/share/emacs/23.2/lisp/nxml/nxml-ns /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-rap hides /usr/share/emacs/23.2/lisp/nxml/nxml-rap /home/tromey/.emacs.d/elpa/nxml-mode-20041004/xsd-regexp hides /usr/share/emacs/23.2/lisp/nxml/xsd-regexp /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-mode hides /usr/share/emacs/23.2/lisp/nxml/nxml-mode /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-enc hides /usr/share/emacs/23.2/lisp/nxml/nxml-enc /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-outln hides /usr/share/emacs/23.2/lisp/nxml/nxml-outln /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-xsd hides /usr/share/emacs/23.2/lisp/nxml/rng-xsd /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-nxml hides /usr/share/emacs/23.2/lisp/nxml/rng-nxml /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-maint hides /usr/share/emacs/23.2/lisp/nxml/rng-maint /home/tromey/.emacs.d/elpa/nxml-mode-20041004/xmltok hides /usr/share/emacs/23.2/lisp/nxml/xmltok /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-util hides /usr/share/emacs/23.2/lisp/nxml/nxml-util /home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-parse hides /usr/share/emacs/23.2/lisp/nxml/nxml-parse /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-pttrn hides /usr/share/emacs/23.2/lisp/nxml/rng-pttrn /home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-match hides /usr/share/emacs/23.2/lisp/nxml/rng-match /usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/23.2/lisp/net/sasl-cram /usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/23.2/lisp/net/hmac-def /usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/23.2/lisp/net/hmac-md5 /usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/23.2/lisp/net/sasl /usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/23.2/lisp/net/sasl-digest /usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/23.2/lisp/net/sasl-ntlm /usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/23.2/lisp/net/ntlm /home/tromey/.emacs.d/elpa/emms-3.0/tq hides /usr/share/emacs/23.2/lisp/emacs-lisp/tq Features: (shadow emacsbug net-utils vcard nroff-mode log-edit url-cache url-http tls url-gw url-auth pydoc-info-autoloads autoload tar-mode find-func asm-mode erc-dcc tabify man assoc log-view pcvs-util thai-util thai-word dired-aux m4-mode conf-mode gnus-topic sh-script executable compare-w gnus-dup apropos nnfolder starttls mailalias smtpmail rfc2368 iswitchb utf-7 info-look dictionary link connection cal-move autoconf autoconf-mode texinfo find-dired cus-start cus-load autorevert imenu ffap tcl smerge-mode vc-sccs vc-dir ewoc vc-rcs gnus-draft vc-annotate gdb-ui bindat json gud find-file make-mode grep warnings vc-svn python-21 python mule-util w3m-cookie w3m-bookmark w3m-tabmenu w3m-session gnus-fun idutils jimb-patch vc vc-dispatcher copyright edmacro kmacro vc-cvs goto-addr add-log diff-mode vc-git etags vc-bzr cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-mode view bbdb-hooks dabbrev newcomment bbdb-sc supercite regi mail-hist flow-fill erc-menu erc-join erc-ring erc-pcomplete pcomplete erc-track erc-match erc-button erc-fill erc-stamp erc-netsplit erc-spelling erc-truncate w3m-form w3m browse-url doc-view jka-compr image-mode w3m-hist w3m-fb w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util bbdb-gui gnus-cite smiley gnus-async gnus-bcklg gnus-ml disp-table parse-time auth-source byte-opt bytecomp byte-compile nnml nndraft nnmh bbdb-gnus bbdb-snarf mail-extr bbdb-com nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime dig nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message idna sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1 sha1-el hex-util hashcash gnus-win gnus gnus-ems nnheader gnus-util netrc mail-utils wid-edit multi-isearch gdb-shell compile ansi-color shell flyspell ispell eldoc emms-status emms-lastfm emms-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mm-util mail-prsvr mailcap emms-browser sort emms-playlist-sort emms-score emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics time-date emms-streams emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file dired emms-setup emms emms-compat gdb-shell-autoloads nxml-enc info weblogger-autoloads xml-rpc-autoloads package reporter cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs cal-menu easymenu calendar cal-loaddefs uniquify mouse-sel easy-mmode status cl cl-19 erc-services erc-networks erc-goodies erc erc-backend erc-compat format-spec thingatpt pp bbdb timezone ange-ftp regexp-opt comint ring server advice help-fns advice-preload u-vm-color vm-autoloads vm-vars vm-version bbdb-autoloads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) Tom ------------=_1299445142-14374-1-- From unknown Mon Aug 18 02:38:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8169: 23.2; wrong fontification in gdb-script Resent-From: Tom Tromey Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Mar 2011 14:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 8169@debbugs.gnu.org Received: via spool by 8169-submit@debbugs.gnu.org id=B8169.129950907522415 (code B ref 8169); Mon, 07 Mar 2011 14:45:02 +0000 Received: (at 8169) by debbugs.gnu.org; 7 Mar 2011 14:44:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pwbfm-0005pT-Ms for submit@debbugs.gnu.org; Mon, 07 Mar 2011 09:44:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pwbfk-0005pE-1V for 8169@debbugs.gnu.org; Mon, 07 Mar 2011 09:44:33 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p27EiPG8013513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 7 Mar 2011 09:44:25 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p27EiOut002129; Mon, 7 Mar 2011 09:44:24 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p27EiNBD016295; Mon, 7 Mar 2011 09:44:23 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 17765379579; Mon, 7 Mar 2011 07:44:22 -0700 (MST) From: Tom Tromey References: X-Attribution: Tom Date: Mon, 07 Mar 2011 07:44:22 -0700 In-Reply-To: (Stefan Monnier's message of "Sun, 06 Mar 2011 15:49:36 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -9.0 (---------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.0 (---------) Stefan> Are you testing it in Emacs-23 maybe, where (nth 7 (syntax-ppss)) never Stefan> return 1? It was some kind of operator error, since I updated and tried your latest, and it works. Tom