nicferrier / emacs-noflet

noflet - nic's overriding flet, for fleting functions for the purpose of decorating them
72 stars 17 forks source link

Negative indentation with indent-tabs-mode. #14

Closed mpontus closed 7 years ago

mpontus commented 9 years ago

Following example should provide context:

;; -*- mode: emacs-lisp; indent-tabs-mode: t; tab-width: 2; -*- 
(_______________________ (catch 'ok
                           (noflet ((foo () (throw 'ok))) 
                (foo))
                           (noflet ((bar () 
                         (throw 'ok))) 
                (bar))
                           (noflet
                ((baz () 
           (throw 'ok))) 
                (baz))))

Result of the formula used for indentation will differ depending on usage of tabs for indentation. I hope I'm not mistaken to see it as unintended behavior.

mpontus commented 9 years ago

Without tabs, there's also a smaller issue:

 (noflet ((foo ())
           (bar ())
           (baz ())))

i.e. following bidings are slightly shifted to the right.