From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Fontifying-errors make Emacs (mostly) unusable Date: Wed, 29 Aug 2012 15:19:11 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346268015 30325 80.91.229.3 (29 Aug 2012 19:20:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Aug 2012 19:20:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 29 21:20:16 2012 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 1T6noG-0004Ba-DG for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Aug 2012 21:20:16 +0200 Original-Received: from localhost ([::1]:51967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6noE-0001eq-6C for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Aug 2012 15:20:14 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe12.iad.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:e7pn578EBycDl9qtv/cJ4a2QHGw= Original-Lines: 25 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Wed, 29 Aug 2012 19:19:11 UTC X-Received-Bytes: 1811 Original-Xref: usenet.stanford.edu gnu.emacs.help:194238 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:86584 Archived-At: > 3. comment out this defun (at line 1954): > ;; (defun markdown-fontify-buffer-wiki-links () > 4. save and eval-buffer (or load marktest.el) > 5. find (new empty) file test.md > 6. put it in markdown-mode (M-x markdown-mode) > #Bang# > 'Symbol is void...' error message > try M-x, M-:, C-x d, nothing works, you are trapped. I see it, yes. Actually it's only the minibuffer-using functions which are affected and only while the markdown-mode buffer is displayed in your frame, so if you switch buffer (without minibuffer interaction, e.g. by clicking on the buffer-name in the mode-line), then M-x works again (and you can C-x k the offending markdown-mode buffer). The fix is to run window-configuration-change-hook with the trick as used for pre-command-hook (and various other hooks). The only problem is that window-configuration-change-hook is a highly non-standard hook which cannot be run by the usual run_hook functions, so it'll require more work to make Emacs behave gracefully. Stefan