From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: how to exit "early" from eg .emacs? Date: Sat, 15 Jan 2005 22:46:28 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1105829291 19178 80.91.229.6 (15 Jan 2005 22:48:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Jan 2005 22:48:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 15 23:48:05 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 1CpwiB-0000SU-00 for ; Sat, 15 Jan 2005 23:48:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cpwtx-0006vw-Uh for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Jan 2005 18:00:13 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader2.panix.com 1105829188 10429 166.84.1.1 (15 Jan 2005 22:46:28 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sat, 15 Jan 2005 22:46:28 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: shelby.stanford.edu gnu.emacs.help:127888 Original-To: help-gnu-emacs@gnu.org 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:23375 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23375 In article , drkm wrote: >"Eli Zaretskii" writes: > >>> ... 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. > > And with `C-x (', `C-M-f', `C-x )' and `C-x e', you just have to >press `e e e e e e ...' to discover the sexp where is the problem. > >--drkm >> ... 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? Looks like it should -- I'll sure give it a try! And that e e e e thing -- what, he's assigning that macro to the e-key? (Otherwise you'd have to hit C-x e each time? Or am I simply confused?) | ESC C-f runs the command forward-sexp | which is an interactive compiled Lisp function in `emacs-lisp/lisp'. | (forward-sexp &optional ARG) | | Move forward across one balanced expression (sexp). | With ARG, do it that many times. Negative arg -N means | move backward across N balanced expressions. Oh, that's cool! Thanks to both, David