emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should we have a commit size guideline?


From: Artur Malabarba
Subject: Re: Should we have a commit size guideline?
Date: Wed, 16 Dec 2015 11:12:40 +0000

On 15 Dec 2015 2:23 pm, "David Kastrup" <address@hidden> wrote:
>
> Sure.
>
> But that commit is not in that class.
>
> -(defconst dir-locals-file ".dir-locals.el"
> +(defconst dir-locals-file ".dir-locals*.el"

I considered this part of the same feature. But I agree it could have been made on a follow up commit.

> -       (message ".dir-locals error: %s" (error-message-string err))
> +       (message "%s error: %s" dir-locals-file (error-message-string err))
>
> is a bug fix that is independent from the implementation.

True!

>        (when (and (string-prefix-p (car elt) file
> -                                 (memq system-type
> -                                       '(windows-nt cygwin ms-dos)))
> -                (> (length (car elt)) (length (car dir-elt))))
> -       (setq dir-elt elt)))
> +                                  (memq system-type
> +                                        '(windows-nt cygwin ms-dos)))
> +                 (> (length (car elt)) (length (car dir-elt))))
> +        (setq dir-elt elt)))
>      (if (and dir-elt
>
> is a gratuitous spacing change. 

Oops!

> So is most of
>
>      (if (and dir-elt
> -            (or (null locals-file)
> -                (<= (length (file-name-directory locals-file))
> -                    (length (car dir-elt)))))

Hm, I see what you mean. I generally trust emacs to not change tabs-to-spaces in lines I didn't touch. Maybe the indentation there was actually wrong (I'm reading this on a variable space font, so I can't tell), or maybe I changed something that changed the indentation and then changed it back again.

Anyway, I usually lookout for this before pushing, but in this case the indentation changes are quite mixed with code changes so it probably escaped me. Sorry about that.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]