all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Felix E. Klee" <felix.klee@inka.de>
To: emacs-devel@gnu.org
Subject: Patch for German T1 keyboard layout WIP
Date: Thu, 1 Aug 2019 15:20:23 +0200	[thread overview]
Message-ID: <CA+m_8J0fV7voETSY9Pg2Ny49ghUafOECx5S7iOrT7gXJocLraA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1605 bytes --]

See attached patch.  It adds the German T1 keyboard layout to Emacs.
Before submitting it to <bug-gnu-emacs@gnu.org>, I decided to discuss it
here, following the instruction on “Sending Patches for GNU Emacs”.

There are some limitation due to Quail operating on top of an ANSI
keyboard, which has one key less than an ISO keyboard, and which has no
AltGr modifier.

There is however a limitation that seems unnecessary.  The ° and ^ keys
behave differently:

  * The typed characters initially appear with an underline.

  * When doing <C-5 °>, then one has to press another key to get: °°°°°

  * When doing <C-h k °>, I have to press return for `*Help*` to show
    up:

    “° (translated from <return> °) runs the command self-insert-command
    (found in global-map), which is an interactive built-in function in
    ‘C source code’.”

I don’t know if that can be fixed, and how.  Maybe I could step through
the code to see what’s going on?  But debugging `self-insert-command`
sounds painful.

Another limitation: When entering `-` with `typo-mode` enabled, it does
call `typo-cycle-dashes`, but the dashes don’t cycle.  This is genuinely
annoying.  Again I would like to but don’t know how to debug that.

Still, even with these limitations, I believe that the `german-t1`
keyboard layout is a useful addition.  I used it all the time for the
past months.  In fact I have configured my Emacs to automatically switch
the keyboard layout to `german-t1` when a file is loaded with
`ispell-local-dictionary` set to a German dictionary.

[-- Attachment #2: changes.patch.gz --]
[-- Type: application/gzip, Size: 672 bytes --]

                 reply	other threads:[~2019-08-01 13:20 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=CA+m_8J0fV7voETSY9Pg2Ny49ghUafOECx5S7iOrT7gXJocLraA@mail.gmail.com \
    --to=felix.klee@inka.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.