From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: still seeing semi-regular lockups Date: Sun, 06 Jul 2014 23:31:23 +0200 Message-ID: <87lhs6xjh0.fsf@nicolasgoaziou.fr> References: <87siocrbyb.fsf@ericabrahamsen.net> <87k39hdf2o.fsf@tanger.home> <87ppj86elt.fsf@ericabrahamsen.net> <874n0kde2y.fsf@tanger.home> <87bnus4s5n.fsf@ericabrahamsen.net> <87egye7kx3.fsf@nicolasgoaziou.fr> <87a992mleu.fsf@ericabrahamsen.net> <87ha3425s3.fsf@ericabrahamsen.net> <87r428v4hn.fsf@ericabrahamsen.net> <87y4wdwmsy.fsf@nicolasgoaziou.fr> <87wqbw9ol5.fsf@nicolasgoaziou.fr> <87a98n3q0q.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3u1N-0001qE-HY for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 17:31:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3u1F-0006qb-L4 for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 17:30:53 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:52372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3u1F-0006qU-Ab for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 17:30:45 -0400 In-Reply-To: (York Zhao's message of "Sun, 6 Jul 2014 17:05:39 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: York Zhao Cc: Eric Abrahamsen , emacs-orgmode Hello, York Zhao writes: > The extreme slowness happened again just know. When this happened, > `org-end-of-line' command took forever until "C-g". M-x > org-element-cache-reset > worked this time, i.e., after running `org-element-cache-reset' command > `org-end-of-line' became fast again. > > I was using commit "ca6ecf9", and the buffer was 38xx lines 168K in > size. This sounds more like an infloop. Could you send me the document you were working on[fn:1], in private, and describe what you were doing before it froze? Regards, [fn:1] or at least an equivalent file structure wise, calling the following function in that document: (defun ngz-scramble-contents () (interactive) (let ((tree (org-element-parse-buffer))) (org-element-map tree '(code comment comment-block example-block fixed-width keyword link node-property plain-text verbatim) (lambda (obj) (case (org-element-type obj) ((code comment comment-block example-block fixed-width keyword node-property verbatim) (let ((value (org-element-property :value obj))) (org-element-put-property obj :value (replace-regexp-in-string "[[:alnum:]]" "x" value)))) (link (unless (string= (org-element-property :type obj) "radio") (org-element-put-property obj :raw-link "http://orgmode.org"))) (plain-text (org-element-set-element obj (replace-regexp-in-string "[[:alnum:]]" "x" obj))))) nil nil nil t) (let ((buffer (get-buffer-create "*Scrambled text*"))) (with-current-buffer buffer (insert (org-element-interpret-data tree)) (goto-char (point-min))) (switch-to-buffer buffer)))) If you can reproduce the problem in this new buffer, that's fine too. -- Nicolas Goaziou