[Top][All Lists]

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

Re: async.el: A simple asynchronous framework for Emacs

From: John Wiegley
Subject: Re: async.el: A simple asynchronous framework for Emacs
Date: Mon, 25 Jun 2012 19:05:58 -0500
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin)

>>>>> Thierry Volpiatto <address@hidden> writes:

> I must use the same form in many places for that:
>      (let ((buf (loop for b in (buffer-list)
>                       thereis (and (string-match
>                                     "\\`\\*ftp.*"
>                                     (buffer-name b)) b))))
>        (when buf (kill-buffer buf))))
>   callback))
> maybe you have an idea to make a function that return the form one time
> for all and avoid these duplicates.

I'd probably just make a function that contains your `loop' usage.

>> This is no longer necessary in the latest version of dired-async.  When an
>> async operations begin, the background of each related line is made yellow.
>> As the operations finish, the yellow is removed.
> This is true only for dired, I do not use dired, only helm, so I need a
> message to tell me when operation finish.

Ah, I understand now!

>> I would not be opposed, however, to a single async message which says,
>> (format "All asynchronous %s(s) have completed" operation).
> It is a single message that popup only once when all is finish.  So for 500
> files, it popup only at the end:

> Asynchronous copy of 500 file(s) done

> What would be great is customizing the function to use for showing message,
> using `message' by default.  One could use something else like
> `tooltip-show' or function using external program like notify-send or like.

Gotcha, this is a necessary configuration detail.  I'll add it.


reply via email to

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