all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Paul Eggert <eggert@cs.ucla.edu>, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 9d35bb8: Fix minor quoting problems in doc strings
Date: Wed, 20 May 2015 05:36:22 +0300	[thread overview]
Message-ID: <555BF326.1060504@yandex.ru> (raw)
In-Reply-To: <555BEE11.3020300@cs.ucla.edu>

On 05/20/2015 05:14 AM, Paul Eggert wrote:

> That would do the wrong thing in other places.  We have doc strings with
> stuff like this:
>
>    This is like `(let ((v ,EXP)) ,EXPS) except that `v' is a new generated
>
> which is why I'm leery about allowing ` within strings quoted `like this'.

If we're sure that quotes will be paired, a more advanced search 
function (or a longer regexp) could skip over the inner pairs as well.

However, note that the above example is simply missing a ' after the 
closing paren.

> Which means the source would have to say "`\\''" and the backslash would
> have to be removed before showing the result to the user.

Hmm, I guess so. It's not that terrible, though.

> Ouch!  Let's keep things simple if we can.

There's no hurry, but even if you used real curlies, where would be 
contexts when they could be nested as well, and the related code, 
ideally, would be able to handle it.

> OK, I installed commit f743819b57ef519109c1b9d520d358d19a197086 to do that.

Thank you.



  reply	other threads:[~2015-05-20  2:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150519220123.30678.22605@vcs.savannah.gnu.org>
     [not found] ` <E1YupZj-000803-T3@vcs.savannah.gnu.org>
2015-05-19 22:30   ` [Emacs-diffs] master 9d35bb8: Fix minor quoting problems in doc strings Dmitry Gutov
2015-05-19 23:18     ` Paul Eggert
2015-05-20  1:16       ` Dmitry Gutov
2015-05-20  2:14         ` Paul Eggert
2015-05-20  2:36           ` Dmitry Gutov [this message]
2015-05-20  2:45             ` Dmitry Gutov
2015-05-20  2:49             ` Paul Eggert
2015-05-20 12:25               ` Dmitry Gutov
2015-05-20 12:50           ` Stefan Monnier
2015-05-21  7:36             ` Paul Eggert
2015-05-21 10:05               ` Dmitry Gutov
2015-05-21 14:44                 ` Paul Eggert
2015-05-20  4:23     ` Yuri Khan
2015-05-20 15:36   ` Glenn Morris
2015-05-21  5:18     ` Paul Eggert

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=555BF326.1060504@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=eggert@cs.ucla.edu \
    --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.