From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: Overlays and elisp code Date: Tue, 01 Feb 2011 10:51:23 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=45730 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkDpb-000727-PS for emacs-orgmode@gnu.org; Tue, 01 Feb 2011 05:51:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkDpa-0004PV-Jr for emacs-orgmode@gnu.org; Tue, 01 Feb 2011 05:51:31 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:64680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkDpa-0004PP-Bv for emacs-orgmode@gnu.org; Tue, 01 Feb 2011 05:51:30 -0500 Received: by wwb17 with SMTP id 17so6993460wwb.30 for ; Tue, 01 Feb 2011 02:51:29 -0800 (PST) In-Reply-To: (Jeff Horn's message of "Mon, 31 Jan 2011 15:04:29 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: emacs-orgmode@gnu.org, Andrea Crotti Jeff Horn writes: > I can reproduce this. emacs 23.1 and org 7.4 > > On Mon, Jan 31, 2011 at 5:04 AM, Andrea Crotti > wrote: >> I found a strange behaviour which might be a bug, but maybe of my >> configuration. >> >> This is org mode version: >> Org-mode version 7.4 (release_7.4.199.g8be1.dirty) >> and emacs: >> "GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) >> =C2=A0of 2010-05-09 on linc" >> >> To reproduce the bug I do >> - go over an elisp code block >> - C-c ' to edit in the overlay >> - C-c ' to go back when done >> >> And it works perfectly, BUT if for example I remove a parenthesis before >> pressing C-c ', I can't go back. >> >> C-c ' becomes undefined and I have to kill both the overlay and the >> original buffer. >> >> While I was writing I also found the cause of the problem, Paredit! >> Removing the hook from emacs-lisp-mode-hook fixes this, but paredit is >> really useful with elisp, maybe someone has an idea of why this happens? Hi Andrea, So it looks like paredit-mode refuses to start up (throws an error) if the parentheses are unbalanced. So how about we use #+begin_src emacs-lisp (add-hook 'emacs-lisp-mode-hook (lambda () (condition-case nil (paredit-mode) (error (message "Failed to activate paredit mode"))))) #+end_src At the moment this message gets stamped on by a message which org-edit-src always issues in the echo-area. I'm going to submit a patch to control that in a subsequent email. Oh no. You got me editing elisp with paredit mode turned on. Maybe it will last more than 5 minutes this time :) Dan >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>