From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Niessen Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode Subject: bug#16832: Emacs goes crazy when deleting lines Date: Fri, 14 Mar 2014 17:00:54 +0100 Organization: My Googlest Message-ID: <861ty4ojm1.fsf@somewhere.org> References: <86d2igl9x3.fsf@somewhere.org> <861tys93qy.fsf@somewhere.org> <86eh2r4ipj.fsf@somewhere.org> <86bnxugmkv.fsf@somewhere.org> <83txbly9xq.fsf@gnu.org> <86y50xirtv.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394812930 14777 80.91.229.3 (14 Mar 2014 16:02:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2014 16:02:10 +0000 (UTC) Cc: emacs-orgmode , 16832-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Mar 14 17:02:20 2014 Return-path: Envelope-to: geb-bug-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 1WOUYq-0005RF-VE for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Mar 2014 17:02:17 +0100 Original-Received: from localhost ([::1]:45630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOUYp-0000sm-SC for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Mar 2014 12:02:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOUYh-0000jE-4i for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 14 Mar 2014 12:02:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOUYc-0003Pq-Dl for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 14 Mar 2014 12:02:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOUYc-0003Pl-B3 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 14 Mar 2014 12:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WOUYb-0006Qe-JI for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 14 Mar 2014 12:02:01 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org In-Reply-To: <86d2igl9x3.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org> Resent-From: Fabrice Niessen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Fri, 14 Mar 2014 16:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 16832 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16832-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B16832.139481290424673 (code B ref 16832); Fri, 14 Mar 2014 16:02:01 +0000 Original-Received: (at 16832) by debbugs.gnu.org; 14 Mar 2014 16:01:44 +0000 Original-Received: from localhost ([127.0.0.1]:36969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WOUYJ-0006Ps-Mc for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Fri, 14 Mar 2014 12:01:44 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:65525 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WOUYG-0006Ph-R0 for 16832-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Fri, 14 Mar 2014 12:01:41 -0400 Original-Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPSA id 6C7B750076D; Fri, 14 Mar 2014 17:01:39 +0100 (CET) X-Url: http://www.MyGooglest.com/fni X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:86860 gmane.emacs.orgmode:83512 Archived-At: Eli Zaretskii wrote: >> From: "Fabrice Niessen" >> Cc: 16832-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org >> Date: Wed, 26 Feb 2014 20:42:20 +0100 >> >> Eli Zaretskii wrote: >> >> From: "Fabrice Niessen" >> >> Cc: 16832-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org >> >> Date: Wed, 26 Feb 2014 12:06:24 +0100 >> >> >> >> > Then try F12 (if you are on XP), or try attaching a debugger and >> >> > getting a C and Lisp backtrace. >> >> >> >> Hope this helps: >> > >> > Thanks. Without a Lisp-level backtrace, there's not enough useful >> > info here. >> >> Is there something I can do to get it in such a debugger session? > > Probably, but I don't know what to suggest. I don't understand the > error messages that you get from GDB, this usually happens when one > tries to attach a debugger to a program that is already being > debugged, which seems to be not the case here. Weird. > >> > Perhaps finding the minimal set of customizations that reproduces the >> > issue would lead faster to the solution. >> >> So you mean that the backtrace, with saveplace calls, does not lead to >> him as the culprit? > > These are not saveplace calls, this is Emacs searching for a string > that includes "saveplace.elc" and "save-place-alist" as substrings. I made a big progress on this one. I realized that Emacs did not into an infloop, but simply gave me back control after a very long time (more than 2 mins). Good news #1. I thought at using the profiler of Emacs 24, and it gives meaningful results. Good news #2. Here they are: --8<---------------cut here---------------start------------->8--- - flyspell-post-command-hook 3271 98% - apply 3271 98% - ad-Advice-flyspell-post-command-hook 3271 98% - # 3271 98% - byte-code 3271 98% - flyspell-word 3271 98% - org-mode-flyspell-verify 3246 97% - if 3246 97% - let* 3246 97% - prog1 3053 91% - catch 3053 91% - while 3053 91% - if 3053 91% - progn 3053 91% - setq 3053 91% - org-element--get-next-object-candidates 3053 91% - delq 3053 91% - if 3053 91% - mapcar 3053 91% - # 3053 91% - funcall 3053 91% - org-element-inline-babel-call-successor 2873 86% - save-excursion 2873 86% if 2873 86% + org-element-latex-or-entity-successor 81 2% + org-element-link-successor 35 1% + org-element-line-break-successor 19 0% + org-element-inline-src-block-successor 9 0% + org-element-footnote-reference-successor 5 0% + org-element-macro-successor 5 0% + org-element-statistics-cookie-successor 5 0% + org-element-timestamp-successor 5 0% + org-element-export-snippet-successor 4 0% + org-element-radio-target-successor 4 0% + org-element-target-successor 4 0% + org-element-sub/superscript-successor 3 0% + org-element-text-markup-successor 1 0% + org-element-at-point 193 5% + flyspell-word-search-forward 15 0% + redisplay_internal (C function) 28 0% + ... 27 0% --8<---------------cut here---------------end--------------->8--- Though, I don't understand yet why Flyspell seems to be a problem in Org mode buffers, and not in Text mode buffers: as you can see in the video on http://screencast.com/t/UiihFfPk, 1. Text mode + all my config (enabling Flyspell by default) is OK, (from 0:07 to 0:14, then undoing the changes) 2. Org mode + all my config (enabling Flyspell by default) is NOT OK. (from 0:40, blocking at 0:49, giving control back at 3:15) Best regards, Fabrice PS- Org-mode version 8.2.5h (release_8.2.5h-733-gd55438)