Skip to content

Releases: tgbugs/orgstrap

1.5.5

08 Apr 22:38
Compare
Choose a tag to compare
  • Update orgstrap--shebang-body to set find-file-literally to nil.

    If you use shebang blocks you should update them so that a call to
    find-file on buffer-file-name of the orgstrapped file will
    continue without prompting the user.

1.5.3

02 Feb 02:38
Compare
Choose a tag to compare
  • Ignore errors from org-set-visibility-according-to-property.

    Recent changes to org-set-visibility-according-to-property result
    in errors if it is called when a file is not in org-mode and/or
    when a buffer is in org-mode but Emacs is noninteractive.

    This requires and update to the elvs which wraps the call in
    ignore-errors which is more space efficient than e.g. testing
    whether we are non-interactive and also mostly fool future proof.

    If you use orgstrap shebang blocks you should updated your elvs.

1.5.2

22 Dec 17:25
Compare
Choose a tag to compare
  • Update orgstrap--shebang-body to simplify and improve safety.

    If you use shebang blocks you should update them so that shebang
    blocks are not affected by leaking environment variables. See
    shebang.org#shell for a full explication of the operation of each
    line of shell/powershell code.

  • Add ability to update shebang blocks to latest version.

    New interactive function orgstrap-update-shebang-block updates an
    existing shebang block to the latest orgstrap--shebang-body.
    Internally orgstrap--add-shebang-block was updated to accept an
    optional update argument which is used to control whether to add a
    new or update an existing block.

1.5.1

16 Dec 01:35
Compare
Choose a tag to compare
  • Update orgstrap--shebang-body so that shebang blocks pass args correctly.

    If you use shebang blocks you should update them so that they pass
    the correct args to emacs. See shebang.org#shell for more details on
    the changes.

1.5

15 Jul 00:24
Compare
Choose a tag to compare
1.5
  • Regularize behavior of orgstrap-whitelist-file.

    An internal call to find-file-literally has different behavior in
    27 vs 28 (see notes about that in ./shebang.org).

  • Rename all normalization functions to remove use of ..

    See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55645 for details.

    You will need to update any orgstrapped files to use the new names.
    The simplest way to do this is to update to to 1.5 and then delete
    the prop line local variables and then run orgstrap-init.

  • Add a check to ensure that only portable symbol names are used.

    Symbols with [.?] appearing anywhere other than at the start of
    the symbol are banned since their prin1 representation diverges
    across the 28/29 boundary.

    If you have orgstrap blocks that contain such symbols you will need
    to change the symbol names. An error will be raised when calling
    orgstrap-add-block-checksum with a list of symbols that need to be
    changed.

1.4

26 Nov 22:02
Compare
Choose a tag to compare
1.4
  • Update orgstrap-init so that it can insert a shebang block.

    Use 2 or more prefix arguments to add a shebang block when using
    orgsgrap-init. For example C-u C-u C-u M-x orgstrap-init.

1.3

26 Sep 23:17
Compare
Choose a tag to compare
1.3
  • Remove all orgstrap-do variables.

    The core of orgstrap is not the right place to maintain these. They
    will reappear under ow-do in the future.

  • Add orgstrap-norm-func--dprp-1.0 and make it the default norm func.

    The default normalization function for orgstrap is now invariant to
    changes in the docstring for defun, defun-local, defmacro,
    defvar, defvar-local, defconst, and defcustom. This allows
    improved documentation without requiring the user to re-audit.

    Note that orgstrap-norm-func--prp-1.1 has NOT been deprecated, but
    is no longer the default. It is still useful if for whatever reason
    you want to minimize the elvs.

  • Add support for batch execution.

    The preferred method is to use an org shebang block (see
    <./shebang.md>) It is also possible to maintain an automatically
    updating list of developer checksums. This approach was deemed to be
    silly given shebang blocks, however the functionality is retained.

  • Add orgstrap-whitelist-file to make it easier to mark known safe
    files in batch.

    See the docstring for example usage.

  • Add orgstrap-inspect-elvs to inspect the elvs for the current buffer.

    The command also calculates the elvs checksum for comparison.

    Known elv checksums for this release are below. The order is
    minimal, minimal-noweb, and portable (aka minimal-noweb-eval).

    For prp-1.1
    446d0c80d72bb89dd149181e6a24eafa011d12d6dc99fad958a03ddebd9a95ad
    b294539a74f2a1932d39790d6377a4229bd3d5e84df64d968baa8ff3f85349cc
    543e3400c80e2cc7b9bf94b1799d1460b240776c2c7415a2f6c0c7a9507978ef

    For dprp-1.0
    aa080a6469c22dfe960c43fa3bff3b92a6bc3da9383ec8fcd7d0a019192e7aa0
    72c52a3483905aff6b83c6cd2c36899a2a8d1cbc603b6e5ce8c9e98f0dd7b099
    9e33bc67b8850147962edcece4ea1193bb6cf3711264a26bde91b1f838912ffc

  • Fix org-edit-mode so that it now activates correctly.

  • Fix orgstrap-init so that it no longer misplaces the link to the
    orgstrap block if there is already content in the buffer.

  • Fix orgstrap-init so that invocation in files with existing elvs
    updates only the existing orgstrap elv and preserves other elvs.

  • Fix orgstrap-init to read and pass the current value of
    orgstrap-norm-func-name when creating local variables.

    If orgstrap-norm-func-name is missing, the default value of
    orgstrap-norm-func is used.

    This prevents klobbering while also providing an easy way to update
    the normalization function — just update the variable value and
    run orgstrap-init.

  • Fix orgstrap-norm-func by always declaring it with defvar-local.

  • Update the elvs to handle issues with symlinks and vc mode. The
    core functionality remains compatible.

  • Update the elvs so that org-confirm-babel-evaluate can be set by
    an orgstrap block without having to modify the elvs.

  • Update the elvs so that they only restore visibility set via
    property drawers.

    This makes it possible to use the orgstrap block to control initial
    visibility and narrowing to simplify the presentation of orgstrapped
    files (and avoid distracting users with the orgstrap machinery).

  • Update orgstrap-init to put the Bootstrap section at the end of
    the file and to put the elvs in an archived heading inside that.

    This pattern has been found to be quite effective for a number of
    different use cases.

1.2.7

29 Nov 06:07
Compare
Choose a tag to compare
  • Fix bad defaults on orgstrap-do-* custom variables.

    If these are not set to t by default then it is impossible
    individual blocks to know whether a nil value was intentional on the
    part of the user or not. Users must set values to nil in their
    config if they do not want certain sections to run.

1.2.6

29 Nov 03:46
Compare
Choose a tag to compare
  • Ignore orgstrap-block-checksum when loading org-agenda.

    If enable-local-eval is t (following the behavior described in the
    changelog), then orgstrap-block-checksum is not
    ignored and if the local variable value has not been added to the
    safe list then the user will be prompted.

  • Add orgstrap-do-* variables.

    Boolean control variables that can be used enable/disable standard
    functionality/steps needed by org files. See <./do.md> for
    more details.

1.2.5

10 Nov 04:14
Compare
Choose a tag to compare
  • Improve behavior of orgstrap-blacklist-current-file.

    Now revokes the current buffer checksum by default, this can be
    overridden by providing a universal argument. The blacklist is
    immediately saved via customize-save-variable.

  • Fix orgstrap-mode to use the universal argument.

    Behavior is now correct when (orgstrap-mode t) is called.