From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Subject: Re: [bug]org-mode with flyspell-mode freezes emacs Date: Thu, 12 Oct 2006 17:57:52 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GY3wa-0001bk-E6 for emacs-orgmode@gnu.org; Thu, 12 Oct 2006 13:02:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GY3wY-0001ah-L3 for emacs-orgmode@gnu.org; Thu, 12 Oct 2006 13:02:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GY3wY-0001aW-CL for emacs-orgmode@gnu.org; Thu, 12 Oct 2006 13:02:02 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GY44o-0004Eu-41 for emacs-orgmode@gnu.org; Thu, 12 Oct 2006 13:10:34 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GY3vJ-0006Oo-Ep for emacs-orgmode@gnu.org; Thu, 12 Oct 2006 19:00:45 +0200 Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Oct 2006 19:00:45 +0200 Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Oct 2006 19:00:45 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: emacs-devel@gnu.org --=-=-= Here is a bug report and feedback from org-mode author Carsten Dominik. ------------------ On Thu, 12/10/06 03:10 +0100, Leo wrote: Dear all, Starting emacs with "emacs -q -l test test.org". Then press "C-x ]". Emacs will freeze. "test" and "test.org" are attached. Tested on GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2006-10-04 running under fedora core 5. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=test Content-Description: test (setq inhibit-startup-message t) (add-hook 'text-mode-hook (lambda nil (flyspell-mode t))) (add-to-list 'auto-mode-alist '("\\.org" . org-mode)) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=test.org Content-Description: test.org dddd [[mailto:tt308@cat.ac.uk][TT308@cat.ac.uk]] --=-=-= On Thu Oct 12 10:51:51 2006 +0100, Carsten Dominik wrote: I can reproduce this under Emacs 22, but I have not been able to figure out what is causing this, because Emacs hangs so that it cannot even be stopped with C-g. It seems to be caused by links which contain hidden and intangible text. Don't really know where to go from here. - Carsten On Thu Oct 12 17:29:46 2006 +0100, Carsten Dominik wrote: > Do you mind if I forward my original bug report and your comments in > this email to emacs-devel list? > Not at all. Additional info: This seems to happen when the cursor gets into the white space after a link. Emacs gets stuck in accept-process-output' from the ispell process. That call is wrapped into with-local-quit, which may have to do with the fact that this cannot be exited with keyboard-quit. The work ispell is supposed to be looking up is "uk", and the word is extracted from the buffer without text properties, so the fact that I am using intangible and invisible text properties should not play a role with this. In fact, I have no idea what might be causing this, but I don't see how org-mode could be the true reason. Here is the backtrace from just before the hangup. When I press "d", emacs will get stuck. Debugger entered--beginning evaluation of function call form: * (accept-process-output ispell-process) * (progn (accept-process-output ispell-process) (not (string= "" ...))) * (while (progn (accept-process-output ispell-process) (not ...))) * (let ((inhibit-quit nil)) (while (progn ... ...))) * (condition-case nil (let (...) (while ...)) (quit (setq quit-flag t) (eval ...))) * (with-local-quit (while (progn ... ...))) * (cond ((and ... flyspell-mark-duplications-flag ...) (flyspell-highlight-incorrect-region start end ...) nil) ((and ... ... ...) flyspell-word-cache-result) ((and ... ...) (flyspell-unhighlight-at start) (if ... ...) t) (t (setq flyspell-word-cache-start start) (setq flyspell-word-cache-end end) (setq flyspell-word-cache-word word) (ispell-send-string "%\n") (ispell-send-string ...) (set-process-query-on-exit-flag ispell-process nil) (with-local-quit ...) (setq ispell-filter ...) (or ispell-filter ...) (if ... ...) (let ... ... ... res))) * (progn (setq start (car ...) end (car ...) word (car flyspell-word)) (cond (... ... nil) (... flyspell-word-cache-result) (... ... ... t) (t ... ... ... ... ... ... ... ... ... ... ...))) * (if (or (eq flyspell-word nil) (and ... ...)) t (progn (setq start ... end ... word ...) (cond ... ... ... ...))) * (let* ((cursor-location ...) (flyspell-word ...) start end poss word ispell-filter) (if (or ... ...) t (progn ... ...))) * (save-excursion (flyspell-accept-buffer-local-defs) (let* (... ... start end poss word ispell-filter) (if ... t ...))) * flyspell-word() * (progn (quote (flyspell-debug-signal-word-checked)) (flyspell-word) (setq flyspell-pre-pre-buffer (current-buffer)) (setq flyspell-pre-pre-point (point))) * (if (flyspell-check-word-p) (progn (quote ...) (flyspell-word) (setq flyspell-pre-pre-buffer ...) (setq flyspell-pre-pre-point ...)) (progn (setq flyspell-pre-pre-buffer nil) (setq flyspell-pre-pre-point nil) (if ... ...))) * (let ((command this-command) deactivate-mark) (if (flyspell-check-pre-word-p) (with-current-buffer flyspell-pre-buffer ... ...)) (if (flyspell-check-word-p) (progn ... ... ... ...) (progn ... ... ...)) (while (and ... ...) (let ... ... ...)) (setq flyspell-previous-command command)) * flyspell-post-command-hook() * run-hooks(post-command-hook) -- Leo --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--