all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@online.de>
To: emacs-devel@gnu.org
Subject: Re: (un)expand-region-abbrevs
Date: Fri, 06 Jun 2014 16:21:57 +0200	[thread overview]
Message-ID: <5391CE85.5080401@online.de> (raw)
In-Reply-To: <87iooefc39.fsf@gilgamesch.quim.ucm.es>

On 06.06.2014 14:37, Uwe Brauer wrote:
>>>>>> "Stephen" == Stephen J Turnbull <stephen@xemacs.org> 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.








  parent reply	other threads:[~2014-06-06 14:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06  9:18 (un)expand-region-abbrevs Uwe Brauer
2014-06-06 11:09 ` (un)expand-region-abbrevs Andreas Röhler
2014-06-06 11:15 ` (un)expand-region-abbrevs Stephen J. Turnbull
2014-06-06 11:54   ` (un)expand-region-abbrevs Andreas Röhler
2014-06-06 12:37   ` (un)expand-region-abbrevs Uwe Brauer
2014-06-06 14:21     ` (un)expand-region-abbrevs Eli Zaretskii
2014-06-06 14:45       ` (un)expand-region-abbrevs Uwe Brauer
2014-06-06 15:10         ` (un)expand-region-abbrevs Eli Zaretskii
2014-06-06 16:33           ` (un)expand-region-abbrevs Uwe Brauer
2014-06-06 17:19             ` (un)expand-region-abbrevs Stefan Monnier
2014-06-09 15:56               ` (un)expand-region-abbrevs Uwe Brauer
2014-06-09 18:59                 ` (un)expand-region-abbrevs Stefan Monnier
2014-06-06 14:21     ` Andreas Röhler [this message]
2014-06-06 15:31     ` (un)expand-region-abbrevs Stefan Monnier
2014-06-06 13:16 ` (un)expand-region-abbrevs Stefan Monnier
2014-06-06 13:53   ` (un)expand-region-abbrevs Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5391CE85.5080401@online.de \
    --to=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.