[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: Paul Eggert
Subject: Re: [Emacs-diffs] master 9d35bb8: Fix minor quoting problems in doc strings
Date: Tue, 19 May 2015 19:14:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Dmitry Gutov wrote:
Those two cases look simple (replace ` and the first matching ', the second `
would be skipped),

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'.

but if the apostrophe were quoted, it'd have to be escaped: `\''.

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

And it's not very simple, but a regular expression can distinguish between an
escaped and an unescaped character.

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

Not a big deal indeed, but consistency would be preferable IMHO.

OK, I installed commit f743819b57ef519109c1b9d520d358d19a197086 to do that.

reply via email to

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