-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Add options to unused list when unknown key is active #1184
Open
josephwright
wants to merge
1
commit into
develop
Choose a base branch
from
gh1183
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+54
−3
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are | |
not part of the distribution. | ||
================================================================================ | ||
|
||
2024-06-03 Joseph Wright <[email protected]> | ||
* ltkeys.dtx: | ||
Correct addition to unused option list with unknown key property (gh/1183) | ||
|
||
2024-06-19 David Carlisle <[email protected]> | ||
|
||
* fontdef.dtx: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
\input{test2e} | ||
|
||
\begin{filecontents}[overwrite]{github-1183.cls} | ||
\NeedsTeXFormat{LaTeX2e} | ||
\ProvidesClass{github-1183} | ||
\LoadClassWithOptions{article} | ||
|
||
\DeclareKeys[testwork]{% | ||
test .code = \newcommand{\foo}{#1}, | ||
test .usage = load, | ||
% the following three lines give an equivalent definition of your bertha | ||
% option as defined with `\DeclareOption{bertha}{}` | ||
bertha .code = {}, | ||
bertha .value_forbidden:n = true, | ||
bertha .usage = load, | ||
% if you use this unknown handler, you get "test" and "bertha" as unknown | ||
% options, if you omit it you get "a4paper" as unknown option | ||
unknown .code = {} | ||
} | ||
\ProcessKeyOptions[testwork] | ||
|
||
\endinput | ||
\end{filecontents} | ||
\documentclass[a4paper,test=wtf,bertha]{github-1183} | ||
|
||
\START | ||
\begin{document} | ||
\END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
This is a generated file for the LaTeX2e validation system. | ||
Don't change this file in any respect. | ||
(github-1183.aux) | ||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line .... | ||
LaTeX Font Info: ... okay on input line .... | ||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line .... | ||
LaTeX Font Info: ... okay on input line .... | ||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line .... | ||
LaTeX Font Info: ... okay on input line .... | ||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line .... | ||
LaTeX Font Info: ... okay on input line .... | ||
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line .... | ||
LaTeX Font Info: ... okay on input line .... | ||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line .... | ||
LaTeX Font Info: ... okay on input line .... | ||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line .... | ||
LaTeX Font Info: ... okay on input line .... |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use an extra option which is unknown to both
article
andgithu-1183
classes, to trigger the "Unused global option(s)" waning?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still shouldn't see a warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a conceptual point I think that global options should be handled as follows:
The big question is what does this mean if a a package defines an unknown option handler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josephwright I'm not sure which behavior is expected (#1183 has some discussions on it), but with current proposed change, if
aaapaper
is used as class option, it will remain in unused options list. See muzimuzhi@5875883.