Skip to content

Commit c477924

Browse files
committed
gptel: Silence byte-compilation warnings
* gptel-antropic (gptel--anthropic-models): Use URL format recognized by `describe-variable` in docstring. * gptel-anthropic.el (gptel-anthrh gptel-make-anthropic): Silence warnings about docstring (created by a macro) wider than 80 characters with local variable. * 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 #294.
1 parent b2e5404 commit c477924

6 files changed

+25
-2
lines changed

gptel-anthropic.el

+6-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ Keys:
456456
Information about the Anthropic models was obtained from the following
457457
comparison table:
458458
459-
<https://docs.anthropic.com/en/docs/about-claude/models#model-comparison-table>")
459+
URL `https://docs.anthropic.com/en/docs/about-claude/models#model-comparison-table'")
460460

461461
;;;###autoload
462462
(cl-defun gptel-make-anthropic
@@ -541,3 +541,8 @@ for."
541541

542542
(provide 'gptel-anthropic)
543543
;;; gptel-anthropic.el ends here
544+
545+
;; Local Variables:
546+
;; byte-compile-warnings: (not docstrings)
547+
;; End:
548+

gptel-kagi.el

+4
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,7 @@ Example:
193193

194194
(provide 'gptel-kagi)
195195
;;; gptel-kagi.el ends here
196+
197+
;; Local Variables:
198+
;; byte-compile-warnings: (not docstrings)
199+
;; End:

gptel-ollama.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ format."
204204
&optional inject-media)
205205
"Wrap the last user prompt in PROMPTS with the context string.
206206
207-
If INJECT-MEDIA is non-nil wrap it with base64-encoded media files in the context."
207+
If INJECT-MEDIA is non-nil wrap it with base64-encoded media
208+
files in the context."
208209
(if inject-media
209210
;; Wrap the first user prompt with included media files/contexts
210211
(when-let* ((media-list (gptel-context--collect-media))

gptel-openai-extras.el

+4
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,7 @@ parameters."
274274

275275
(provide 'gptel-openai-extras)
276276
;;; gptel-openai-extras.el ends here
277+
278+
;; Local Variables:
279+
;; byte-compile-warnings: (not docstrings)
280+
;; End:

gptel-openai.el

+4
Original file line numberDiff line numberDiff line change
@@ -609,3 +609,7 @@ Example:
609609

610610
(provide 'gptel-openai)
611611
;;; gptel-openai.el ends here
612+
613+
;; Local Variables:
614+
;; byte-compile-warnings: (not docstrings)
615+
;; End:

gptel-org.el

+5
Original file line numberDiff line numberDiff line change
@@ -624,3 +624,8 @@ cleaning up after."
624624

625625
(provide 'gptel-org)
626626
;;; gptel-org.el ends here
627+
628+
;; Silence warnings about `org-element-type-p' and `org-element-parent', see #294.
629+
;; Local Variables:
630+
;; byte-compile-warnings: (not unresolved)
631+
;; End:

0 commit comments

Comments
 (0)