emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Sebastien Vauban
	<public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org,
	Bastien Guerry <bzg@altern.org>
Subject: Re: Inserting a comma as prefix of headlines (in Org code blocks)
Date: Wed, 27 Feb 2013 10:43:05 +0100	[thread overview]
Message-ID: <87sj4irt1y.fsf@gmail.com> (raw)
In-Reply-To: <86fw0i9lu4.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 27 Feb 2013 09:56:19 +0100")



Hello,

"Sebastien Vauban"
<wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> 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

  parent reply	other threads:[~2013-02-27  9:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27  8:56 Inserting a comma as prefix of headlines (in Org code blocks) Sebastien Vauban
2013-02-27  9:22 ` Bastien
2013-02-27  9:43 ` Nicolas Goaziou [this message]
2013-02-27 12:16   ` Bastien
2013-02-27 12:54     ` Nicolas Goaziou
2013-02-27 22:55       ` Bastien
2013-02-27 23:29         ` Nicolas Goaziou
2013-02-28  8:54           ` Bastien
2013-02-28  9:56             ` Nicolas Goaziou
2013-02-28 10:15               ` Bastien
2013-02-28 10:52                 ` Nicolas Goaziou
2013-02-28 11:17               ` Achim Gratz
2013-02-28 21:23                 ` Nicolas Goaziou
2013-02-28 16:17               ` François Pinard
2013-02-28 17:02                 ` Yagnesh Raghava Yakkala
2013-02-28 19:26                   ` François Pinard
2013-02-28 20:06                     ` Yagnesh Raghava Yakkala
2013-03-01 16:23                       ` Takafumi Arakaki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sj4irt1y.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=bzg@altern.org \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).