emacs-devel
[Top][All Lists]
Advanced

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

Re: What's the line length limit in the Emacs codebase?


From: Michael Albinus
Subject: Re: What's the line length limit in the Emacs codebase?
Date: Sat, 26 Dec 2020 12:22:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Yuri Khan <yuri.v.khan@gmail.com> writes:

Hi Yuri,

>> In Lisp code, I break such long strings into substrings, wrapped by concat.
>> Just for the better readability with 80 columns.
>
> I’m used to doing the same, but some coding style guides present a
> good reason to avoid doing that[1]:
>
>     6.2: Strings that cause the line to go over 100 characters
>     should not be written across multiple lines using string concatenation.
>
>     > Why? Broken strings are painful to work with
>     > and make code less searchable.
>
> [1]: https://github.com/airbnb/javascript#strings--line-length
>
> I have actually found myself trying to grep for an error message ang
> failing to find it in code at first try because it was line-broken at
> a non-obvious point.

Yes, it is always a trade-off. However, I'm failing to find error
messages in the code much more often because they are produced by
format, which could be banned for the same reason.

Best regards, Michael.



reply via email to

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