all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: florian@fsavigny.de (Florian v. Savigny)
To: help-gnu-emacs@gnu.org
Subject: Customizing an existing input method -- loading and overwriting issues
Date: Sun, 14 Aug 2016 15:14:03 +0200	[thread overview]
Message-ID: <87popbwl0k.fsf@bertrandrussell.Speedport_W_723V_1_40_000> (raw)



I have just started setting the TeX input method as my default for
text modes, but would like to input a few characters which are not
covered, and also input some things differently. I have tried the
following, which I got from emacswiki.org/emacs/TeXInputMethod:

 (let ((quail-current-package (assoc "TeX" quail-package-alist)))
 	(quail-define-rules ((append . t))
 			    ;; non-breaking space:
 			    ("~" ? )
 			    ;; double quotes:
 			    (",,"  ?„) ; German  opening
 			    ("''"  ?“) ; German  closing -- English opening
 			    ("``"  ?”) ; English closing
 			    ("<<" ?\«) (">>"  ?\») ; (French or Swiss; not needed, but inuitive)))

which seems to /basically/ work. However, I have not found out when
and how exactly to invoke this code such that it only really (but
always) modifies the TeX input method. Use `eval-after-load', perhaps?
But after loading which file?

The full path to the quail.elc file? If I do that, I get the startup warning:

       Symbol's value as variable is void: quail-package-alist

This is odd, because that variable IS defined in quail.el(.gz), in about line 111.

"quail.el.gz" or "quail"? In that case, I get the startup warning:

       error: Invalid Quail map `nil'

The same error if I try "latin-ltx", where the TeX input method is
defined.

I seem to be making some rookie mistake here. Can anybody help me out?



Second, while we are at it, the documentation of `quail-define-rules'
simply says that it

"Define[s] translation rules of the current Quail package."

and lower down, it specifies that (append . t) means that "the
following rules should be appended to the rules of the current Quail
package".

This is ambiguous, but sounds more as if when (append . t) is not
specified, or is (append . nil), this means that the whole rules get
overwritten (i.e. replaced by the few you specify). Or does it mean
that INDIVIDUAL rules overwrite rules with the same car?  (Could it
then perhaps also be used to undefine individual rules?)


(BTW, I am aware I could hack the whole package and create my own
variant, but I think it's a more desirable practice to just customize
the few things you want to work differently.)


And third, also a very pressing need: I understand that mule means
something like "MUltiLingual Environment (for Emacs)", and I have
found that leim means "Library of Emacs Input Methods".

But what does quail mean? It is surely also an acronym?



Many thanks for help on any of this!


Florian



-- 

Florian von Savigny
Melanchthonstr. 41
33615 Bielefeld



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

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87popbwl0k.fsf@bertrandrussell.Speedport_W_723V_1_40_000 \
    --to=florian@fsavigny.de \
    --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.