all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Detlev Zundel'" <dzu@denx.de>, <help-gnu-emacs@gnu.org>
Subject: RE: delete-horizontal-space and NO-BREAK SPACE
Date: Mon, 23 Aug 2010 08:50:53 -0700	[thread overview]
Message-ID: <93D7C2F0411247BE81A74AAFB205F2C9@us.oracle.com> (raw)
In-Reply-To: <m2fwy5a1y9.fsf@ohwell.denx.de>

> more and more often I get emails with NO-BREAK SPACE characters (ascii
> 160) in them which are used for alignment purposes.  When replying to
> such e-mails, I usually have to edit this a lot and wish 'M-\' would
> erase the whole stretch of the characters.
> 
> Looking up the definition of delete-horizontal-space, it is 
> obvious that it doesn't do this as it only erases " \t".
> 
> Is there another nice function really erasing all space characters
> (i.e. chars belonging to the "space" category) or should the 
> funtion be improved?

I would suggest that you file an enhancement request, via `M-x
report-emacs-bug'. The Emacs developers will then DTRT (decide whether and where
to enhance Emacs for this).

IMO, there should be a user option that controls what "whitespace" is affected
by this and similar commands (e.g. `fixup-whitespace',
`delete-trailing-whitespace', `delete-blank-lines').

And modes and other functions should feel free to bind that option when (they
are sure it is truly) appropriate.

[Yes, I know that some consider it heresy to allow/endorse Lisp binding of user
options. I do not. Sometimes it makes sense for a function to control an option
value, but yes of course, generally the user knows best. If it is problematic
for some given option/context, then value choices can be provided for both
possibilities - some values inform programs not to override/bind. E.g., if
non-nil (or whatever), then just bind to the existing value (essentially a
no-op), respecting the user choice, else do something the program considers more
appropriate.]




  reply	other threads:[~2010-08-23 15:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 13:33 delete-horizontal-space and NO-BREAK SPACE Detlev Zundel
2010-08-23 15:50 ` Drew Adams [this message]
2010-08-23 16:28 ` Andreas Röhler
2010-08-23 21:15   ` Detlev Zundel
2010-08-23 22:11     ` Drew Adams
2010-08-24  6:16     ` Andreas Röhler

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

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

  git send-email \
    --in-reply-to=93D7C2F0411247BE81A74AAFB205F2C9@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=dzu@denx.de \
    --cc=help-gnu-emacs@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.