unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: delete-region - is their a way to get the deleted text?
Date: Fri, 14 Jun 2013 10:15:45 +0200	[thread overview]
Message-ID: <87hah1w1ji.fsf@gmail.com> (raw)
In-Reply-To: 31E46449-9E95-4CCB-91CD-85AD1E731414@Web.DE

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

Hi Peter, Hi Barry,
> Am 13.06.2013 um 23:08 schrieb Barry Margolin:
>
>> I can't figure out what this interpretation means.

sorry for the confusion my comma-less English caused, you are not the
first ones critizising this (it actually started in high-school) and its
not restricted to Englisch (the number of commas in some German texts I
wrote doubled after a second author/editor had a look at them ;). 

But in German in actually no problem anymore, since they made so many
language reforms in the past decades that we lost track and started to
use phonetic spelling again like in Martin Luther's time ...

> That's OK! From time to time I am satisfied when I understand what I
> said. Or wrote.
>
>> Are "deleted with" and "inside that function" both saying the same thing?
>
> Not to me! But I am not an US American.
>
>> Where do the missing commas go?
>
> For the German language I would know it by heart, we have (no, we *had*, in
> last millennium) clear rules. For English I would wish I would like to know
> the exact rules – if there were any.

I meant this:

- there is a function that does what I want
- except it uses delete-region in its implementation
- because I need access to the deleted string

and my question was, [watch the comma!] if there is a way to resuse the
function, [!] and somehow recover the deleted region? It was not about
writing my own function with an alternative implementation (e.g.
kill-region). 

>> For the interpretation you have, isn't that what wipe-region does?
>
> I don't know that function. When was it deleted? I mentioned to Thorsten a
> similar function, "kill-region", which, as far as I know, is interactively
> putting the wiped out text into the kill-ring.

There are some interesting hacks proposed as solutions in the thread,
thanks for your interest!

-- 
cheers,
Thorsten




  reply	other threads:[~2013-06-14  8:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13  8:49 delete-region - is their a way to get the deleted text? Thorsten Jolitz
2013-06-13  8:56 ` Peter Dyballa
2013-06-13  9:25 ` Eric Abrahamsen
2013-06-13 10:00   ` Peter Dyballa
2013-06-13 10:20     ` Thorsten Jolitz
2013-06-13 10:23     ` Eric Abrahamsen
     [not found]   ` <mailman.1532.1371117614.22516.help-gnu-emacs@gnu.org>
2013-06-13 13:33     ` Barry Margolin
2013-06-13 18:31       ` Peter Dyballa
     [not found]       ` <mailman.1597.1371148312.22516.help-gnu-emacs@gnu.org>
2013-06-13 18:51         ` Barry Margolin
2013-06-13 19:41           ` Peter Dyballa
     [not found]           ` <mailman.1599.1371152513.22516.help-gnu-emacs@gnu.org>
2013-06-13 21:08             ` Barry Margolin
2013-06-13 23:00               ` Peter Dyballa
2013-06-14  8:15                 ` Thorsten Jolitz [this message]
2013-06-14  8:37                   ` Peter Dyballa
2013-06-13 16:16 ` David Engster
2013-06-14  8:20   ` Thorsten Jolitz
     [not found] <mailman.1524.1371113397.22516.help-gnu-emacs@gnu.org>
2013-06-13 15:11 ` Stefan Monnier
2013-06-14  8:18   ` Thorsten Jolitz

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=87hah1w1ji.fsf@gmail.com \
    --to=tjolitz@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.
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).