all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost Kremers <joost.m.kremers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: DWIM when yanking strings with leading or trailing spaces - an idea
Date: 4 Mar 2016 09:45:11 GMT	[thread overview]
Message-ID: <djt3p7F4rsnU2@mid.individual.net> (raw)
In-Reply-To: mailman.6691.1457083030.843.help-gnu-emacs@gnu.org

Marcin Borkowski wrote:
> In one case, it's easy: I have a function which inserts a dash, killing
> any other punctuation in that place, and if region is active, it
> surrounds it with dashes.  /Extremely/ useful.  Also, this:
> http://mbork.pl/2015-10-31_Smart_comma_and_other_punctuation .

Nice.

For me, though, this:

,----
| And now that I have this, I think I could do a similar thing with C-t,
| so that it transposes two chars before the point (as opposed as two
| chars around the point) if there is a space before the point.
`----

would be a bad idea, because I often use `transpose-chars' to correct
things like "th emistake". Which I unfortunately type quite often...

>> Anyway, my opinion shouldn't stop you from creating such a package, of
>> course. I mean, it bugs you, so that should be enough of a reason,
>>
>> right? ;-)
>
> Yes and no.  It's on the limit of the "automation horizon" (see
> https://xkcd.com/1205/) ;-)

So you basically posted your question looking for an excuse to do some
coding? ;-)


-- 
Joost Kremers                                   joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


  parent reply	other threads:[~2016-03-04  9:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6655.1457033503.843.help-gnu-emacs@gnu.org>
2016-03-03 23:25 ` DWIM when yanking strings with leading or trailing spaces - an idea Joost Kremers
2016-03-04  6:06   ` Marcin Borkowski
     [not found]   ` <mailman.6683.1457071595.843.help-gnu-emacs@gnu.org>
2016-03-04  8:50     ` Joost Kremers
2016-03-04  9:11       ` Marcin Borkowski
     [not found]       ` <mailman.6691.1457083030.843.help-gnu-emacs@gnu.org>
2016-03-04  9:45         ` Joost Kremers [this message]
2016-03-04 12:57           ` Marcin Borkowski
2016-03-03 19:31 Marcin Borkowski
2016-03-03 19:45 ` Kaushal Modi

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=djt3p7F4rsnU2@mid.individual.net \
    --to=joost.m.kremers@gmail.com \
    --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.