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: Sat, 23 Feb 2013 10:07:22 +0100 Message-ID: <8738wns8j9.fsf@gmail.com> References: <87mwuzkp8i.fsf@gmail.com> <5127BF5D.2060402@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1361610465 7650 80.91.229.3 (23 Feb 2013 09:07:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2013 09:07:45 +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 10:08:08 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 1U9B5S-0005GO-UT for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Feb 2013 10:08:07 +0100 Original-Received: from localhost ([::1]:43078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9B58-0003ws-Bn for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Feb 2013 04:07:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9B4x-0003wY-FH for help-gnu-emacs@gnu.org; Sat, 23 Feb 2013 04:07:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9B4v-0003xY-Vu for help-gnu-emacs@gnu.org; Sat, 23 Feb 2013 04:07:35 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:44602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9B4v-0003xP-PC for help-gnu-emacs@gnu.org; Sat, 23 Feb 2013 04:07:33 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U9B5E-0004x3-Tx for help-gnu-emacs@gnu.org; Sat, 23 Feb 2013 10:07:52 +0100 Original-Received: from e178189148.adsl.alicedsl.de ([85.178.189.148]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Feb 2013 10:07:52 +0100 Original-Received: from tjolitz by e178189148.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Feb 2013 10:07:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178189148.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:iEkDAWNqkc5iQHqD349lCnwnqyk= 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:89235 Archived-At: 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. -- cheers, Thorsten