Skip to content

Commit

Permalink
Change of plan on absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jan 14, 2019
1 parent 042d868 commit 7b104f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 31 deletions.
4 changes: 0 additions & 4 deletions l3kernel/CHANGELOG.md
Expand Up @@ -7,10 +7,6 @@ this project uses date-based 'snapshot' version identifiers.

## [Unreleased]

### Changed

- Support for absolute key paths

## [2019-01-13]

### Added
Expand Down
33 changes: 6 additions & 27 deletions l3kernel/l3keys.dtx
Expand Up @@ -456,19 +456,6 @@
% As illustrated in the next section, this subdivision is
% particularly relevant to making multiple choices.
%
% \section{Absolute key paths}
%
% The use of |/| at the \emph{start} of a key name has a special meaning:
% this makes a key path \emph{absolute} rather than \emph{relative}. For
% example
% \begin{verbatim}
% \keys_define:nn { mymodule }
% { / othermodule / key .code:n = code }
% \end{verbatim}
% will define |othermodule/key| rather than |mymodule/othermoudle/key|. This
% is important when for example filtering keys, as it means that keys which
% are \emph{skipped} can later be set irrespective of the module setting.
%
% \section{Choice and multiple choice keys}
% \label{sec:l3keys:choice}
%
Expand Down Expand Up @@ -1354,13 +1341,9 @@
{
\tl_set:Nx \l_keys_path_tl
{
\str_if_eq:eeTF { \tl_head:n {#1} } { / }
{ \use_none:n #1 }
{
\tl_if_empty:NF \l_@@_module_tl
{ \l_@@_module_tl / }
#1
}
\tl_if_empty:NF \l_@@_module_tl
{ \l_@@_module_tl / }
#1
}
\tl_set:Nn \l_@@_property_tl { . #2 }
}
Expand Down Expand Up @@ -2216,13 +2199,9 @@
{
\tl_set:Nx \l_keys_path_tl
{
\str_if_eq:eeTF { \tl_head:n {#2} } { / }
{ \exp_args:No \@@_remove_spaces:n { \use_none:n #2 } }
{
\tl_if_blank:nF {#1}
{ #1 / }
\@@_remove_spaces:n {#2}
}
\tl_if_blank:nF {#1}
{ #1 / }
\@@_remove_spaces:n {#2}
}
\tl_clear:N \l_@@_module_tl
\exp_after:wN \@@_find_key_module:w \l_keys_path_tl / \q_stop
Expand Down

0 comments on commit 7b104f3

Please sign in to comment.