We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From the documentation:
The function takes the same argument as `beginning-of-defun' and should behave similarly, returning non-nil if it found the beginning of a defun.
So this code will always fail:
(defsubst in-function-p (&optional pos) "Determine whether POS is inside a function." (let (bof (pos (or pos (point)))) (save-excursion (when (beginning-of-defun) (setq bof (point)) (end-of-defun) (and (> pos bof) (< pos (point)))))))
because (beginning-of-defun) always return nil in php-mode.
(beginning-of-defun)
nil
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
From the documentation:
So this code will always fail:
because
(beginning-of-defun)
always returnnil
in php-mode.The text was updated successfully, but these errors were encountered: