From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.devel Subject: Re: (un)expand-region-abbrevs Date: Fri, 06 Jun 2014 16:21:57 +0200 Message-ID: <5391CE85.5080401@online.de> References: <87fvjipfak.fsf@gilgamesch.quim.ucm.es> <874mzy2ssl.fsf@uwakimon.sk.tsukuba.ac.jp> <87iooefc39.fsf@gilgamesch.quim.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1402064565 22305 80.91.229.3 (6 Jun 2014 14:22:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2014 14:22:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 06 16:22:37 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Wsv2T-0008Us-30 for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2014 16:22:37 +0200 Original-Received: from localhost ([::1]:47470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsv2S-00064J-LK for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2014 10:22:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsv2H-0005uo-OL for emacs-devel@gnu.org; Fri, 06 Jun 2014 10:22:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsv2B-0005gv-7Q for emacs-devel@gnu.org; Fri, 06 Jun 2014 10:22:25 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.130]:51474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsv2A-0005fw-UU for emacs-devel@gnu.org; Fri, 06 Jun 2014 10:22:19 -0400 Original-Received: from [192.168.178.32] (brln-4db91eb4.pool.mediaWays.net [77.185.30.180]) by mrelayeu.kundenserver.de (node=mreue005) with ESMTP (Nemesis) id 0LbNoU-1WV9kF0HxS-00kynq; Fri, 06 Jun 2014 16:22:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.5.0 In-Reply-To: <87iooefc39.fsf@gilgamesch.quim.ucm.es> X-Provags-ID: V02:K0:3np6+VlTFmkGVe5KR/dSWf11Gn8wUpMcgfw+9IQyb51 DSCMaCnHpuSf2UObIO4V7IDiWGf0JYdNIM1W7keBbYu9WvCJw0 EHIUmAD2GtfrW8OjnPzfbCNxt4xjT3vGAkO0zX+FS/ftreBJeD AN6w4Tbi9olbPe1ndDnGKlbhvdUZ0hYUhrXIcDOAmsVLCOWHu+ xz1E6VQfgFwwQpP/j/9l7/Cd/zSsSnCIQbzOzdWEVCOGCpzC6J 7KAr2js1JhUJ6S4zHfyTBBqSfJEdhB/492RfOJW6Zja/3fPjya /Guekuc2g9lK2YEE+4b1MJvOOzNIlbuHdjChZLgKQlmJKJcRvx gv2o+bApNdOYhFiG2PqXbpc/Nz7Nv2X3K/f5AX/8k X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.126.130 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172394 Archived-At: On 06.06.2014 14:37, Uwe Brauer wrote: >>>>>> "Stephen" == Stephen J Turnbull writes: > > > Uwe Brauer writes: > >> I find expand-region-abbrevs quite useful, so would it be possible > >> to have the inverse function? Unexpand-region-abbrev? > > > I don't see why you believe there would be an inverse. Suppose I have > > abbrevs > > > u -> Uwe > > b -> Brauer > > ub -> Uwe Brauer > > No, no, the case I have in mind is very different. I have a huge abbrev list > which expands hebrew words to hebrew words with niqqud, like > > שלום --> שָלֹם > > So sometimes I want to delete the niqqud. > > One might argue that I would be better off to write a short trans-tab > which replaces the niqqud by "nothing", but I got curious whether I > could use an inverse abbrev function. > > > > Quite easy would be unexpand-abbrev-before-point, resp. after-point. Which would look up in the abbrev-table and do a simple replace. With region a multi-word expansion has to be considered. See code of current edit-abbrevs how to start.