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: Abbrev for shorthand purposes
Date: Thu, 11 Aug 2022 12:28:05 +0000	[thread overview]
Message-ID: <CxKXyvA2ZzUr0BrD2xfWwoQSrOrZJek1NZ3xbtXzsw___4n1sm4klm6dDDSsAP8wXJp4CqRHdeSyq5gtE39Fhc4YkpcES9q3tMkRNfxDoco=@proton.me> (raw)
In-Reply-To: <YvR60tN7mR6L70ru@protected.localdomain>

------- Original Message -------
On Thursday, August 11th, 2022 at 3:43 AM, Jean Louis <bugs@gnu.support> wrote:


> * uzibalqa uzibalqa@proton.me [2022-08-11 00:43]:
>
> > > Purpose of abbrevs was not to use them programmatically, but to have
> > > it handy to quickly add them while writing text.
> >
> > I am using them programmatically because I want to implement a specific
> > scheme for short writing.
>
>
> You can implement it rather by thinking and using Emacs built-in
> functions. You are inserting them into parenthesis, but you can insert them into
> parenthesises by using built in Emacs functions as well, without
> worries.
>
> Your file will be saved. You may reuse the information.
>
> > Yes I can complete the word "sentimental", but am struggling on how the word can then be
> > changed to "s--l".
>
>
> For that you do following:
>
> - write s--l
>
> - put cursor after s--l
>
> - Press C-2 C-x a g
>
> This is because C-2 or C-u 2 is equivalent of going 2 words back, as
> s--l probably looks as 2 words to Emacs because of dashes.
>
> - insert "sentimental"
>
> - when you write sentimental it will expand into s--l
>
> That method is faster.


Hi Jean, I need the functionality for use with my group, meaning that the list
of words and substitutions have to be done programatically, so I can send them the
`.el` file.

What I would like to have is completion of tho word "sentimental", so writing "sentim" will
complete it like company-mode does.  Then the more difficult task of replacing with the
shortened version (which I currently do with abbrev, user just introduces space just like writing
and the replacement happens).  People would be writing prose and do not want them have to use
key binding input for every word they write.






      reply	other threads:[~2022-08-11 12:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05  5:31 Abbrev for shorthand purposes uzibalqa via Users list for the GNU Emacs text editor
2022-08-07  0:08 ` kf
2022-08-10 20:30 ` Jean Louis
2022-08-10 21:43   ` uzibalqa
2022-08-11  3:43     ` Jean Louis
2022-08-11 12:28       ` 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='CxKXyvA2ZzUr0BrD2xfWwoQSrOrZJek1NZ3xbtXzsw___4n1sm4klm6dDDSsAP8wXJp4CqRHdeSyq5gtE39Fhc4YkpcES9q3tMkRNfxDoco=@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.