'1-bit)
list)))
- ;; In Emacs >= 23, beginning-of-defun will passes its parameter to
- ;; beginning-of-defun-function. Assume end-of-defun does the same.
+ ;; In Emacs >= 23, beginning-of-defun-raw passes its argument to
+ ;; beginning-of-defun-function. Assume end-of-defun does likewise.
(let ((beginning-of-defun-function
(lambda (&optional arg)
(not (eq arg nil)))))
- (if (beginning-of-defun 1)
- (setq list (cons 'argumentative-bod-function list))))
+ (save-excursion
+ (if (beginning-of-defun-raw 1)
+ (setq list (cons 'argumentative-bod-function list)))))
(let ((buf (generate-new-buffer " test"))
parse-sexp-lookup-properties