all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emilio Lopes <eclig@gmx.net>
To: "Elias Mårtenson" <lokedhs@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: APL input revisited
Date: Wed, 19 Feb 2014 10:46:15 +0100	[thread overview]
Message-ID: <CANiPZaAXOoijWC6TckkXo9HXQiFk8fNM=Ydb=ODQXUpQTO7kzg@mail.gmail.com> (raw)
In-Reply-To: <CADtN0WK=j9Hf2af9y6pj9rGBGTTbOjDtWg8D3BKud6CS+cShOg@mail.gmail.com>

2014-02-19 9:39 GMT+01:00 Elias Mårtenson <lokedhs@gmail.com>:
> Currently, I provide two main modes of inputting APL symbols:
>
>   - The relevant key together with Super […]
>   - A Quail mode that uses . (peroid) as a prefix […]
>
> So, what is the best way to deal with this? What options do I have?

One suggestion that comes to mind is an abbrev-table.  You could setup
abbrevs like ".G" and ".8" (but you don't have to use any prefix as ".").
The user can program with abbrev-mode turned on or he can expand
abbrevs manually ("C-x '").

The "prefix" for the abbrevs need not to have word constituent syntax.
You can e.g. use

    (abbrev-table-put apl-abbrev-table
                      :regexp
"\\(?:[^[:word:],]\\|^\\)\\(,?[[:word:]]+\\)[^[:word:]]*")

to allow for abbrevs beginnig with a comma (",").

Emílio



  reply	other threads:[~2014-02-19  9:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-19  8:39 APL input revisited Elias Mårtenson
2014-02-19  9:46 ` Emilio Lopes [this message]
2014-02-19 14:20 ` Stefan Monnier
2014-02-19 16:42   ` Elias Mårtenson
2014-02-19 18:21     ` Stefan Monnier

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='CANiPZaAXOoijWC6TckkXo9HXQiFk8fNM=Ydb=ODQXUpQTO7kzg@mail.gmail.com' \
    --to=eclig@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=lokedhs@gmail.com \
    /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.