unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Visher <tim.visher@gmail.com>
To: Leo <leoslists@letterboxes.org>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Hang with markdown-mode
Date: Mon, 25 Nov 2013 06:36:38 -0500	[thread overview]
Message-ID: <CAHa53uxH3zLbp3ON5SaBvh7cOG==v+9a4P_aQxokpmkUa7R=-Q@mail.gmail.com> (raw)
In-Reply-To: <DD5CC26D-996B-4534-96F4-A0F357B1FF44@letterboxes.org>

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 <leoslists@letterboxes.org> 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
>



  reply	other threads:[~2013-11-25 11:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25  6:52 Hang with markdown-mode Leo
2013-11-25 11:36 ` Tim Visher [this message]
2013-11-25 12:53   ` leo
2013-11-25 13:30     ` Stefan Monnier
     [not found] <mailman.7041.1385364682.10748.help-gnu-emacs@gnu.org>
2013-11-25 16:06 ` Joost Kremers
2013-11-26  9:30   ` leo
     [not found]   ` <mailman.7148.1385458240.10748.help-gnu-emacs@gnu.org>
2014-01-06 14:44     ` danielrairigh
2014-03-24  5:56       ` news

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHa53uxH3zLbp3ON5SaBvh7cOG==v+9a4P_aQxokpmkUa7R=-Q@mail.gmail.com' \
    --to=tim.visher@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=leoslists@letterboxes.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).