Open habruening opened 2 years ago
I'm having trouble reproducing this issue since Github collapsed all the spaces in your code snippets. Could you format the code in code blocks? The MarkDown should look like something like
```lisp
(defun make-key-button-instance-with-action (&key button short-help long-help action)
(g-signal-connect button "clicked"
(lambda (widget)
(declare (ignore widget))
(funcall action)))
(make-key-button-instance :button button :short-help short-help :long-help long-help))
Yes, Github deletes the spaces. But the problem is that the closing bracket in line 3 is deleted and the result is incorrect code.
This
(defun make-key-button-instance-with-action (&key button short-help long-help action)
(g-signal-connect button "clicked"
(lambda (widget)
(declare (ignore widget))
(funcall action)))
(make-key-button-instance :button button :short-help short-help :long-help long-help))
becomes this
(defun make-key-button-instance-with-action (&key button short-help long-help action)
(g-signal-connect button "clicked"
(lambda (widget
(declare (ignore widget))
(funcall action))))
(make-key-button-instance :button button :short-help short-help :long-help long-help))
I'm still having trouble replicating this. Could you clarify some details that might help me replicate it?
My current guess at what's happening is that paredit is mis-indenting, then parinfer "corrects" the parenthesis to match the indentation.
Interestingly to 6, if I have the text in a separate file, then the tab key has no effect on the very first line. Only in the second line. But it behaves correctly. This is different to the file where I originally had the code.
I found out, that when I press tabulator twice, the code gets corrected.
The command Lisp Paredit: Indent works incorrectly.
This code
(defun make-key-button-instance-with-action (&key button short-help long-help action) (g-signal-connect button "clicked" (lambda (widget) (declare (ignore widget)) (funcall action))) (make-key-button-instance :button button :short-help short-help :long-help long-help))
is incorrectly replaced by this
(defun make-key-button-instance-with-action (&key button short-help long-help action) (g-signal-connect button "clicked" (lambda (widget (declare (ignore widget)) (funcall action)))) (make-key-button-instance :button button :short-help short-help :long-help long-help))
I have lisp-paredit 0.8.0 installed. I found out that the problem does not occur when I disable the package parinfer, which is also installed.