From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Consult some suggestions for adjusting keyboard shortcuts to bind conflicts. Date: Wed, 14 Apr 2021 08:31:43 +0800 Message-ID: References: <87k0p5ddsv.fsf@robertthorpeconsulting.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28226"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Robert Thorpe Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 14 02:32:55 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWTSg-0007G6-OO for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 02:32:54 +0200 Original-Received: from localhost ([::1]:50624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWTSf-0002hM-Qe for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 20:32:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWTRr-0002gx-0M for help-gnu-emacs@gnu.org; Tue, 13 Apr 2021 20:32:03 -0400 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:38590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWTRn-0004WH-47 for help-gnu-emacs@gnu.org; Tue, 13 Apr 2021 20:32:02 -0400 Original-Received: by mail-lf1-x132.google.com with SMTP id j18so30279205lfg.5 for ; Tue, 13 Apr 2021 17:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F2JNG6sSg9gjMsqIZ+J6zbSZmBTtMleBV8CwA6ZfJZ4=; b=uvuV4ZOjS+egwCajDNGkbXPNrmwavt6OThN86yoJiSmE2vBfCQREqQwC0355ZdgZB5 8S5xW9MV3ljtscwGBl90S1TxIo37jojLNmFZEHu6h2+S+17ztdAeFzZOGk6lfxFqRyx5 HHQ4AVlOcBJpt4X4Ean8OGXAIohPG8TBEKYLK9RgHatONPAWvrqn6jqeozTN5dHg2Z/k nHhjixTbM5vTmfhnnPo/rqBy0ZVEltWDmqCiOq1gS8kb/oplIX5GgLKPMbdujIo/QXmw +TQ9YZk9oufPMhiHr6tglMLXambZ9/dhmCfcEwc6vkC3cJ/Z1Y+bXE+5ecriR6JrIco8 hetw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F2JNG6sSg9gjMsqIZ+J6zbSZmBTtMleBV8CwA6ZfJZ4=; b=F1ZOf8xjuVaqX7xsYmTdtl3A369wRcUtLlrmvNTK3TWZ0KPmbcvCDXZRWl0bPcAgWS oCKf1vu0m7eU17TdnKEL/31IgIS9wGq23KNksWVuUB/PBG4oKeGTja7LMpKJ4QKi8Mfp bChGJmjd9hIoHKEKzbwBD7BDmT80CHUfTEbCG6op7Hceu9hKaKBwXqx4ymBNPFpKo5AK cEmmVGSdNzK9NQxzl+M9JPWewNPGjKV+9J1GukeHNUz77sbdLNzZCHRJ5j/73N9dHGo7 UcjAWETj/otEYMLS4IzANamE9SHO4YzKI4IUFUNVinU7KJ098AJx5yUaLweWN+xjyydd 83JQ== X-Gm-Message-State: AOAM532zwo67bpeV1dzSBJ9jnL8vu7BszJVN+7+M4UlJj7PHrPkmi5T3 Ql20rDu/6yJ6v0ZtS6zz1lOsGYeTAadgeyjsyS87Qc0eX0mVWA== X-Google-Smtp-Source: ABdhPJyQwA9NQ+FrxE5tq/ViZAOlQxeTaFOJikwXHOkTeUVcEuB0oVzqQDauFKSkQIVfCFwJEBlcQVbxTIwu0ewnjxI= X-Received: by 2002:a19:f802:: with SMTP id a2mr16103283lff.545.1618360315627; Tue, 13 Apr 2021 17:31:55 -0700 (PDT) In-Reply-To: <87k0p5ddsv.fsf@robertthorpeconsulting.com> Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128991 Archived-At: On Wed, Apr 14, 2021 at 6:24 AM Robert Thorpe wrote: > > Hongyi Zhao writes: > > > On Thu, Apr 8, 2021 at 3:07 PM Robert Thorpe > > wrote: > >> > >> Hongyi Zhao writes: > >> > >> > On Ubuntu 20.04, I use fcitx input framework, which use Ctr + SPC to > >> > trigger input method and Saladict which use Alt + s to call its > >> > standalone panel. > >> > > >> > But all the above key bindings have been predefined in Emacs. Could > >> > you please give me some suggestions on adjusting keyboard shortcuts to > >> > avoid binding conflicts? > >> > >> I'm not sure which way around you want to deal with the problem. > >> > >> I'm presuming you want to move the mappings in Emacs that Emacs uses for > >> C-SPC and M-s. > > > > Or some suggestions to keep the Emacs key bindings as they are, but > > instead, resolve conflicting by changing the other applications' > > predefined key bindings. > > > >> Do you use Emacs in the terminal? > > > > May or may not. > > In that case I also think the keys I mentioned are the best. Those are > * C-; > * C-, > * C-' > * C-= > * C-+ > > Here is why.... Those keys don't work on terminal emulators, at least > not without significant configuration of the emulator. So, not only > does Emacs not use them, it's unlikely that the Emacs developers will > start using them for new features. > > For example you could map C-; to switch windows in your windowing system > and map C-, to your input method program. > > Another poster mentioned the possibility of using both shift keys > pressed together. I think that's a good idea too since Emacs doesn't > use the binding or differentiate between left and right shift. (Not by > default, I think it can). > > Someone also mentioned the possibility of repurposing M-s. Now I agree > that there isn't that much useful on M-s. Personally I use occur (M-s > o) and isearch-forward-symbol (M-s _). But remember that other things > could be added in the future and you'd be missing out on them. Of > course, you could move the M-s keymap elsewhere so you can retain those > features but that's extra work. Thank you very much for your valuable notes. > BR, > Robert Thorpe -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China