From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.bugs Subject: bug#41438: [PATCH] Allow windmove keys to be bound without prefix or modifiers Date: Sun, 28 Jun 2020 10:30:49 +0200 Message-ID: <87366ftww6.fsf@warpmail.net> References: <87imgpw7k3.fsf@warpmail.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="56037"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41438@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 28 10:32:13 2020 Return-path: Envelope-to: geb-bug-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 1jpSjU-000ET3-J3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jun 2020 10:32:13 +0200 Original-Received: from localhost ([::1]:44842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpSjT-00043w-5q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jun 2020 04:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpSjK-00043k-Vi for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 04:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpSjK-0005ja-Lk for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 04:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpSjK-00089z-I5 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 04:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Philip K." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2020 08:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41438 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41438-submit@debbugs.gnu.org id=B41438.159333306131288 (code B ref 41438); Sun, 28 Jun 2020 08:32:02 +0000 Original-Received: (at 41438) by debbugs.gnu.org; 28 Jun 2020 08:31:01 +0000 Original-Received: from localhost ([127.0.0.1]:45167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpSiL-00088Z-8v for submit@debbugs.gnu.org; Sun, 28 Jun 2020 04:31:01 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:42833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpSiJ-00088F-C0 for 41438@debbugs.gnu.org; Sun, 28 Jun 2020 04:31:00 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id E6B435C00E4; Sun, 28 Jun 2020 04:30:53 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 28 Jun 2020 04:30:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=warpmail.net; h= from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type; s=fm3; bh=X1KLDSGRzjTSVkSCWeKMhlN0CcTM7s9HBeJyuNU QfKc=; b=kfOMTKy5tpngeFH1G1SV1BkeebV8kJcwV7BV+L2iK4GajwL5g9Apkl/ TdM06knMxIZN2Dl7Tt+HXYCALwepjaEt4exXQnNT9YhhIk8NSdfaVB3UXFree9j2 vQ/g4Lg/ww3xAwvm6jo+7jZJD0HWOuEAOZaRiUWzC02GhiNKvhFn0G9SIgKvFWO5 9Yk9n0dXH6AM+AnYNtPlwBKgPCHc18LfCW/J5aFa9AeY8VMcWf/fCHQa80Gx1Ugz ZSko47muCPM0aJFyqCfnKMf4pqrkljTj74AUR+9chFjFy/5HZrgkZU9dvfOov/G0 QNyLr950sw0XJR8GSfjofLP7nzcrlcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=X1KLDSGRzjTSVkSCW eKMhlN0CcTM7s9HBeJyuNUQfKc=; b=bjaxluligNochNazPK2a03z4tRALJUOYv 0U6erVpbLsciA47oEsrVK9CyDqMQHz/Hfc7dkDSTe2WjUVSRO7KV4SvYQiO+8TTw M4alw205lGcZlvcTZutVIEN3iRY5oIbbIrmqF6/Wzc88Q1Ko4oTpQeYxZttgKrzu cb8EcIKmBPQBxnBjlBlJ0rs27WFYzINhI5Tm4iJRdr+hkWfnbQ7dZ2C5aum8HxdZ VsK69AxG/7gLiHUT0AMJYlhe5k0dZjI43kxFVxowtaoBVChVm+4sXG/62ICmV/I6 va2yNEaiSiEbf4Mx4sCEqnrN5nNeaIZNzHAGjRYUflc3Iodr9RYXA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeliedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfffkgggtsehttdertddttddtnecuhfhrohhmpedfrfhhihhlihhp ucfmrddfuceophhhihhlihhpseifrghrphhmrghilhdrnhgvtheqnecuggftrfgrthhtvg hrnhepheeuieffveevkeetffeufeekfeejkeekkeefjeelueeftdduffdugfeuieegfffh necukfhppeekjedrudeghedrudehrdeludenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehphhhilhhiphesfigrrhhpmhgrihhlrdhnvght X-ME-Proxy: Original-Received: from localhost (p57910f5b.dip0.t-ipconnect.de [87.145.15.91]) by mail.messagingengine.com (Postfix) with ESMTPA id 1B3423280063; Sun, 28 Jun 2020 04:30:52 -0400 (EDT) In-Reply-To: <87o8p4avy5.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 28 Jun 2020 02:53:54 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182455 Archived-At: Juri Linkov writes: > Actually, I meant not so much the defconst form (that is an unimportant > detail), but more the :set function, and also I forgot to mention > :initialize. Their combination in char-fold.el looks like: > > :initialize #'custom-initialize-default > :set (lambda (sym val) > (custom-set-default sym val) > (char-fold-update-table)) > > Then after loading char-fold.el, this function is executed at the top level: > > (char-fold-update-table) > > Maybe something like this could help to initialize default keybindings > after loading windmove.el. I get what you were saying, but it seems the issue with windmove is the opposite. Just loading windmove shouldn't create any new keybindings, but customising the new user options should, *even if* windmove hasn't been loaded yet (ideally). -- Philip K.