|
From: | Charles C. Berry |
Subject: | Re: [O] src block: 'C-c C-c can do nothing useful here' if cursor on blank line |
Date: | Fri, 27 Jan 2017 14:29:17 -0800 |
User-agent: | Alpine 2.20 (OSX 67 2015-01-07) |
On Fri, 27 Jan 2017, Kyle Meyer wrote:
Eric S Fraga <address@hidden> writes:On Friday, 27 Jan 2017 at 18:44, John Hendy wrote:Perhaps this is the intended behavior, but I noticed that I go to execute a code block and get the message "C-c C-c can do nothing useful here" if I'm not on the actual src block definition or a line of code. If I'm on a blank line inside it, it doesn't execute. Here was my test:I have noticed this recently as well. Not sure if it was always the case, mind you, but it would be nice if C-c C-c would work even when the cursor is on a blank line (within a src block, that is).I think this changed with 0b6a2e241 (C-c C-c does nothing when at a blank line, 2013-02-15). I wasn't able to figure out the motivation for that change.
Nor I. Perhaps it was just an oversight. FWIW, in `org-ctrl-c-ctrl-c' : (looking-at-p "[ \t]*$") could be #+BEGIN_SRC emacs-lisp (and (looking-at-p "[ \t]*$") (not (eq 'src-block (org-element-type (org-element-context)))))) #+END_SRC without causing a lot of grief. I think `src-block' is the only relevant case. Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |