Skip to content
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

Fix error in optimized nconc end tracking. #157

Merged
merged 1 commit into from
Mar 12, 2023
Merged

Fix error in optimized nconc end tracking. #157

merged 1 commit into from
Mar 12, 2023

Conversation

okamsn
Copy link
Owner

@okamsn okamsn commented Mar 12, 2023

The value should be nreverse-ed when prepending to a backwards list,
but wasn't in all cases.

This error was also made in loopy--construct-accum-append, though it was fixed
there a few months ago.

The value should be `nreverse`-ed when prepending to a backwards list,
but wasn't in all cases.

This error was also made in `loopy--construct-accum-append`, though it was fixed
there a few months ago.
@okamsn okamsn merged commit 0d806d7 into master Mar 12, 2023
okamsn added a commit that referenced this pull request Mar 14, 2023
- Update CHANGELOG and README.
- Update version numbers.

## 0.11.1

Released 2023-03-13.

### Bugs Fixed

- Fix `nconc`-ing onto the non-optimized end of an optimized collection, as in
  the below example ([#157]).

  ```elisp
  ;; => ((3 4 1 2) (1 2 3 4))
  (loopy (accum-opt (opt-end end) (opt-start start))
         (list i '((1 2) (3 4)))
         (nconc opt-end (copy-sequence i) :at start)
         (nconc opt-start (copy-sequence i) :at end)
         (finally-return opt-end opt-start))
  ```

### Other Changes

- Added [Compat](https://github.com/emacs-compat/compat) as a
  dependency ([#152]).  This is required for generalized variables in property
  lists.  This feature was added in Emacs 28, which we had been creating if not
  found.  It is better to let Compat do this for us.

[#152]: #152
[#157]: #157
@okamsn okamsn deleted the fix-nconc branch February 25, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant