[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: Noam Postavsky
Subject: bug#30364: 26.0.91; thread crash on macos
Date: Sat, 17 Feb 2018 09:44:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)

Aaron Jensen <address@hidden> writes:

> 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)
>   (make-thread
>               (lambda ()
>                 (funcall callback
>                          (let* ((case-fold-search company-dabbrev-ignore-case)
>                                 (words (company-dabbrev--search
> (company-dabbrev--make-regexp)
>                                                   company-dabbrev-time-limit
>                                                   (pcase
> company-dabbrev-other-buffers
>                                                     (`t (list major-mode))
>                                                     (`all `all))))
>                                 (downcase-p (if (eq
> company-dabbrev-downcase 'case-replace)
>                                                 case-replace
>                                               company-dabbrev-downcase)))
>                            (setq words (company-dabbrev--filter arg words))
>                            (if downcase-p
>                                (mapcar 'downcase words)
>                              words))))))
> (company-dabbrev-thread "e" (lambda (words) (message "%S" words)))

Okay, that doesn't crash for me on GNU/Linux (though it doesn't print
any message either).

reply via email to

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