diff options
| author | Lars Ingebrigtsen | 2019-06-28 12:01:46 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-28 12:01:46 +0200 |
| commit | a7682bce3cfc7661acf6f395c0558f2202b4d78d (patch) | |
| tree | 363ce6284448645cf7ade92667a1f71ebe436259 | |
| parent | cb182ce6f8d2fa6e1509252fecc2b0e504e36d63 (diff) | |
| download | emacs-a7682bce3cfc7661acf6f395c0558f2202b4d78d.tar.gz emacs-a7682bce3cfc7661acf6f395c0558f2202b4d78d.zip | |
Don't inhibit quit in Gnus when prefetching articles
* lisp/gnus/gnus-async.el (gnus-async-prefetch-next): Don't
inhibit quit when running `gnus-async-prefetch-article'.
| -rw-r--r-- | lisp/gnus/gnus-async.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/gnus/gnus-async.el b/lisp/gnus/gnus-async.el index e6fe2db3555..57f667c5e50 100644 --- a/lisp/gnus/gnus-async.el +++ b/lisp/gnus/gnus-async.el | |||
| @@ -141,8 +141,15 @@ that was fetched." | |||
| 141 | (cancel-timer 'gnus-async-timer))) | 141 | (cancel-timer 'gnus-async-timer))) |
| 142 | (setq gnus-async-timer | 142 | (setq gnus-async-timer |
| 143 | (run-with-idle-timer | 143 | (run-with-idle-timer |
| 144 | 0.1 nil #'gnus-async-prefetch-article | 144 | 0.1 nil |
| 145 | group (gnus-data-number next) summary))))))) | 145 | (lambda () |
| 146 | ;; When running from a timer, `C-g' is inhibited. | ||
| 147 | ;; But the prefetch action may (when there's a | ||
| 148 | ;; network problem or the like) hang (or take a | ||
| 149 | ;; long time), so allow quitting anyway. | ||
| 150 | (let ((inhibit-quit nil)) | ||
| 151 | (gnus-async-prefetch-article | ||
| 152 | group (gnus-data-number next) summary)))))))))) | ||
| 146 | 153 | ||
| 147 | (defun gnus-async-prefetch-article (group article summary &optional next) | 154 | (defun gnus-async-prefetch-article (group article summary &optional next) |
| 148 | "Possibly prefetch several articles starting with ARTICLE." | 155 | "Possibly prefetch several articles starting with ARTICLE." |