Releases: tgbugs/orgstrap
1.2.4
-
Add
orgstrap-clone
andorgstrap-stamp
commands.orgstrap-clone
stores the current buffer and current or orgstrap
blockorgstrap-stamp
copies the expanded contents and headers of
that block to a new orgstrap block in a new file. Useful in cases
where users want to duplicate functionality in a new file.NOTE
orgstrap-stamp
only works for org version >= 8.3.4 which
means that it does not work for versions of Emacs < 26. -
orgstrap--add-orgstrap-block
addblock-contents
argument.This simplifies the implementation of stamp, and makes it possible
to set the initial contents of the orgstrap block programmatically.
There are some lingering issues with indentation that may need to
be resolved for this to work seamlessly. -
Fix byte compile bug from destructuring-bind not being aliased.
-
Fix for issues with noweb blocks containing multi-line docstrings.
We need this to test
orgstrap-clone
with this readme file. Without it
the checksum will not match in the stamped file due to differences in
the leading whitespace in docstrings. -
Make
orgstrap-revoke-eval-local-variables
obsolete.Replaced by the more compact
orgstrap-revoke-elvs
.
1.2.3
1.2.2
-
Do not run eval local variables when loading org-agenda.
orgstrap-always-eval
can be set tot
by users who want to
evaluate orgstrap blocks in all situations. More granular control is
provided by adding the full path of files that should always try to
run their orgstrap block toorgstrap-always-eval-whitelist
.In all cases, if the global setting for
enable-local-eval
is more
restrictive then it is honored (i.e., nil will block any execution
and the default'maybe
will continue to prompt). -
Add ability to revoke previously approved orgstrap-block-checksums.
Rapid revocation of permissions is an important part of any security
system. Therefore we now provide a way to revoke all previously
approved values fororgstrap-block-checksum
in a single command
orgstrap-revoke-checksums
. This command can also be provided
with a specific list of checksums to revoke. Another convenience function
orgstrap-revoke-current-buffer
is provided that revokes the checksum
of the orgstrap block for the current buffer. -
Add ability to revoke previously approved eval local variables.
As with revocations for
orgstrap-block-checksum
values, we also
need a way to revoke eval local variables. There is no granular
control. Useorgstrap-revoke-eval-local-variables
to nuke all
orgstrap eval local variables from orbit.
1.2.1
-
Fix bad startup visibility when using orgstrap.
You should run
M-:
(orgstrap--add-file-local-variables)
to
update embedded eval local variables.Running
org-babel-execute-src-block
changes the visibility of the
tree holding the orgstrap block. As a result the startup visibility
of any org file using orgstrap was incorrect. Adding a call to
org-set-startup-visibility
in the unwind forms ensures that
startup visibility is correct.
1.2
-
Mark
orgstrap-norm-func--prp-1.0
as obsolete.You should update any files using prp-1.0 to use prp-1.1.
Whenever there is a case where a change in the environment can cause
a change in the output of a normalization function there is a risk
that it could be exploited. -
Add
orgstrap-norm-func--prp-1.1
and make it the default norm func.This change does not effect the default behavior of
orgstrap
. The
reason for the change is to defensively shadowprint-length
and
print-level
tonil
so that if they are somehow non-nil, Emacs
will not truncate the contents of the src block prior to hashing.
1.1.1
1.1
-
Renamed existing
orgstrap-mode
toorgstrap-edit-mode
.This is a BREAKING CHANGE. Please update your workflows.
-
Added the new
orgstrap-mode
implementation.This is a regional minor mode for
org-mode
which makes it possible
to use orgstrap without the embedded local variables. This allows
for greater security at the expense of portability, depending on the
exact use case. By a stroke of good fortune it is possible to use
thehack-local-variables
hooks to trap and remove the embedded
local variables if they are present so that the orgstrap block is
not evaluated twice. -
Added
orgstrap-always-edit
as a custom variable.If non-nil then
orgstrap-edit-mode
will be automatically activated
byorgstrap-mode
. -
orgstrap--add-file-local-variables
update existingeval:
vars.This change makes it vastly easier to switch between portable and
minimal implementations, and should make it easier to switch the
normalization function once we get that implemented.If an existing orgstrap eval file local variable is detected it is
removed and the latest version is added. Othereval:
variables are
not modified. Note however that the orgstrap eval variable will
always be placed first.