From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.devel Subject: Re: (un)expand-region-abbrevs Date: Fri, 06 Jun 2014 16:45:02 +0200 Message-ID: <87fvjip05t.fsf@gilgamesch.quim.ucm.es> References: <87fvjipfak.fsf@gilgamesch.quim.ucm.es> <874mzy2ssl.fsf@uwakimon.sk.tsukuba.ac.jp> <87iooefc39.fsf@gilgamesch.quim.ucm.es> <8361ke3yr7.fsf@gnu.org> 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 1402065958 7598 80.91.229.3 (6 Jun 2014 14:45:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2014 14:45:58 +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:45:50 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 1WsvOt-0004lM-HY for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2014 16:45:47 +0200 Original-Received: from localhost ([::1]:47581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsvOt-0000sO-6f for ged-emacs-devel@m.gmane.org; Fri, 06 Jun 2014 10:45:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsvOi-0000pq-D9 for emacs-devel@gnu.org; Fri, 06 Jun 2014 10:45:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsvOb-0005YU-66 for emacs-devel@gnu.org; Fri, 06 Jun 2014 10:45:36 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsvOa-0005YO-Kx for emacs-devel@gnu.org; Fri, 06 Jun 2014 10:45:29 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WsvOL-0004QM-Up for emacs-devel@gnu.org; Fri, 06 Jun 2014 16:45:13 +0200 Original-Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jun 2014 16:45:13 +0200 Original-Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jun 2014 16:45:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gilgamesch.quim.ucm.es User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:jyIHkDr2JaSq2KwBzj6YLqIw1QY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:172395 Archived-At: >>>>> "Eli" == Eli Zaretskii writes: >> >> שלום --> שָלֹם >> >> So sometimes I want to delete the niqqud. > You can delete the niqqud characters by hand, you know. I am not sure what you mean by hand, deleting individually? Or something like this. ;; incomplete! (defun my-anti-niqqud () (interactive) (query-replace-regexp "ֿ\\|ֱ\\|ֲ\\|ֳ\\|״\\|ְ\\|ּ\\| ֻ\\|ֹ\\|ֶ\\|ֵ\\|ִ\\|ַ\\|ָ\\|ׂ\\|ׁ\\|ׇ\\|ׄ\\|ׅ" "")) > (I actually wonder why you need the abbrevs at all. Why not just use > an input method that allows to type the niqqud characters at will.) This you can ask for any abbrev: "why don't you type it at will?" I think in both cases the answer should be: "Because I am lazy" >> 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. > You can always _add_ those reverse abbrevs, right? You mean another table which is the inverse table? Maybe the query-replace-regexp is the easiest solution, although I am not sure about performance and we can forget the issue.