From: "Ken Manheimer" <ken.manheimer@gmail.com>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: allout mode patch for a few small bugs and cleanup of mode docstring
Date: Wed, 29 Nov 2006 19:04:13 -0500 [thread overview]
Message-ID: <2cd46e7f0611291604q5f10e212gbf005b2ed1844bd1@mail.gmail.com> (raw)
In-Reply-To: <m3bqmphm0i.fsf@kfs-l.imdomain.dk>
On 11/29/06, Kim F. Storm <storm@cua.dk> wrote:
> I see that you changed several occurrences of ... ( ... ) ... to
> .. \( ... \) ... in the doc string.
>
> You only need to quote a ( in the rare case that it occurs in
> the first column of a line, and you never need to quote a ).
>
> Appendix D.6 of the Emacs Lisp Reference Manual says:
>
> * If a line in a documentation string begins with an
> open-parenthesis, write a backslash before the open-parenthesis,
> like this:
>
> The argument FOO can be either a number
> \(a buffer position) or a string (a file name).
>
> This prevents the open-parenthesis from being treated as the start
> of a defun (*note Defuns: (emacs)Defuns.).
thanks for the tip - i've wondered about a few nuances concerning
escaping parens, and i might as well ask, while the issue is raised.
first, does it hurt to escape open parens excessively? i ask because
i deliberately tend to quote all leading opens, so i can flow
docstring paragraphs without worry about surprises. it would not be a
hardship to be more discriminating, but still wonder if there's a
drawback beyond the increased mystery (onions-in-the-varnish wise) of
unnecessary escaping.
i'm pretty haphazard about escaping the close parens, but decided to
shoot for consistency in this last edit - apparently in the wrong
direction. (i don't see any prohibition against escaping the close
parens, but i suppose it's more onions-in-the-varnish noise.) it would
be nice if there were a way to get paren matching for an escaped open
paren, and i gather there currently is no provision for that. is that
right?
just curious, mostly.
--
ken
ken.manheimer@gmail.com
http://myriadicity.net
next prev parent reply other threads:[~2006-11-30 0:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 20:51 allout mode patch for a few small bugs and cleanup of mode docstring Ken Manheimer
2006-11-29 23:27 ` Kim F. Storm
2006-11-30 0:04 ` Ken Manheimer [this message]
2006-11-30 19:48 ` Richard Stallman
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=2cd46e7f0611291604q5f10e212gbf005b2ed1844bd1@mail.gmail.com \
--to=ken.manheimer@gmail.com \
--cc=emacs-devel@gnu.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.