unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 'Juri Linkov' <juri@jurta.org>, emacs-devel@gnu.org
Subject: Re: shouldn't `delete-blank-lines' treat form-feed as whitespace?
Date: Wed, 03 Mar 2010 23:28:36 -0500	[thread overview]
Message-ID: <jwvr5o04t2a.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <45AE884B58464C6F8533A686709EB31B@us.oracle.com> (Drew Adams's message of "Wed, 3 Mar 2010 11:54:09 -0800")

> Yes, I suppose the notion of whitespace is mode-dependent, and
> [:space:] should capture that notion appropriately for each
> mode. Good point.

It's actually even more delicate than that.

There's basically the notion of "blank" for characters that have no
associated semantics in the corresponding language.  And then there's
the notion of "blank" for characters which *users* consider as having
no semantics.

Usually the first includes form-feed and other such things and is best
handled by forward-comment.  Usually the second only includes \s, \t,
\n, \r but doesn't include form-feed.

syntax-tables usually use the `space' syntax for \s, \t, form-feed, \r,
and sometimes \n (but not always because of newline-terminated
comments).  So using the `space' syntax is usually not a good choice
because of the \n issue and because it doesn't handle comments.


        Stefan




  reply	other threads:[~2010-03-04  4:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-28 20:44 shouldn't `delete-blank-lines' treat form-feed as whitespace? Drew Adams
2010-03-03 19:32 ` Juri Linkov
2010-03-03 19:54   ` Drew Adams
2010-03-04  4:28     ` Stefan Monnier [this message]
2010-03-05  8:48       ` Eli Zaretskii
2010-03-06 17:57         ` Juri Linkov
2010-03-06 18:56           ` Eli Zaretskii
2010-03-03 21:35 ` David De La Harpe Golden
2010-03-03 22:21   ` Drew Adams
2010-03-04  1:40   ` Miles Bader
2010-03-04  6:21     ` Drew Adams
     [not found] <E1No0yT-0007vs-HZ@mail.fsf.org>
2010-03-06 22:34 ` Jonathan Yavner
2010-03-07  4:14   ` Eli Zaretskii
2010-03-07  4:34     ` Jonathan Yavner
2010-03-07 17:42       ` Eli Zaretskii
2010-03-07 18:11       ` Stephen J. Turnbull
2010-03-07  5:08     ` Stephen J. Turnbull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvr5o04t2a.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).