From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: how to exit "early" from eg .emacs? Date: Sat, 15 Jan 2005 13:11:11 +0200 Message-ID: <01c4faf3$Blat.v2.2.2$10ebc3e0@zahav.net.il> References: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1105788296 24438 80.91.229.6 (15 Jan 2005 11:24:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Jan 2005 11:24:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 15 12:24:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cpm2z-0000Jz-00 for ; Sat, 15 Jan 2005 12:24:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cpm9Z-0006SY-F2 for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Jan 2005 06:31:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cpm8g-0006GK-Gk for help-gnu-emacs@gnu.org; Sat, 15 Jan 2005 06:30:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cpm8Z-0006F1-5l for help-gnu-emacs@gnu.org; Sat, 15 Jan 2005 06:30:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cpm8Y-0006Bq-3E for help-gnu-emacs@gnu.org; Sat, 15 Jan 2005 06:30:34 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cplsb-0006BE-4v for help-gnu-emacs@gnu.org; Sat, 15 Jan 2005 06:14:05 -0500 Original-Received: from zaretski (tony06-88-64.inter.net.il [80.230.88.64]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id AHH36271 (AUTH halo1); Sat, 15 Jan 2005 13:14:01 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (dkcombs@panix.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23359 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23359 > From: dkcombs@panix.com (David Combs) > Date: 15 Jan 2005 00:06:13 -0500 > > Suppose I'm having a problem with eg narrow-to-region, > but the problem occurs (if and) only if .emacs has been > read in. > > I'd like to instrument my .emacs such that every so often > it asks "abort reading .emacs now?", and if I answer yes, > it does -- and leaves me in emacs, where I can try narrowing, > and see if it works or not. > > ... and eventually discover just where in .emacs my problem-code is. Not exactly what you wanted, but perhaps a solution after all: Invoke Emacs with the -q switch, then visit your .emacs, and manually evaluate its contents, either with eval-region or with "C-x C-e" (for a single expression). After each evaluation, see whether the offending problem appears, and draw the conclusions as appropriate. Does this work?