From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
To: Daniel Colascione <danc@merrillpress.com>
Cc: xahlee@gmail.com, Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Patch to change just-one-space
Date: Mon, 22 Nov 2010 21:35:13 +0100 [thread overview]
Message-ID: <AANLkTi=1JdG3WHxMEC3sjyVHK1SpqohZonp=MbEbtcik@mail.gmail.com> (raw)
In-Reply-To: <7b501d5c0912311255w62051104i76e784d23c0be207@mail.gmail.com>
2009/12/31 Deniz Dogan <deniz.a.m.dogan@gmail.com>:
> 2009/8/14 Daniel Colascione <danc@merrillpress.com>:
>> On Aug 13, 2009, at 7:30 PM, Deniz Dogan wrote:
>>>
>>> Not a bad idea. I'd like to take your idea and revise it a bit: If
>>> there are only whitespace characters characters between point and EOL,
>>> nuke including newlines. Otherwise, nuke excluding newlines.
>>
>> just-one-space with a negative prefix argument is currently meaningless
>> (more precisely, negative arguments are treated as 0). Why not make a
>> negative argument mean "kill including newlines"? That way, you can just
>> whack M-- M-SPC to get the behavior you want.
>>
>
> Attached is a bzr bundle which does this. If the user passes the
> argument -N, it will remove any whitespace characters (spaces, tabs,
> carriage returns, newlines) and leave N spaces. Unfortunately I
> couldn't think of a good way to make e.g. "M-- M-0 M-SPC" leave 0
> spaces.
>
Almost a year has passed and this has probably been forgotten. Would
anyone mind if we make this change?
I do feel that it's not entirely semantic to change the behavior of
the keybinding this drastically with just a negative argument, but I
definitely think it's useful enough to think about.
--
Deniz Dogan
next prev parent reply other threads:[~2010-11-22 20:35 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-13 20:37 Patch to change just-one-space Deniz Dogan
2009-08-13 23:12 ` Xah Lee
2009-08-13 23:30 ` Deniz Dogan
2009-08-13 23:35 ` Daniel Colascione
2009-08-13 23:37 ` Deniz Dogan
2009-08-14 0:51 ` Robert J. Chassell
2009-08-14 0:58 ` Deniz Dogan
2009-08-14 10:37 ` Teemu Likonen
2009-12-31 20:55 ` Deniz Dogan
2010-11-22 20:35 ` Deniz Dogan [this message]
2010-11-22 22:16 ` Stefan Monnier
2010-11-23 8:29 ` Tassilo Horn
2010-12-06 18:22 ` Stefan Monnier
2010-12-07 0:34 ` Chong Yidong
2010-12-07 9:43 ` Tassilo Horn
2010-12-07 19:45 ` Tassilo Horn
2010-12-09 3:57 ` Stefan Monnier
2009-08-14 2:24 ` Xah Lee
2009-08-14 6:53 ` Deniz Dogan
2009-08-14 15:26 ` capitalize-dwim (was: Patch to change just-one-space) Stefan Monnier
2009-08-14 15:36 ` Xah Lee
2009-08-14 16:33 ` capitalize-dwim joakim
2009-08-15 2:31 ` capitalize-dwim Richard Stallman
2009-08-14 8:05 ` Patch to change just-one-space David Kastrup
2009-08-13 23:19 ` Juri Linkov
2009-08-13 23:33 ` Deniz Dogan
2009-08-14 2:10 ` Stephen J. Turnbull
2009-08-14 6:59 ` Deniz Dogan
2009-08-14 12:19 ` Andreas Roehler
2009-08-14 17:10 ` Stephen J. Turnbull
2009-08-14 15:12 ` Stefan Monnier
2009-08-14 15:16 ` Lennart Borgman
2009-08-14 1:14 ` Miles Bader
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='AANLkTi=1JdG3WHxMEC3sjyVHK1SpqohZonp=MbEbtcik@mail.gmail.com' \
--to=deniz.a.m.dogan@gmail.com \
--cc=danc@merrillpress.com \
--cc=emacs-devel@gnu.org \
--cc=xahlee@gmail.com \
/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).