From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: slime-connect paredit conflict Date: Thu, 28 Oct 2010 03:14:24 +0000 Message-ID: References: <271606.73720.qm@web63102.mail.re1.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1288236515 12318 80.91.229.12 (28 Oct 2010 03:28:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Oct 2010 03:28:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Glen Rubin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 28 05:28:34 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBJAH-0002AO-8V for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Oct 2010 05:28:33 +0200 Original-Received: from localhost ([127.0.0.1]:34580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBJAG-0005L8-Mw for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 23:28:32 -0400 Original-Received: from [140.186.70.92] (port=60518 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBJ9Y-00057z-Ac for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 23:27:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBIwf-0005Y5-4C for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 23:14:30 -0400 Original-Received: from smtpauth16.prod.mesa1.secureserver.net ([64.202.165.22]:40208) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PBIwe-0005Xy-Q6 for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 23:14:29 -0400 Original-Received: (qmail 23897 invoked from network); 28 Oct 2010 03:08:28 -0000 Original-Received: from unknown (74.125.82.49) by smtpauth16.prod.mesa1.secureserver.net (64.202.165.22) with ESMTP; 28 Oct 2010 03:08:28 -0000 Original-Received: by wwb17 with SMTP id 17so846082wwb.30 for ; Wed, 27 Oct 2010 20:14:25 -0700 (PDT) Original-Received: by 10.216.72.16 with SMTP id s16mr9871965wed.20.1288235664941; Wed, 27 Oct 2010 20:14:24 -0700 (PDT) Original-Received: by 10.216.233.163 with HTTP; Wed, 27 Oct 2010 20:14:24 -0700 (PDT) In-Reply-To: <271606.73720.qm@web63102.mail.re1.yahoo.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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: news.gmane.org gmane.emacs.help:75261 Archived-At: On Thu, Oct 28, 2010 at 12:20 AM, Glen Rubin wrote: > > I am using emacs, slime, swank combo. =A0When I try to slime-connect, I > initially get the following error: > > error in process filter: Symbol's value as variable is void: paredit- > backward-delete-key > > If I then try again it works. =A0So, it's really annoying having to > connect twice all the time! =A0I was able to resolve this by removing a > code fragment in my .emacs file, but then end up having problems with > undeletable brackets as described in paredit wiki. > > Here is my .emacs file: > > ;;; This was installed by package-install.el. > ;;; This provides support for the package system and > ;;; interfacing with ELPA, the package archive. > ;;; Move this code earlier if you want to reference > ;;; packages in your .emacs. > (when > =A0 =A0 (load > =A0 =A0 =A0(expand-file-name "~/.emacs.d/elpa/package.el")) > =A0 (package-initialize)) > > =A0 =A0(add-hook 'slime-repl-mode-hook (lambda () (paredit-mode +1))) > =A0 =A0 =A0 =A0 =A0 ;; Stop SLIME's REPL from grabbing DEL, > =A0 =A0 =A0 =A0 =A0 ;; which is annoying when backspacing over a '(' > =A0 =A0 =A0 =A0 =A0 (defun override-slime-repl-bindings-with-paredit () > =A0 =A0 =A0 =A0 =A0 =A0 (define-key slime-repl-mode-map > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (read-kbd-macro paredit-backward-delete-k= ey) nil)) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (add-hook 'slime-repl-mode-hook 'override= -slime-repl- > bindings-with-paredit) Try changing that last line to "(add-hook 'slime-repl-mode-hook 'override-slime-repl-bindings-with-paredit t)"