diff options
| author | Omar Antolín Camarena <omar.antolin@gmail.com> | 2025-07-07 13:47:30 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 13:47:30 -0600 |
| commit | 89c7610fa7988b6c93029f87afa4ba6b7768bf81 (patch) | |
| tree | d03c6e97f8b35db98333897da8ecf2eacaf69985 | |
| parent | c7407905798be9f6403d28bafaa0a4f56c7a2c09 (diff) | |
| parent | 6c6d912f8a4358150f113f100289bf25975c187e (diff) | |
Merge pull request #766 from minad/prevent-tramp-slowdown
Prevent Tramp slowdown in Eldoc functions
| -rw-r--r-- | embark.el | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1123,7 +1123,8 @@ If CYCLE is non-nil bind `embark-cycle'." This function uses the eldoc REPORT callback and is meant to be added to `eldoc-documentation-functions'." (when-let (((not (minibufferp))) - (target (car (embark--targets)))) + (target (let (file-name-handler-alist) ;; Prevent Tramp slowdown. + (car (embark--targets))))) (funcall report (format "Embark on %s ‘%s’" (plist-get target :type) @@ -1135,7 +1136,8 @@ added to `eldoc-documentation-functions'." This function uses the eldoc REPORT callback and is meant to be added to `eldoc-documentation-functions'." (when-let (((not (minibufferp))) - (targets (embark--targets))) + (targets (let (file-name-handler-alist) ;; Prevent Tramp slowdown. + (embark--targets)))) (funcall report (format "Embark target types: %s" (mapconcat |
