[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 9d35bb8: Fix minor quoting problems in doc stri

From: Dmitry Gutov
Subject: Re: [Emacs-diffs] master 9d35bb8: Fix minor quoting problems in doc strings
Date: Wed, 20 May 2015 05:36:22 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]