Subject: 25.0.50.1, beginning-of-defun matches inside string

From: Andreas Röhler <[email-masked]>
Date: Sun, 07 Jun 2015 19:21:28 +0200

emacs -Q

With cursor at end of string below:

(defun asdf ()
   "
(defun foo1 (&optional beg end)
   sdsd"
)

;;;

C-M-a stops  inside string at "(defun foo1"

GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23) of 2015-06-07

Solution:

beginning-of-defun-raw must check if being inside string.