all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: Jean Louis <bugs@gnu.support>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Apply replacement on word occurring at point using a lisp function
Date: Sat, 13 Aug 2022 14:17:54 +0000	[thread overview]
Message-ID: <Eft9XzuU4WhF3CCPi0l7IwhnORvV4-UohT7CbeleLJ08aLajerhPpY8ZEKn0tDkM0gZ3yK4NEs5juNo097J8Oo_3d7UUk40aiPorvaEbEpI=@proton.me> (raw)
In-Reply-To: <Yvd7w93FdELoEXMG@protected.localdomain>


------- Original Message -------
On Saturday, August 13th, 2022 at 10:24 AM, Jean Louis <bugs@gnu.support> wrote:


> * uzibalqa uzibalqa@proton.me [2022-08-13 00:00]:
>
> > Jean, I have written the words as examples. But really wanted a
> > general scheme for replacements based on specified rules
> > (e.g. initial matches of cog changed to k), rather than using actual
> > words.
>
>
> You have not presented definition of your general rule and I do not
> have the library M-x telepathy-mode to know what you mean.
>
> --
> Jean

Your original defun "change-word-at-point" does the job.  Using a regex as you
did was good but did not want to go along your second path of matching exact
words, as matching words would entail going through the contents of the dictionary
and finding the words that match a rule (words starting with "cor").






      reply	other threads:[~2022-08-13 14:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-12 19:48 Apply replacement on word occurring at point using a lisp function uzibalqa via Users list for the GNU Emacs text editor
2022-08-12 20:24 ` Jean Louis
2022-08-12 20:28   ` uzibalqa
2022-08-12 20:37     ` Jean Louis
2022-08-12 20:59       ` uzibalqa
2022-08-13 10:24         ` Jean Louis
2022-08-13 14:17           ` uzibalqa [this message]

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='Eft9XzuU4WhF3CCPi0l7IwhnORvV4-UohT7CbeleLJ08aLajerhPpY8ZEKn0tDkM0gZ3yK4NEs5juNo097J8Oo_3d7UUk40aiPorvaEbEpI=@proton.me' \
    --to=uzibalqa@proton.me \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@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.