From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: leo Newsgroups: gmane.emacs.help Subject: Re: Hang with markdown-mode Date: Mon, 25 Nov 2013 23:53:04 +1100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385384014 15685 80.91.229.3 (25 Nov 2013 12:53:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 12:53:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 25 13:53:40 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 1VkvfX-0006Nv-Dp for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 13:53:39 +0100 Original-Received: from localhost ([::1]:52257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkvfX-0004oo-4C for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 07:53:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkvfG-0004nq-3h for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 07:53:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkvfB-0003IM-2u for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 07:53:22 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkvfA-0003IH-Pn for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 07:53:17 -0500 Original-Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 259CB2113C; Mon, 25 Nov 2013 07:53:16 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 25 Nov 2013 07:53:16 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=letterboxes.org; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=mesmtp; bh=LfJ/OixI0lgPMUDAG/81NxesVk0=; b=4o5TAndnNWAdfSW7iIAtj/gjHElY +kmUp9T8B1bYBK0Fnsd/0weOKbtAiYbiJp5krsuCHgk0iZqUix4MkgnUsDO4P4+b U+LIZOzWV57WVC5AUJzNSuNIkV2jvp6YtblOWzHadFprKxTu10q6D2vn+f68wDWh 2mUh71XbC8HvnBg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id :references:to; s=smtpout; bh=LfJ/OixI0lgPMUDAG/81NxesVk0=; b=HJ DVCc1BZFb0ZlJ2D2aBB6Y79Vfo43inwc2fw22RNjr+9UAIew0bJxaDGg0P65Ot90 D85g5WC2XjnO03rHVUbqywIkOroCoH3OAeBQ/9/gqpuEVFhdF+bXO74yX3tQ1oL9 jKSTgPrsxcBH9KL0QDKM4g1Z9jAWkASQX+L1ylRu4= X-Sasl-enc: bbgnMBcaLB1S2DrzWG1eShKuTFGtIuKnJga56uIeWslE 1385383995 Original-Received: from [172.20.10.4] (unknown [1.146.169.186]) by mail.messagingengine.com (Postfix) with ESMTPA id 0FD52C00E84; Mon, 25 Nov 2013 07:53:13 -0500 (EST) In-Reply-To: X-Mailer: Apple Mail (2.1822) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.25 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:94608 Archived-At: Still happens in 2.0. I=92m sure it=92s a bug, but I=92m interested in a suitable workaround: = Where should fortifying normally be done: In the = window-configuration-change-hook or elsewhere? Thanks, Leo On 25 Nov 2013, at 10:36 pm, Tim Visher wrote: > That sounds like a bug. You could report it to M. Blevins > (http://jblevins.org/projects/markdown-mode/markdown-mode.el), but be > advised that the latest version available on his site is 2.0 so you > might want to try upgrading before you report the bug. >=20 > On Mon, Nov 25, 2013 at 1:52 AM, Leo = wrote: >> The problem >> ----------- >>=20 >> I use markdown-mode 1.9 in emacs 24.3.1 and I get a consistent hang = when I do the following: >>=20 >> 1. Start emacs >> 2. Create a new file, say, with name changetest.txt. >> 3. Put (or keep) it in markdown-mode. >> 4. Write some text in changetest.txt and save the file to disc. >> 5. Switch to another buffer, so that that buffer changetest.txt is = not >> visible. >> 6. Open the file changetest.txt in another editor. >> 7. Change and save the content in this other editor. >> 8. Go back to emacs and switch buffer to changetest.txt. >>=20 >> You will get the message >>=20 >> changetest.txt changed on disk; really edit the buffer? (y, n, r = or C-h) >>=20 >> But then emacs will hang; no input will get you through the question = prompt and keyboard-quit does nothing, so you have to kill emacs. >>=20 >> Results of my investigation >> --------------------------- >>=20 >> - The problem arises only in markdown mode. >> - The "changed on disk" message is issued by >> ask-user-about-supersession-threat. >>=20 >> Via debug-on-error I was able to locate the problem a bit more in = detail: >>=20 >> - It seems like the hang occurs through an endless recursion or loop = in markdown-check-change-for-wiki-link which is triggered when emacs = switches to the changetest.txt buffer. >> - markdown-check-change-for-wiki-link is triggered through the = window-configuration-change-hook hook. >>=20 >> Questions >> --------- >>=20 >> - How can I avoid this, but keep the >> markdown-check-change-for-wiki-link functionality? >> - Is window-configuration-change-hook maybe not the right hook to = put markdown-fontify-buffer-wiki-links in? >>=20 >> Thanks, Leo >>=20