Skip to content

Conversation

@ultronozm
Copy link
Contributor

Fix Flycheck warnings and add docs for bibtex-mode binds.

* overleaf.el (overleaf-read-cookies-from-firefox): Remove unused
variable 'start-pos'.  Use 'when-let*' instead of 'when-let'.
(overleaf-context-size): Make docstring less than 80 characters.
(overleaf--debug): Move defsubst before first use.
(overleaf--get-cookies): Use 'if-let*' instead of 'if-let'.
(overleaf--transform-edits): Remove unused variable 'delta'.
(overleaf--completing-read): Use 'if-let*' instead of 'if-let'.
(overleaf--extract-context-at-point): Use LENGTH argument instead of
hardcoded value 10.
(overleaf--row-col-to-pos): Use 'forward-line' instead of 'goto-line'.
(overleaf--make-cursor-overlay): Use 'when-let*' instead of
'when-let'.
(overleaf--update-cursor): Use 'when-let*' instead of 'when-let'.
(overleaf--format-user-info): Add 'declare-function' for
'which-function'.
(overleaf-find-file): Remove unused variable 'longest-name'.
(overleaf-connect): Remove unused format string argument.
* README.org (Keybindings): Add example configuration for bibtex-mode.
@vale981
Copy link
Owner

vale981 commented Jun 25, 2025

I don't really see the point of using the starred version of if and when...

@ultronozm
Copy link
Contributor Author

Me neither; indeed, I prefer the aesthetics of the unstarred versions. Unfortunately, the unstarred versions are deprecated in Emacs 31+, so I get nuisance compiler warnings if we don't star them. I'm happy to switch them back if you'd prefer

@vale981
Copy link
Owner

vale981 commented Jun 25, 2025

interesting... well, let's keep them then

@vale981 vale981 merged commit a12139e into vale981:main Jun 25, 2025
1 check passed
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.

2 participants