unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] master 8217998 1/2: Preserve nonblank whitespace when indenting (Bug#32200)
       [not found] ` <20180722150858.7CB9E20499@vcs0.savannah.gnu.org>
@ 2018-07-22 15:29   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2018-07-22 15:29 UTC (permalink / raw)
  To: emacs-devel; +Cc: Noam Postavsky

> -  (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 <rms@gnu.org>
    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 <rms@gnu.org>
    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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-22 15:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20180722150856.814.99676@vcs0.savannah.gnu.org>
     [not found] ` <20180722150858.7CB9E20499@vcs0.savannah.gnu.org>
2018-07-22 15:29   ` [Emacs-diffs] master 8217998 1/2: Preserve nonblank whitespace when indenting (Bug#32200) Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).