From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: Hang with markdown-mode Date: Mon, 25 Nov 2013 06:36:38 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1385379447 26703 80.91.229.3 (25 Nov 2013 11:37:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 11:37:27 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Leo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 25 12:37:34 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 1VkuTt-0004Ba-Qe for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 12:37:33 +0100 Original-Received: from localhost ([::1]:51910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkuTt-000405-EA for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Nov 2013 06:37:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkuTh-0003z8-UV for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 06:37:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkuTg-00062J-CR for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 06:37:21 -0500 Original-Received: from mail-ve0-x22c.google.com ([2607:f8b0:400c:c01::22c]:52137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkuTg-000629-8C for help-gnu-emacs@gnu.org; Mon, 25 Nov 2013 06:37:20 -0500 Original-Received: by mail-ve0-f172.google.com with SMTP id jw12so2837845veb.3 for ; Mon, 25 Nov 2013 03:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=h/LxMIk0dX0hInjhU43LNCIAQDZtINIA+6Hkx4VcLz4=; b=l8cpsiYGzol6ELHfWflypsn0Jkk0GikNOhrf7XIeGjHs60yriJAthaQ7ppN5W8bLjW A2G7YNWRA+6QjqLW5WX1grsIMNyvRhuViyWwRHtHBByghYWdqSWYyvVshDX5WSbLqIue KdH8+P1iqSuzIFQlm+bVLAGnAIoAGvHt//MxzAMaASmzErBr5ENmX2foZBnqBAaoUxfA mCrSCsbBptO9lIwyKTRepJdxA5k/7KAG2Ft2X1YjD4wapz1jcm5UVASawVZLwEnstWg1 5DPAOA7RvcR3J4oni9r0q8fqVo/nCk9j5hTQlUcmD7iZO+gLk2aP1I4DDN3fb9egMQuY Db+A== X-Received: by 10.52.230.102 with SMTP id sx6mr21858652vdc.15.1385379439604; Mon, 25 Nov 2013 03:37:19 -0800 (PST) Original-Received: by 10.220.76.6 with HTTP; Mon, 25 Nov 2013 03:36:38 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c01::22c 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:94604 Archived-At: 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. On Mon, Nov 25, 2013 at 1:52 AM, Leo wrote: > The problem > ----------- > > I use markdown-mode 1.9 in emacs 24.3.1 and I get a consistent hang when I do the following: > > 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. > > You will get the message > > changetest.txt changed on disk; really edit the buffer? (y, n, r or C-h) > > 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. > > Results of my investigation > --------------------------- > > - The problem arises only in markdown mode. > - The "changed on disk" message is issued by > ask-user-about-supersession-threat. > > Via debug-on-error I was able to locate the problem a bit more in detail: > > - 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. > > Questions > --------- > > - 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? > > Thanks, Leo >