-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gptel: Silence byte-compilation warnings #657
base: master
Are you sure you want to change the base?
Conversation
Thanks. I think I fixed the gptel-rewrite warnings. For the rest I would like to figure out why the byte-compiler thinks the docstrings of the |
https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-09/msg00713.html |
Emacs 28 is lacking the Lines 363 to 369 in 5d5610d
|
To clarify: (car (last (split-string (documentation 'gptel-make-azure) "\n" t)))
==> "(fn NAME &key CURL-ARGS HOST (PROTOCOL \"https\") (HEADER (lambda nil `((\"api-key\" \\, (gptel--get-api-key))))) (KEY 'gptel-api-key) MODELS STREAM ENDPOINT REQUEST-PARAMS)"
(length (car (last (split-string (documentation 'gptel-make-azure) "\n" t))))
==> 168
If I set I believe this issue should go away in future versions of Emacs where the internal docstring presentation of macros will be wrapped, if I understand the emacs-devel thread correctly. |
* gptel-antropic (gptel--anthropic-models): Use URL format recognized by `describe-variable` in docstring. * gptel-anthropic.el (gptel-make-anthropic): Silence warnings about docstring (created by a macro) wider than 80 characters with local variable. (See Emacs bug#65790.) * gptel-kaqi.el (gptel--wrap-user-prompt): Ditto. * gptel-openai.el: (gptel-make-azure): Ditto. * gptel-openai-extras.el (gptel-make-perplexity): Ditto. * gptel-ollama.el (gptel--wrap-user-prompt): Wrap a docstring line to less than 80 characters. * gptel-org.el (gptel-org--element-lineage-map): Silence warnings about `org-element-type-p' and `org-element-parent', see karthink#294.
c477924
to
ecc4a09
Compare
Silence most low-hanging-fruit byte compilation warnings.
https://gist.github.com/pabl0/b48d221ab50914dc1cbf1196efca82d6
I think these might be real issues needing fixing?
Emacs 29.4:
Emacs 28.2: