emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 8217998 1/2: Preserve nonblank whitespace when


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 8217998 1/2: Preserve nonblank whitespace when indenting (Bug#32200)
Date: Sun, 22 Jul 2018 11:29:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> -  (back-to-indentation)
> +  (beginning-of-line 1)
> +  (skip-chars-forward " \t")

Makes me wonder: why does back-to-indentation skip over those other
"whitespace" chars?

This behavior was introduced by:

    commit 0ea364e605cb3010fbf3314344a2f3ecfb38f3a3
    Author: Richard M. Stallman <address@hidden>
    Date:   Tue Feb 4 10:41:10 2003 +0000
    
        (back-to-indentation): Skip all whitespace except for newlines.

and then its effect slightly reduced by:

    commit b986346637b8ed9e1e79355a2707f42d7ace37fe
    Author: Richard M. Stallman <address@hidden>
    Date:   Thu Apr 24 01:57:46 2003 +0000
    
        (back-to-indentation): Call backward-prefix-chars.

In my experience, using "whitespace syntax" is just not really a good
idea in general: it's used to save having to enumerate the chars we
consider as whitespace, but "chars we consider as whitespace" is not
nearly as well defined as one might think, so sooner or later we
discover that the whitespace syntax applies to more chars than one
would like.


        Stefan



reply via email to

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