unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Alex Kost <alezost@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: 07/07: services: console-keymap: Deprecate.
Date: Fri, 12 Apr 2019 23:01:00 +0200	[thread overview]
Message-ID: <87o95blz03.fsf@gnu.org> (raw)
In-Reply-To: <87k1g0mki5.fsf@gmail.com> (Alex Kost's message of "Thu, 11 Apr 2019 22:04:18 +0300")

Hi Alex,

Alex Kost <alezost@gmail.com> skribis:

> Ludovic Courtès (2019-04-07 18:24 +0200) wrote:
>
> [...]
>> As you found out, this is deprecated in favor of ‘keyboard-layout’,
>> which has a couple of advantages: it’s uniform (the same config works
>> for GRUB, Linux, and Xorg), and it’s installed from the initrd, so
>> already effective when you type in your passphrase (see
>> <https://issues.guix.info/issue/34929>).
>>
>> ‘keyboard-layout’ definitely works for what you describe, Mark (see the
>> examples in the manual.)
>>
>> If you do fancy things with Linux-native keymap files, Alex, it’s
>> probably not for you.  In that case you do need
>> ‘console-keymap-service’.
>
> The fancy thing I do is simply loading my own keymap file, like this:
>
>   (console-keymap-service (local-file ".../my.map"))
>
> If I understand correctly, ‘keyboard-layout’ does not allow me to do
> this, right?

Not directly, no.

>> However, I was thinking that we probably want to steer users towards the
>> ‘keyboard-layout’ mechanism so they don’t experience the inconsistencies
>> we had before.  That’s why I deprecated ‘console-keymap-service’.  I’d
>> argue that keymap experts won’t have difficulties coming up with a
>> ‘console-keymap-service’ if they need it.
>
> Sure, it's not a problem for me to add ‘console-keymap-service’ to my
> config, I was just surprised that some feature was removed
> ("deprecating" means "removing sooner or later", right?) without
> replacing it with equivalent functionality (as I see it).

It’s deprecated in order to be removed eventually, yes.

It’s “equivalent functionality” in the sense that it deals with keyboard
layout in the console, but it’s also a different interface.

>> WDYT?
>
> Please do whatever seems appropriate to you.  I just think that keyboard
> layouts for grub, tty and X server are completely unrelated settings,
> and I don't like when such unrelated configurations are combined just to
> become more "user-friendly".

I don’t think anyone mentioned user-friendliness, though I think
user-friendliness is a good thing.  :-)

Anyway, keyboard settings have been a longstanding issue with several
open bug reports, notably about the inconsistencies one would inevitably
go through.  This change was proposed precisely to address this problem.
Debian uses ‘console-setup’ for the same reason.

Now, that does not prevent users from configuring things separately, or
using ‘loadkeys’ directly, etc.

Thanks for your feedback,
Ludo’.

  reply	other threads:[~2019-04-12 21:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190405134511.7740.88403@vcs0.savannah.gnu.org>
     [not found] ` <20190405134516.BD1962158A@vcs0.savannah.gnu.org>
2019-04-06  1:45   ` 07/07: services: console-keymap: Deprecate Mark H Weaver
2019-04-06 19:51     ` Alex Kost
2019-04-07 16:24       ` Ludovic Courtès
2019-04-11 19:04         ` Alex Kost
2019-04-12 21:01           ` Ludovic Courtès [this message]
2019-04-12  2:00         ` Mark H Weaver
2019-04-12 21:09           ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o95blz03.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=alezost@gmail.com \
    --cc=guix-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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).