From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: "Bad" interaction between flyspell and org-mode with latest Emacs Date: Thu, 26 Apr 2012 18:34:27 +0900 Message-ID: <20120426093427.GB1360@smoon> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNL5z-0007x4-HM for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 05:34:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNL5t-00063u-W0 for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 05:34:39 -0400 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:51017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNL5t-0005zb-LG for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 05:34:33 -0400 Received: by lagz14 with SMTP id z14so913252lag.0 for ; Thu, 26 Apr 2012 02:34:30 -0700 (PDT) Content-Disposition: inline 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: Emacs Org Mode Hello, #+TITLE: Example with org-mode and flyspell on. #+AUTHOR: Vladimir Lomov * Org-mode src blocks and flyspell I faced with strange problem with Emacs and org-mode. In my real example I use src blocks and run =C-c '= to edit them in native mode (shell). If I enter into native mode, put new line and immediately run =C-c '= to return to org document Emacs hangs and consume all available memory (RAM and SWAP). Curiously that such behavior see only with revno 108012. In echo area I see message: #+BEGIN_QUOTE Error in post-command-hook (flyspell-post-command-hook): (error "Marker does not point anywhere") #+END_QUOTE This is extract from my document: #+BEGIN_SRC sh :exports code _num=${1:=_num} _num=$(( _num%5 )) #+END_SRC I enter into block, run =C-c '=, add new line between lines and run immediately =C-c '= again. If I open the file again in Emacs and run =M-x flyspell-mode= (in echo area I see 'flyspell disable') and do the same — I again get hang and memory consumption. If I commented the line in mine .emacs file: (add-hook 'org-mode-hook 'flyspell-mode) and tried again — all works fine. Is this known behavior or new "bug"? ** Info Emacs: build from BZR (rev. 108012+) vs GTK3; org-mode: packaged from git and installed in my system (Archlinux). P.S. I reported this here because don't know how to trigger similar behavior without org-mode. --- WBR, Vladimir Lomov -- If you notice that a person is deceiving you, they must not be deceiving you very well.