Skip to content

Fix pre-existing compilation warnings and lint issues#3860

Merged
bbatsov merged 3 commits intomasterfrom
fix-pre-existing-warnings
Feb 8, 2026
Merged

Fix pre-existing compilation warnings and lint issues#3860
bbatsov merged 3 commits intomasterfrom
fix-pre-existing-warnings

Conversation

@bbatsov
Copy link
Member

@bbatsov bbatsov commented Feb 8, 2026

Summary

  • Fix docstring quoting to use proper Emacs conventions (`symbol' instead of 'symbol) across 16 files
  • Replace obsolete functions: point-at-eol/point-at-bol, lax-plist-get/lax-plist-put, xref-pop-marker-stack
  • Fix defcustom :type specs ('list -> '(repeat ...), ''(choice ...) -> '(choice ...), bare nil -> (const nil))
  • Replace with-demoted-errors with dynamic format string with condition-case-unless-debug
  • Fix put-text-property on constant string in cider-stacktrace.el
  • Fix unused return value of cl-delete-duplicates in cider-repl-history.el

These changes bring the project to zero byte-compilation errors/warnings.

Test plan

  • eldev -dtT compile --warnings-as-errors passes with zero errors/warnings
  • eldev -p test passes (426 specs, 0 failures)

@bbatsov bbatsov mentioned this pull request Feb 8, 2026
6 tasks
Use backtick-apostrophe (\`symbol') for Lisp symbol references in
docstrings instead of plain single quotes ('symbol), which triggers
byte-compiler warnings.  For English phrases, either drop the quotes
or use escaped quotes where literal code is shown.
- Replace deprecated `point-at-eol'/`point-at-bol' with
  `line-end-position'/`line-beginning-position'
- Replace deprecated `xref-pop-marker-stack' with `xref-go-back',
  guarded by fboundp for Emacs 28 compatibility
- Replace `with-demoted-errors' with `condition-case-unless-debug'
  to avoid dynamic format string
- Fix `put-text-property' on constant string literal
- Fix defcustom :type specs (bare nil, 'list, double-quoted choice)
- Add compat as a dependency and use `compat-call' for
  `plist-get'/`plist-put' with `equal' comparator, replacing the
  hand-rolled version-gating for deprecated `lax-plist-get'/`lax-plist-put'
- Fix remaining docstring quoting flagged by the byte-compiler
Capture the return value of cl-delete-duplicates back into the items
variable, since the function may return a new list head.
@bbatsov bbatsov force-pushed the fix-pre-existing-warnings branch from 00903bd to 7d6ab9c Compare February 8, 2026 19:07
@bbatsov bbatsov merged commit d79fdaf into master Feb 8, 2026
15 checks passed
@bbatsov bbatsov deleted the fix-pre-existing-warnings branch February 8, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant