Skip to content

Conversation

@arifer612
Copy link
Contributor

Refer to #868

@bdarcus

This comment was marked as resolved.

@arifer612

This comment was marked as resolved.

@arifer612 arifer612 marked this pull request as draft November 7, 2025 02:14
arifer612 added a commit to arifer612/citar that referenced this pull request Nov 7, 2025
This ensures that the `bibtex-beginning-of-entry',
`bibtex-search-forward-field', and `bibtex-set-dialect' functions in citar.el
are loaded before attempting to byte-compile the file.

This should resolve the issue in
emacs-citar#872 (comment).
arifer612 added a commit to arifer612/citar that referenced this pull request Nov 7, 2025
This ensures that the `bibtex-beginning-of-entry',
`bibtex-search-forward-field', and `bibtex-set-dialect' functions in citar.el
are loaded before attempting to byte-compile the file.

This should resolve the issue in
emacs-citar#872 (comment).
@arifer612 arifer612 force-pushed the feat/no-export-fields branch from a9be5af to a763d58 Compare November 7, 2025 02:24
arifer612 added a commit to arifer612/citar that referenced this pull request Nov 7, 2025
This ensures that the `bibtex-beginning-of-entry',
`bibtex-search-forward-field', and `bibtex-set-dialect' functions in citar.el
are loaded before attempting to byte-compile the file.

This should resolve the issue in
emacs-citar#872 (comment).
@arifer612 arifer612 force-pushed the feat/no-export-fields branch 2 times, most recently from c2b4779 to e1b59d6 Compare November 7, 2025 03:01
arifer612 added a commit to arifer612/citar that referenced this pull request Nov 7, 2025
This ensures that the `bibtex-beginning-of-entry',
`bibtex-search-forward-field', and `bibtex-set-dialect' functions in citar.el
are loaded before attempting to byte-compile the file.

This should resolve the issue in
emacs-citar#872 (comment).
@arifer612 arifer612 force-pushed the feat/no-export-fields branch from e1b59d6 to ed3776c Compare November 7, 2025 03:04
@arifer612
Copy link
Contributor Author

I unfortunately did not realise that force pushes on my forked branch would trigger the workflows despite having changed this PR to a draft. Please ignore those workflow requests.

This PR is put on hold until #873 is reviewed and accepted, as that PR resolves the CI byte-compilation check issue raised above, and more.

bdarcus pushed a commit that referenced this pull request Nov 7, 2025
This ensures that the `bibtex-beginning-of-entry',
`bibtex-search-forward-field', and `bibtex-set-dialect' functions in citar.el
are loaded before attempting to byte-compile the file.

This should resolve the issue in
#872 (comment).
@arifer612 arifer612 force-pushed the feat/no-export-fields branch from ed3776c to b5f5798 Compare November 8, 2025 01:11
@arifer612
Copy link
Contributor Author

Now that #873 has been merged, this PR is ready to be reviewed again.

@arifer612 arifer612 marked this pull request as ready for review November 8, 2025 01:12
@bdarcus bdarcus requested a review from roshanshariff November 8, 2025 13:08
Copy link
Collaborator

@roshanshariff roshanshariff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just suggested renaming the customization option, but otherwise this looks good to me!

@arifer612 arifer612 force-pushed the feat/no-export-fields branch from b5f5798 to c99a7fe Compare November 8, 2025 20:07
This commit adds a new custom variable, i.e., `citar-bibtex-no-export-fields',
which serves a similar purpose to `bibtex-completion-no-export-fields' found in
bibtex-completion. It is a list of bibtex fields that will be used to inform
`citar--insert-bibtex' to omit out when exporting/inserting bibtex entries.
…ields

This commit extends the `citar--insert-bibtex' function to omit bibtex fields
that were declared in `citar-bibtex-no-export-fields' in the bibtex entry that
is to be exported/inserted.

This mirrors what is done by `bibtex-completion-insert-bibtex' when the
`bibtex-completion-no-export-fields' variable is non-nil.
@arifer612 arifer612 force-pushed the feat/no-export-fields branch from c99a7fe to 1698123 Compare November 9, 2025 06:40
@bdarcus bdarcus merged commit dc7018e into emacs-citar:main Nov 9, 2025
8 checks passed
@bdarcus
Copy link
Contributor

bdarcus commented Nov 9, 2025

Thanks again!

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.

3 participants