Subject: Re: bug#20761: 25.0.50.1, beginning-of-defun matches inside string

From: Nicolas Richard <[email-masked]>
Date: Mon, 08 Jun 2015 07:18:26 +0200

Andreas Röhler <[email-masked]> writes:
> Am 07.06.2015 um 20:13 schrieb Glenn Morris:
>> Andreas Röhler wrote:
>>
>>> (defun asdf ()
>>>    "
>>> (defun foo1 (&optional beg end)
>>>    sdsd"
>>> )
>> Unescaped paren in column 0.
>
> Can't a string have that?

They can, but the convention is to not do that :
(info "(emacs) Left Margin Paren")

It's also in the docstring of beginning-of-defun
> When `open-paren-in-column-0-is-defun-start' is non-nil, a defun
> is assumed to start where there is a char with open-parenthesis
> syntax at the beginning of a line.

-- 
Nico.