lorniu / go-translate

Translator on Emacs. Supports multiple engines such as Google, Bing, deepL, ChatGPT, StarDict, Youdao and so on.
GNU General Public License v3.0
274 stars 37 forks source link

The buffer disappears while gt-buffer-render-follow-p is non-nil #70

Closed seagle0128 closed 3 months ago

seagle0128 commented 3 months ago

AfterI set gt-buffer-render-follow-p to non-nil, the buffer will appear and disappear while translating a new word. No issue if querying the same word again.

lorniu commented 3 months ago

I can't reproduce the issue you mentioned. Can you describe more details?

fredericgiquel commented 3 months ago

Same issue for me.

Here is the minimal init.el for Emacs 29 to reproduce the problem:

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)

(use-package go-translate
  :ensure t
  :custom
  (gt-buffer-render-follow-p t)
  (gt-langs '(en fr))
  (gt-default-translator
   (gt-translator
    :taker (gt-taker :prompt t)
    :engines (gt-google-engine)
    :render (gt-buffer-render))))

The steps to reproduce are:

Additionnal info: the problem also occurs when using popper to handle go-translate buffer.

seagle0128 commented 3 months ago

I make a recording, and hope it's clear.

gt

lorniu commented 3 months ago

This issue only happens on Windows. This may be a bug of emacs url.el.

I fixed in the latest commit, may it be ok. Please test.

seagle0128 commented 3 months ago

Thank you! But it seems stopping to release the package to mepla.

fredericgiquel commented 3 months ago

I tested it. The issue is fixed for me.

Thanks.