From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Different behaviour while debugging? Date: Wed, 20 Feb 2013 17:31:40 +0100 Message-ID: <87ehgbkkur.fsf@gmail.com> References: <87mwuzkp8i.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361377932 29951 80.91.229.3 (20 Feb 2013 16:32:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 16:32:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 17:32:33 2013 Return-path: Envelope-to: geh-help-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 1U8Cau-0000Ri-7s for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 17:32:32 +0100 Original-Received: from localhost ([::1]:53337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8CaZ-0005uQ-Qj for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 11:32:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8CaN-0005rb-TE for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 11:32:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8CaH-0005ig-KB for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 11:31:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8CaH-0005iH-EG for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 11:31:53 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8CaZ-0000F7-Gy for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 17:32:11 +0100 Original-Received: from g231224144.adsl.alicedsl.de ([92.231.224.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Feb 2013 17:32:11 +0100 Original-Received: from tjolitz by g231224144.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Feb 2013 17:32:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231224144.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:gPMIso2f6Ajr67zRC66GxhJ6/7k= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89190 Archived-At: Stefan Monnier writes: >> but inside the 'cond function in the while loop, the out-commented lines >> ("comline") are not recognized when run normally > > My crystal ball is very cloudy but it seems like it's trying to tell me > that single-stepping via edebug causes the file's content to be > displayed before you run the code, and displaying this content causes it > to be font-locked, which ends up adding some syntax-table properties > which make those comments recognized as such. that sounds quite reasonable to me, thank you, might 'comment-start', 'comment-end' and 'comment-padding' be among such syntax-table properties? it works as expected with emacs lisp, picolisp and latex, but not in html-mode (only mode among these that uses 'comment-start' *and* 'comment-end'), so maybe 'comment-end' is involved in the problem. Is this a mistake of my program not to display the content before running the code? With which elisp-trickery could I always enforce to display the content first? Or is this a problem with Emacs, and my program should not care about these things? -- cheers, Thorsten