semantic-refactor icon indicating copy to clipboard operation
semantic-refactor copied to clipboard

Problem with formatting setq and setq-default

Open dan-forsberg opened this issue 9 years ago • 1 comments

I'm not sure how to describe this in words, so I'll just show my problem.

Original code

(setq-default some-variable-with-long-name t
                  some-other-variable
              nil
              some-variable 3)

(setq abc-variable nil
          def-variable t)

Expected result after srefactor-lisp-format-buffer

(setq-default some-variable-with-long-name t
              some-other-variable nil
              some-variable 3)

(setq abc-variable nil
      def-variable t)

Actual result

(setq-default some-variable-with-long-name
              t some-other-variable nil some-variable 3)

(setq abc-variable nil def-variable
      t)

fill-column is 80

dan-forsberg avatar Apr 21 '16 10:04 dan-forsberg

Thanks for the report. I will look into it soon.

tuhdo avatar Apr 21 '16 10:04 tuhdo