Skip to content

Releases: tgbugs/orgstrap

1.2.4

09 Nov 20:00
Compare
Choose a tag to compare
  • Add orgstrap-clone and orgstrap-stamp commands.

    orgstrap-clone stores the current buffer and current or orgstrap
    block orgstrap-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 add block-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

19 Oct 05:19
Compare
Choose a tag to compare
  • Add orgstrap-file-blacklist to block eval of specific files.

    The functionality only works if orgstrap-mode is enabled.

1.2.2

18 Oct 23:38
Compare
Choose a tag to compare
  • Do not run eval local variables when loading org-agenda.

    orgstrap-always-eval can be set to t 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 to orgstrap-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 for orgstrap-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. Use orgstrap-revoke-eval-local-variables to nuke all
    orgstrap eval local variables from orbit.

1.2.1

12 Oct 21:28
Compare
Choose a tag to compare
  • 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

09 Oct 05:59
Compare
Choose a tag to compare
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 shadow print-length and
    print-level to nil so that if they are somehow non-nil, Emacs
    will not truncate the contents of the src block prior to hashing.

1.1.1

01 Oct 23:40
Compare
Choose a tag to compare

Fix orgstrap--hack-lv to remove itself from the local hack-local-variables-hook.

1.1

25 Sep 05:08
Compare
Choose a tag to compare
1.1
  • Renamed existing orgstrap-mode to orgstrap-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
    the hack-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
    by orgstrap-mode.

  • orgstrap--add-file-local-variables update existing eval: 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. Other eval: variables are
    not modified. Note however that the orgstrap eval variable will
    always be placed first.

1.0

08 Sep 04:01
Compare
Choose a tag to compare
1.0

1.0 release for melpa stable.