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 10:45:26 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346251824 13568 80.91.229.3 (29 Aug 2012 14:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Aug 2012 14:50:24 +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 16:50:25 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 1T6jb1-0000EB-9C for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Aug 2012 16:50:19 +0200 Original-Received: from localhost ([::1]:51254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6jaz-0001BL-0B for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Aug 2012 10:50:17 -0400 Original-Received: by 10.68.232.1 with SMTP id tk1mr398193pbc.7.1346251527462; Wed, 29 Aug 2012 07:45:27 -0700 (PDT) Original-Path: usenet.stanford.edu!r4no2607373pbs.0!news-out.google.com!t10ni117777384pbh.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe01.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:cbB6tcZfK58JJpZGeUz1QEMypFE= Original-Lines: 18 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Wed, 29 Aug 2012 14:45:26 UTC X-Received-Bytes: 1453 Original-Xref: usenet.stanford.edu gnu.emacs.help:194228 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:86574 Archived-At: > Thats probably because the error appears in a (fontifying) hook > function thats called before any real action. > How can I get out of this 'trap' without restarting Emacs? Depends on the specific problem you're encountering, but it may very well be that kill&restart is the only way to fix it. Due to Emacs's extensive reliance of "modifiable Elisp code", it's generally impossible to prevent such situations. There is code in various parts of Emacs to try and handle some particular cases (e.g. an error in a pre-command-hook will cause Emacs to remove that function from the hook), so if you can give details about your particular case and it seems to be a common enough problem, maybe we can find a way to make Emacs behave more gracefully. Stefan