(defun company-grab-lisp-symbol ()
(let ((prefix (company-grab-symbol)))
- (unless (and (company-in-string-or-comment (- (point) (length prefix)))
+ (unless (and (company-in-string-or-comment)
(/= (char-before (- (point) (length prefix))) ?`))
prefix)))
(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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;