From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Inserting a comma as prefix of headlines (in Org code blocks) Date: Wed, 27 Feb 2013 10:43:05 +0100 Message-ID: <87sj4irt1y.fsf@gmail.com> References: <86fw0i9lu4.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAdY4-0003QU-Ay for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 04:43:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAdY1-0007VQ-Bk for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 04:43:40 -0500 Received: from plane.gmane.org ([80.91.229.3]:45270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAdY1-0007VL-4c for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 04:43:37 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UAdYG-0008EF-9u for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 10:43:52 +0100 In-Reply-To: <86fw0i9lu4.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 27 Feb 2013 09:56:19 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org, Bastien Guerry Hello, "Sebastien Vauban" writes: > Consider this Org block: > > #+begin_src org > * Headline inside an Org block > > Text of that entry. > #+end_src Technically, this is not an Org block for any serious function in Org. Headlines have precedence over block markers. > I don't remember exactly why (I think, sometimes, TAB'ing did not work > properly to prefix the dangerous lines with a `,'), I had to do it manually: > go and prefix every headline of the Org code block. > #+begin_src org > ,* Headline inside an Org block > > Text of that entry. > #+end_src > > That worked for long, but not anymore since a couple of weeks (could be > something like 2 months or so): currently, if you go in column 0 of the > headline, and insert `,', you get asked: > > "Priority A-C, SPC to remove: " > > IMHO, such a question should not be asked, and the `,' should be inserted > literally, as we're in the context of a code block. We're not, that's why comma escaping exists in the first place. I understand this may be counter-intuitive in your simple example, but it's quite logical. I think a proper solution would be to remove "," from speed keys and put priority command elsewhere. Thus, you can always insert "," manually at the beginning of the line. Meanwhile, there is "C-q ,".n What about "#" for priorities? Regards, -- Nicolas Goaziou