From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.help Subject: Re: Using punctuation in abbrev Date: Sun, 2 Jun 2013 00:49:40 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1370126995 23311 80.91.229.3 (1 Jun 2013 22:49:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Jun 2013 22:49:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 02 00:49:52 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 1UiucS-0008Nu-Js for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jun 2013 00:49:52 +0200 Original-Received: from localhost ([::1]:35010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiucS-0003vv-AR for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Jun 2013 18:49:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiucI-0003uH-Ke for help-gnu-emacs@gnu.org; Sat, 01 Jun 2013 18:49:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiucH-0006Y0-MT for help-gnu-emacs@gnu.org; Sat, 01 Jun 2013 18:49:42 -0400 Original-Received: from mail-lb0-f177.google.com ([209.85.217.177]:62549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiucH-0006Xw-Ej for help-gnu-emacs@gnu.org; Sat, 01 Jun 2013 18:49:41 -0400 Original-Received: by mail-lb0-f177.google.com with SMTP id y8so270076lbh.36 for ; Sat, 01 Jun 2013 15:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TFYU6HFaaJnhYQz3A6ie34d83o1T6/hh95xgedRWcNI=; b=SFtd/7nQxBU4j0L1NRdW6iaOBqMG88PStx/QtqIt8ird7Jk0SFgYVV6wrsmZUzre1b Gb54qnhhad0s6zjQvU7rWzSiPvZMyybnryQi4I9VKKN55vRAGvlh0BorZnBMFEkChjPY 5llLyzDdISQEJy0zeii2Zf150LvGx60LJfp1YwHQ4Ynt8rD2vyn7QpFMf4LMx/FxvQnE HA3nRtkypKkUP5oDbpgiUGuMYLDrrh7w8TgHHfW/TnjXihRV9wQhCiNOoG/lN/KPDAaB 2s1+r3+vJDzwUyEQXpKDwJPzNm3b5axwzvUHTgt67f/dGo+YSfI8+dDVQUtk2owCyiGP c32A== X-Received: by 10.112.60.233 with SMTP id k9mr8243765lbr.61.1370126980386; Sat, 01 Jun 2013 15:49:40 -0700 (PDT) Original-Received: by 10.114.91.201 with HTTP; Sat, 1 Jun 2013 15:49:40 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: dweB_vN9F9KKYgV3PgGrE_t-Jak X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.217.177 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:91218 Archived-At: On Sat, Jun 1, 2013 at 8:42 PM, Drew Adams wrote: >> I want to substitute $-> with a unicode rightwards arrow (U+2192 =E2=86= =92). > > 1. Does that mean that you want to type `$->' and use `expand-abbrev' > each time to insert a Unicode right arrow? If so, and if you don't > really care whether you use abbrev, consider binding insertion of a > right arrow char to a key sequence instead. The abbrev minor mode is active in all my buffers and it doesn't have to be triggered by a specific key, it's automatically substituted as I type. I plan on having a lot of easy-to-remember abbreviations for unicode chars I regularly use, all prefixed by $ or some other less used character so that it only triggers when I want. Calling insert-char is too cumbersome and breaks the flow. The only thing that doesn't work is this word extraction regex... > 2. On the other hand, if you already have lots of `$->' occurrences in > your text and you want to change them to right arrows, consider using > `query-replace' or `replace-string' instead. That is not what I want.