From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Green Subject: Re: Bug: Initial C-c ' invocation just starts haskell-mode "normally" [7.3] Date: Sat, 20 Nov 2010 15:07:17 +0000 Message-ID: <878w0o2fve.wl%greenrd@greenrd.org> References: <87bp5k2k0v.wl%greenrd@greenrd.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=54324 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJp7o-0006TD-MC for emacs-orgmode@gnu.org; Sat, 20 Nov 2010 10:13:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJp7n-0003Og-2v for emacs-orgmode@gnu.org; Sat, 20 Nov 2010 10:13:12 -0500 Received: from [67.214.171.75] (port=34596 helo=mail.dnsexit.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJp7m-0003OU-V5 for emacs-orgmode@gnu.org; Sat, 20 Nov 2010 10:13:11 -0500 Received: from cspcnh.swan.ac.uk (cspcnh.swan.ac.uk [137.44.6.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.dnsexit.com (Postfix) with ESMTP id 851838B5D21 for ; Sat, 20 Nov 2010 10:11:41 -0500 (EST) Received: from cspcnh.swan.ac.uk.greenrd.org (exherbo.local [127.0.0.1]) by cspcnh.swan.ac.uk (8.14.4/8.14.4) with ESMTP id oAKF7H7Y014692 for ; Sat, 20 Nov 2010 15:07:17 GMT In-Reply-To: <87bp5k2k0v.wl%greenrd@greenrd.org> 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: emacs-orgmode@gnu.org At Sat, 20 Nov 2010 13:37:36 +0000, Robin Green wrote: > I am experimenting with source code blocks, and I tried to use C-c ' to > type in some Haskell code. The first time I tried it, I was asked for a > filename, which was puzzling, because I didn't expect that. OK, I now have a clearer idea of what went wrong. 1. I think it's doing find-file-at-point. 2. This only happens when point is on this line, but NOT at the start of the line: #+begin_src haskell It's not about whether it's the first time you press C-c ', it's about where point is when you press it. 3. If point is anywhere on the closing line of the source block, it works. 4. Ironically, the end of the first line is where the point is placed if you do C-c C-v d at the end of the buffer! So if you do C-c C-v d and then C-c ', as I did, this bug will happen. -- Robin