[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30364: 26.0.91; thread crash on macos

From: Aaron Jensen
Subject: bug#30364: 26.0.91; thread crash on macos
Date: Tue, 13 Feb 2018 17:22:12 -0800

From: Noam Postavsky (mailto:address@hidden)
> I was going to check if this happens on systems other than macOS, but as
> far as I can tell, the code you posted doesn't define the function
> "company-dabbrev-thread". So I guess what you posted and what are
> running aren't quite the same…

Sorry, I think it was something like this:

(defun company-dabbrev-thread (arg callback)
              (lambda ()
                (funcall callback
                         (let* ((case-fold-search company-dabbrev-ignore-case)
                                (words (company-dabbrev--search
                                                    (`t (list major-mode))
                                                    (`all `all))))
                                (downcase-p (if (eq
company-dabbrev-downcase 'case-replace)
                           (setq words (company-dabbrev--filter arg words))
                           (if downcase-p
                               (mapcar 'downcase words)

(company-dabbrev-thread "e" (lambda (words) (message "%S" words)))

I was going through multiple revisions and didn’t gist the right code.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]