]> code.delx.au - gnu-emacs-elpa/blobdiff - company.el
Removed unused arg to company-in-string-or-comment.
[gnu-emacs-elpa] / company.el
index 27c95fb7d1b010ee4334ecc8463e93798dc7e7f6..48f4919429a327bed597fe42fa162e575f8b02ce 100644 (file)
@@ -534,9 +534,9 @@ keymap during active completions (`company-active-map'):
                                                 (point)))
     ""))
 
-(defun company-in-string-or-comment (&optional point)
-  (let ((pos (syntax-ppss)))
-    (or (nth 3 pos) (nth 4 pos) (nth 7 pos))))
+(defun company-in-string-or-comment ()
+  (let ((ppss (syntax-ppss)))
+    (or (nth 3 ppss) (nth 4 ppss) (nth 7 ppss))))
 
 ;;; completion mechanism ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;