From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: Different behaviour while debugging? Date: Sat, 23 Feb 2013 12:35:07 +0100 Message-ID: <5128A96B.7050301@easy-emacs.de> References: <87mwuzkp8i.fsf@gmail.com> <5127BF5D.2060402@easy-emacs.de> <8738wns8j9.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1361619307 12102 80.91.229.3 (23 Feb 2013 11:35:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2013 11:35:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 23 12:35:28 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 1U9DNy-0006Ub-4C for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Feb 2013 12:35:22 +0100 Original-Received: from localhost ([::1]:59585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9DNd-0002gA-Er for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Feb 2013 06:35:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9DNT-0002fQ-11 for help-gnu-emacs@gnu.org; Sat, 23 Feb 2013 06:34:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9DNO-0003ru-14 for help-gnu-emacs@gnu.org; Sat, 23 Feb 2013 06:34:50 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:63537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9DNN-0003rZ-Mm for help-gnu-emacs@gnu.org; Sat, 23 Feb 2013 06:34:45 -0500 Original-Received: from [192.168.178.21] (brln-4dbc70f2.pool.mediaWays.net [77.188.112.242]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0Mgpo8-1UVIay2NOq-00MHab; Sat, 23 Feb 2013 12:34:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 In-Reply-To: <8738wns8j9.fsf@gmail.com> X-Provags-ID: V02:K0:R1hw5MciX0Sta0ZK7VG2YfwyXrV2HLyEHnfqvcE1E+i ln/T1R4H1DVqfE0WZvMBKQ6oSaaY50PDx0BcVPuvbfcBFCUQgQ wqegAP2yW+Uoj5hEDIO3sQDIYHCO40VhG5axlg4TwF0vwpwCQo zErsT0xdpsiKxdepygpqnsFbwVUcjNUSTrTAv0PoYSgfVUNjik iihjimrtDepL32wG+dP/DarM49zmg9AswBZ1h6Ln0vgEtkga17 J+SPJXtsZVsgji4dgShHFcNzq0OI5Uy7cnYAco4X3pYZ1ZIIRP O6dQ5SK4Gt/R85224FH9cG1pH5ufbkzSHkomcjmB4AZEaECYcg ZPFxe7RIrCSKPL+q0jKFuodhNJo3aWmQxPzD7v29Z X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.8 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:89238 Archived-At: Am 23.02.2013 10:07, schrieb Thorsten Jolitz: > Andreas Röhler writes: > >>> I have the very strange case that a program - in some special situation >>> - does not work as expected, but when I instrument the relevant >>> function(s) for edebug and single-step through them, everythings works >>> as expected and the output is fine. >> >> IMHO that's possible, for example if some function expects faces, which are only there if >> fontification is done > > At the surface of my application program, there are no faces involved, > its about recognizing if there is a comment on a line with > 'comment-on-line-p', which calls 'comment-search-forward', which > searches for 'comment-start-skip'. > > Since, when in html-mode, the following condition-case (inside a 'cond > structure) is never entered in normal execution but is correctly entered > when (e)debugging, I would guess the 'comment-on-line-p' makes the > difference. > > ,--------------------------------------------------- > | ((and > | (save-excursion > | (not (eq (comment-on-line-p) (point-at-bol)))) > | last-line-comment-p) ...) > `--------------------------------------------------- > > And, actually, if I edebug 'comment-search-forward', things work as > expected, just like when I edebug my own function that contains the > above condition-case. > >> try some (sit-for) then > > ok - thanks for the tip. > Maybe let's have a look at definitions of comment-on-line-p point-at-bol