From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.help Subject: Hang with markdown-mode Date: Mon, 25 Nov 2013 17:52:05 +1100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385364742 22574 80.91.229.3 (25 Nov 2013 07:32:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 07:32:22 +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 08:32:28 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 1Vkqeh-0005cb-Q7 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 08:32:27 +0100 Original-Received: from localhost ([::1]:50058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkqeh-00006z-Df for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 02:32:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkq1w-0002mw-UN for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 01:52:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vkq1r-0004TO-6X for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 01:52:24 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:52809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkq1q-0004T8-RE for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 01:52:19 -0500 Original-Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 92A5920CE1 for ; Mon, 25 Nov 2013 01:52:17 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 25 Nov 2013 01:52:17 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=letterboxes.org; h=content-type:content-transfer-encoding:subject:from :message-id:date:to:mime-version; s=mesmtp; bh=34xkc9sX2oDWE9Csi ReXk94fkOM=; b=tu0QeTJN/L9L8yOQHv0fgKFtCjTXJFJfhgxK0L47MuNi0lAX/ z9lR4RF/mzK+cesB/VHAEQknYGjmSKhzE9V+xlMxV9DZiNRjYwShMS5wiZoODaNa B4rWHzibXW2waMi7V5zbuPxAdFM1Kc5AM+3dL8WtbmNdfE6M2k38FW4W90= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:content-transfer-encoding :subject:from:message-id:date:to:mime-version; s=smtpout; bh=34x kc9sX2oDWE9CsiReXk94fkOM=; b=r246g2WpXCCa8JmZcjl2cjW9G1B2XVTqdqD kFbc82so5Q2MBbvwAY7Be56N6UPT5MHWEVBsFAFivgsG+U229BmanC9N84SvzYxf QmXGlSLeO+32hTg01I6qGu81lZvucSJF1oiQLkqoPEcTLUhLOwy/aEVJTx1ztgHE KpEVychU= X-Sasl-enc: iOTjGUvW9HfLi1Oiq4QkIjmJlC1vhlVigtjZuUkvVnJc 1385362337 Original-Received: from [10.181.136.161] (unknown [1.146.185.6]) by mail.messagingengine.com (Postfix) with ESMTPA id 0EB0FC00E7F for ; Mon, 25 Nov 2013 01:52:17 -0500 (EST) X-Mailer: iPhone Mail (11B554a) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.25 X-Mailman-Approved-At: Mon, 25 Nov 2013 02:31:21 -0500 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:94602 Archived-At: The problem=20 -----------=20 I use markdown-mode 1.9 in emacs 24.3.1 and I get a consistent hang when I d= o the following:=20 1. Start emacs=20 2. Create a new file, say, with name changetest.txt.=20 3. Put (or keep) it in markdown-mode.=20 4. Write some text in changetest.txt and save the file to disc.=20 5. Switch to another buffer, so that that buffer changetest.txt is not=20 visible.=20 6. Open the file changetest.txt in another editor.=20 7. Change and save the content in this other editor.=20 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 a= nd keyboard-quit does nothing, so you have to kill emacs.=20 Results of my investigation=20 ---------------------------=20 - The problem arises only in markdown mode.=20 - The "changed on disk" message is issued by=20 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 mar= kdown-check-change-for-wiki-link which is triggered when emacs switches to t= he changetest.txt buffer.=20 - markdown-check-change-for-wiki-link is triggered through the window-confi= guration-change-hook hook.=20 Questions=20 ---------=20 - How can I avoid this, but keep the=20 markdown-check-change-for-wiki-link functionality?=20 - Is window-configuration-change-hook maybe not the right hook to put markd= own-fontify-buffer-wiki-links in?=20 Thanks, Leo=20