all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 25195@debbugs.gnu.org
Subject: bug#25195: 25.1; Index backslash for escape of left-margin paren
Date: Sat, 27 Jul 2019 09:13:25 -0700 (PDT)	[thread overview]
Message-ID: <f242f853-42aa-46e4-adc5-7a9e36e743e1@default> (raw)
In-Reply-To: <87a7czk9jk.fsf@mouse.gnus.org>

> > The Emacs manual, node `Left Margin Convention', seems to be the only
> > place that the convention of a paren in column 0 is documented.  The
> > backslash escaping is not indexed however - it should be.
> 
> Hm...  Well, it does say that if you have a parent in column 0, then
> it's treated specially.  If you have
> 
> "bla bla
> \(foo bar)"
> 
> then the ( isn't in column zero, and \( => ( in this context.
> 
> So I'm not sure this is even a convention; it's just a work-around.
> And what character to use in what language to get a similar effect is
> surely language-dependent?
> 
> So I don't think this is something that needs expounding upon; closing.

(I should have said mode `Left Margin Paren'.
The title of the node is "Left Margin Convention".)

I don't understand what you're saying.

If you have a paren in column 0 then you need to
escape it, to make indentation, movement etc.
work well.

What's not a convention about that (see the title)?
But what difference does it make if you prefer to
see it as a workaround.  Users need to know about
it, which is why we document it.

And it's why we font-lock delimiters "that ought
to be quoted".  ("Ought" is a strong word, showing
that this is indeed intended as a convention.)

And it's why we have a variable to inhibit the need
for such escaping - also documented in this node.

And it's not just for a paren - same thing for other
delimiters.  E.g., in Elisp a (square) bracket.






  reply	other threads:[~2019-07-27 16:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-13 21:04 bug#25195: 25.1; Index backslash for escape of left-margin paren Drew Adams
2019-07-27 11:21 ` Lars Ingebrigtsen
2019-07-27 16:13   ` Drew Adams [this message]
2019-07-27 16:36   ` Noam Postavsky
2019-07-28  9:45     ` Lars Ingebrigtsen
2019-07-30 13:20       ` Noam Postavsky
2019-07-30 19:10         ` Drew Adams
2019-07-31  4:52         ` Glenn Morris
2019-07-31 12:37           ` Noam Postavsky

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

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

  git send-email \
    --in-reply-to=f242f853-42aa-46e4-adc5-7a9e36e743e1@default \
    --to=drew.adams@oracle.com \
    --cc=25195@debbugs.gnu.org \
    --cc=larsi@gnus.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.