From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: delete-region - is their a way to get the deleted text? Date: Thu, 13 Jun 2013 12:20:48 +0200 Message-ID: <87ppvqs45b.fsf@gmail.com> References: <87wqpys8d8.fsf@gmail.com> <874nd2bbwc.fsf@ericabrahamsen.net> <65EB4BEC-26BF-4D17-9C52-717DCB445C94@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1371118895 3694 80.91.229.3 (13 Jun 2013 10:21:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Jun 2013 10:21:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 13 12:21:35 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Un4el-00011u-J0 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Jun 2013 12:21:27 +0200 Original-Received: from localhost ([::1]:54765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un4el-0003PW-2F for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Jun 2013 06:21:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un4eS-0003Jv-7C for help-gnu-emacs@gnu.org; Thu, 13 Jun 2013 06:21:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un4eN-0004X1-DZ for help-gnu-emacs@gnu.org; Thu, 13 Jun 2013 06:21:08 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un4eN-0004Wl-1p for help-gnu-emacs@gnu.org; Thu, 13 Jun 2013 06:21:03 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Un4eK-0000f1-5i for help-gnu-emacs@gnu.org; Thu, 13 Jun 2013 12:21:00 +0200 Original-Received: from g231108135.adsl.alicedsl.de ([92.231.108.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jun 2013 12:21:00 +0200 Original-Received: from tjolitz by g231108135.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jun 2013 12:21:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231108135.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:8LUvWZB/yeZHLrytQ24HEPkbx0I= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91495 Archived-At: Peter Dyballa writes: > Am 13.06.2013 um 11:25 schrieb Eric Abrahamsen: > >> delete-and-extract-region > > Which is not interactive… ,-------------------------------- | (defun fun-from-other-pkg () | [... do a lot of things ...] | (delete-region ...) | [... do more things ...] ) `-------------------------------- It must not be interactive, the problem is that I could reuse `fun-from-other-pkg' as-is if I could get my hands on the deleted region, but I can't change that function. Of course I could simply copy it and replace `delete-region' with `delete-and-extract-region' (thanks for the tip!), and thats probably what I' going to do, but I wanted to make sure that there is really no way to recover the deleted string of `delete-region'. -- cheers, Thorsten