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:50:59 +0100 Message-ID: <87a9qzkjyk.fsf@gmail.com> References: <87mwuzkp8i.fsf@gmail.com> <4DC3DFD1AA9D4DF69F6EB64B989F9A11@us.oracle.com> <87ip5nkmzk.fsf@gmail.com> <4CF1CAFF04E64A33B2ABC7C739B9EA53@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361379100 10149 80.91.229.3 (20 Feb 2013 16:51:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 16:51:40 +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:52:03 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 1U8Ctl-0004k5-Ke for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 17:52:01 +0100 Original-Received: from localhost ([::1]:39498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8CtR-00072b-F4 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 11:51:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8CtC-0006lI-CX for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 11:51:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8Ct5-0003uv-56 for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 11:51:26 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:42778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Ct4-0003uf-T4 for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 11:51:19 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8CtL-0004Ou-0I for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 17:51:35 +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:51:34 +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:51:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 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:UUPaPWhLgqD8R9WoWSOIp/gX4yA= 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:89191 Archived-At: "Drew Adams" writes: >> I inserted 'message calls in every condition-case of 'cond, and the >> *Messages* buffer showed that the correct condition-cases are >> simply not entered when run in normal mode, but are entered when in >> debugging mode. >> >> I tried `M-x debug-on-entry', and just like with edebug, everything >> works fine as expected. > > Yeah, it happens. Sorry, I don't have a great suggestion to make. Try somehow > to narrow the problem down to a smaller code segment, perhaps. > [...] > Perhaps someone else has a good suggestion. Stefan's seems like a good place to > start. Thanks a lot for your suggestions, I think they are generally very useful. In this case maybe the problem is related to some internal Emacs procedures that I'm simply not aware of (like the order of content display and code execution) and that don't show up at the surface of my application code. Maybe a call to some kind of 'flush-buffer-content' function (I could not find one with 'C-h f') at the right moment would solve the problem? -- cheers, Thorsten