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

Correct parenthese matching error #1784

Merged
merged 1 commit into from
Sep 17, 2022

Conversation

VitalyAnkh
Copy link
Contributor

@VitalyAnkh VitalyAnkh commented Sep 14, 2022

The emacs upstream will raise an error now when otherwise or t clause is not the last clause in a cl-case. There is a such cl-case in haskell-commands.el which is apparently a typo and should be fixed.

Reference: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=6d8f5161ead689b7a2e44a7de0a695f0ab4c833b

@VitalyAnkh VitalyAnkh marked this pull request as draft September 14, 2022 20:02
@VitalyAnkh VitalyAnkh force-pushed the fix_cl_case_error branch 3 times, most recently from 3209c75 to 0257ce3 Compare September 14, 2022 21:20
@VitalyAnkh VitalyAnkh changed the title Correct parenthese matching error. Correct parenthese matching error Sep 14, 2022
@VitalyAnkh VitalyAnkh marked this pull request as ready for review September 14, 2022 21:22
@jasagredo
Copy link
Contributor

I'm curious about why you ended up in this final commit. If I go through your series of pushes, it seems that at the beginning you did the same as I did in #1785. which is basically going from this:

(let* (...)
  (cl-case 
    ...
    (otherwise
      (if ...
        ...
        (haskell-command-echo-or-present response)))
    (haskell-utils-async-stop-watching-changes init-buffer)))

to this:

(let* (...)
  (cl-case 
    ...
    (otherwise
      (if ...
        ...
        (haskell-command-echo-or-present response))))
  (haskell-utils-async-stop-watching-changes init-buffer))

Instead now your PR results in this:

(let* (...)
  (cl-case 
    ...
    (otherwise
      (if ...
        ...
        (haskell-command-echo-or-present response))
      (haskell-utils-async-stop-watching-changes init-buffer))))

Is there any particular reason?

clause is not the last clause in a `cl-case`. There is a such `cl-case`
in `haskell-commands.el` which is apparently a typo and should be fixed.

Reference: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=6d8f5161ead689b7a2e44a7de0a695f0ab4c833b
@VitalyAnkh
Copy link
Contributor Author

@jasagredo Hi! I think you are right. The haskell-utils-async-stop-watching-changes should be in the same hierarchy as the cl-case. The code is updated now. Thanks!

@purcell purcell merged commit 9050341 into haskell:master Sep 17, 2022
@purcell
Copy link
Member

purcell commented Sep 17, 2022

Merged, thanks

@odanoburu
Copy link

It seems this is not released yet… can such a release be made? I just found and corrected this bug, only to find out it was already fixed :P

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.

None yet

4 participants