From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: How to delete the parens around a sexp? Date: Tue, 22 Sep 2015 13:54:53 +0200 Message-ID: <5601418D.8090803@easy-emacs.de> References: <87vbb23nrn.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1442922945 1226 80.91.229.3 (22 Sep 2015 11:55:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2015 11:55:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 22 13:55:28 2015 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 1ZeMAS-00082j-4D for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Sep 2015 13:55:28 +0200 Original-Received: from localhost ([::1]:38690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeMAR-0003XC-Fs for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Sep 2015 07:55:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeMAC-0003UC-89 for help-gnu-emacs@gnu.org; Tue, 22 Sep 2015 07:55:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeMA8-0007np-Vt for help-gnu-emacs@gnu.org; Tue, 22 Sep 2015 07:55:12 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.13]:62133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeMA8-0007mF-Ph for help-gnu-emacs@gnu.org; Tue, 22 Sep 2015 07:55:08 -0400 Original-Received: from [192.168.178.31] ([77.6.251.217]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0LeM6H-1aTyjP38BB-00q9vv for ; Tue, 22 Sep 2015 13:55:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <87vbb23nrn.fsf@mbork.pl> X-Provags-ID: V03:K0:24ao9499jXfFeKDk6v2W7pcBeUZ+8NziGBUBFCL1T7RqMyuT4UP ssir1+C3aoxi/YHGf/wUUj1JdFMecsrgc2EcL9ITktuqEs/SW5VC8kie8OtZRYu1BvVew7Q mL//XU0Z/j8q0N8q8DVBn2SkVxHB/VKpsQKjxbaH5zgof/C0FdpvuyjLu6fZPpICDJivCDu GgDdcuHDa+wZicYfxKzyg== X-UI-Out-Filterresults: notjunk:1;V01:K0:YwSoTB8f91M=:mb/GoyYcadcr112wc504Zs oC9wC61jfLq/YVyXDKSzr2CnEer+W4a9w2tuYfhQMWK6OBAtb77ulC3GRTA3Cf6vosQ+8BYUl d6Wo25j1S0sW+3VIW8rQFy8uKUR8rwlQY519UjGNCrDpMLroEzkcm9ID42p9BXj1DzCwTernu N1IJIJbOr0FE/XmZ5ipRsQ7Usu/q7h/H4Nt3jEZ+ZkZjYXpIlXmmGPHYOJ6xJl/3wMu8NXJQ3 YbESJ/oUHvTXhE6J3+JA30r6eOvM7PuM1TXQ5yKFVSr7+W/2Jw5Wl3F4JpRPcG/R5lneQCa4e FIFv5CfuyziaWIFZWSm6gcDbOe4uDRu18TLAtfc/tKQiITzp53X+5AdoLyHKkvWtdKMgZlB6C RD6Y12XuN7QLlhMy1hbdblD+pO4HCxuNPjzwOh+E0GH9fXdsoY/a3kqvQrAqfTFrRd59af2pG l+9MRLWnSMPgtI+65xb5a6LORsYiT5FAl4pHxJIybERsH/7ptj1fxesyNf0NYdQoThKQ7wafb IZ2DnuX14o2qWrkA5zGCM4vMcOEn32ruHe9dGryf1SGacV+12p4rjW23kJEIsbIsf8EaIxwi8 Q90dQcW4bvuWDzFXnAP51vx7VqldRJLyS2C3J94P1ynCwceKRWZ+9yuOYZ6c3Kg43/uNswGss K8415OHLnbMe8y5qOpnSm5Vcc0aFCEmw8LRwCJhivNvA6qONjxovs2BEkne3w5f4eYo8mhvGg Md+yBNWhkJFn5e9paGSNJxAxZQ2vE/Ex62RoKocvsfNj2UcXysGrhzO9UCo2G/2V6g5OQj1f X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.13 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:107279 Archived-At: Am 22.09.2015 um 09:40 schrieb Marcin Borkowski: > Hi list, > > I'd like to transform this: > > -!-(some gibberish) > > into this: > > -!-some gibberish > > I assume there's no function in Elisp for that, and it's trivial to > write one, but I just wanted to make sure before I code it. raise-sexp > doesn't work, since it gobbles "gibberish" in the above example unless > given a prefix argument, and if you replace "some gibberish" with an > actual sentence, counting words manually is no fun. > > (Note: before anyone tells me how such a transformation doesn't make > sense: I need it for writing in a natural language.) > > TIA, > thing-at-point-utils toolkit provides ar-trim-parentized-atpt ar-trim-delimited-atpt Works from inside the parentized form to curb. ar-trim-... takes any known --customized-- delimiter, i.e. the first found. https://github.com/andreas-roehler/thing-at-point-utils