DogLooksGood / parinfer-mode

Parinfer for Emacs :)
GNU General Public License v3.0
407 stars 33 forks source link

Parenthesis and Indent re-arangement #54

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello Shaun,

There is an issue happens in both Indent and Paren mode: When adding a ; comment inside a function at the right side of a form, parinfer adds parenthesis and re-arranges everything. For example:

It's written normally (and works ok):
(defun convert-to-letter (num)
  (cond ((equal num 1) "O")
        ((equal num 10) "X") 
        (t " ")))

and when adding a ; comment to any of the cond's clauses, it's becoming:
(defun convert-to-letter (num)
  (cond ((equal num 1) "O"))  ; some comment
  ((equal num 10) "X")
  (t " ")) 

Emacs 25.2

Thank you very much. nicon

fmnoise commented 7 years ago

works good for me, probably it's some another plugin behavior

emacs 25.2  
parinfer 20170710.821
ghost commented 7 years ago

Do you have any idea of how i could trace this? Should i disable them all and enable them back one by checking parinfer?

nicon

fmnoise commented 7 years ago

yes, I think that's good approach

ghost commented 7 years ago

Ok thanx. I'll try and let you know about it.