From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tatsu Takamaro Newsgroups: gmane.emacs.help Subject: Re: Remapping keys and creating my own keymap \\ too complicated\\ Date: Sun, 8 Dec 2024 19:16:02 +0300 Message-ID: <17dad089-c11c-9494-b740-e47039c1927a@gmail.com> References: <87plm7cu05.fsf@gmail.com> <48d40943-c50f-6cfe-21a5-b6ea8a9662c0@gmail.com> <87h67jcsg6.fsf@gmail.com> <871pymctpx.fsf@gmail.com> <1a163863-2992-186f-3f67-f9dd9d35b986@gmail.com> <87o71pb0bz.fsf@gmail.com> <87frn1ar0m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5289"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Cc: help-gnu-emacs@gnu.org To: Robert Pluim , Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 08 17:16:49 2024 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 1tKJxg-0001BA-VY for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Dec 2024 17:16:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKJx9-0001Pj-Ow; Sun, 08 Dec 2024 11:16:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKJx5-0001P5-3T for help-gnu-emacs@gnu.org; Sun, 08 Dec 2024 11:16:14 -0500 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKJx3-0007vb-Dp for help-gnu-emacs@gnu.org; Sun, 08 Dec 2024 11:16:10 -0500 Original-Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-5401c68b89eso405988e87.0 for ; Sun, 08 Dec 2024 08:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733674567; x=1734279367; darn=gnu.org; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=YGaDt6rtfTJT3wnIJecrKwl/Y8uMQ9QwkLpT7GP6aZU=; b=Y71nECXXnJQHp2lht+6Lijq57mIUDitjLZeit6riO3ZCdpELHJHz4pWB60necwmyy/ 8ALoFA+XJKKruqar26sLQ1pjr68yl76Ik4x3JxBBOz+xCVwUcu7zVad6JG9MwUAULcPE BJrOYargID1nsSAJf5Xrj1kE6VOngROI8BjUtIP3/T46NuWWNaHNhz1o+4z1HWf81EpT 0LhBYJvYiMkfrhxbcd3zZTlu14043H0Q0q/u/Glb2WM2vd1pQ0BfHWEKmATznmsX7GNa /KPbp7LuO/qFfKtPAj4VBk7jnYKxzgYuABxebfNZcf95PmZlv6W7oy/TKO1KfMpGnQtv 7n2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733674567; x=1734279367; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=YGaDt6rtfTJT3wnIJecrKwl/Y8uMQ9QwkLpT7GP6aZU=; b=LDsBeAZV36BpbHr6pR0h+4mVaneLZI9YAJE2XG1ivc/YFgbOQED5osqojVACwmstt4 MiExhecYSP5dOyhBEmmnEvV5RjoCYC23JUWSzGH7jfhjthMe7OryXvdhpYE84DyF1cdx mwg5aM+2hDUPWmRuFusUk1MwLnHYjwBuO1LnHIzm8VLtDT2ywidFbV9+E5QpQlt/qjNz 62XQIr0f3kaAdEig7aDO5AEev6rriGNsJjes6qju40ZPOTW/7yxiAeUGi5bqsD6xKB/x ntiDsVgiPISQUaVp9wur5lyRClFgdPgs0CD8iIdAUDIT4VqyJBqNxFyh/m4uAzWzyy5z RBqw== X-Gm-Message-State: AOJu0YxMZzjwSXDxTT6iQqDo1QIKgb1O2YWcKzCP6NSzr5aUXu+9BrtT yv1qZbrTU1cpPzPsaNUsGVB8fbwAjWtsoTaJUWkNMCeLGfS5Op8ksumv8w== X-Gm-Gg: ASbGncvzu6JdZ1dv57xtwr9BIDH40OyDhoWMKshWe2k7ARXIWJkwBh03qec4Sck9bS7 +xpPVSWGNSjGwhSVhtXkhW0tyUpN4UwHl0FkdODN/y2oB5VSwuNzQeTeYLspjngJIyEY8zWB32t O41VPQapm9ta/jltdTvhjbRZvexbo2b32OC/pzM7R7sA1V3y7Y0zpIE6v+z2qtTfZF06rteEfMz ORgo1iK7xc/hAv6GNnPbsrt7luCPYQ0zPH/dwahPyK2zrRKbt74F4nkPBrfsVYwLiAxroO4O2Qv zPan9zY70ORFQCRU7WsTu1RggIlIpJkodSc9vlM= X-Google-Smtp-Source: AGHT+IGhy46CL5CfdivlJ5qsjvfil8lrDppUYZLHyO+RTJZd9l5neLqCFrl++qwmGiJrx2APRgXd0g== X-Received: by 2002:a05:6512:1325:b0:540:1f75:1b09 with SMTP id 2adb3069b0e04-5401f751d48mr216355e87.5.1733674566818; Sun, 08 Dec 2024 08:16:06 -0800 (PST) Original-Received: from [192.168.1.120] (broadband-37-110-24-126.ip.moscow.rt.ru. [37.110.24.126]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-540007d66e3sm403082e87.196.2024.12.08.08.16.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Dec 2024 08:16:04 -0800 (PST) Content-Language: ru In-Reply-To: <87frn1ar0m.fsf@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=tatsu.takamaro@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -54 X-Spam_score: -5.5 X-Spam_bar: ----- X-Spam_report: (-5.5 / 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, HTML_MESSAGE=0.001, NICE_REPLY_A=-3.416, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148693 Archived-At: I did as you said and just added some commands to an .emacs file. And everything worked untill I tried to change the C-x binding. Here is my exact code: (keymap-global-unset "C-x") (keymap-global-set "C-x" #'kill-region) (keymap-set global-map "" 'ctl-x-map) It seems logical, but it doesn't work properly. The Ctrl + x works just fine and cuts the selected fragment. Pressing Ctrl + x also doesn't have an effect as a C-x prefix (for example, keys C-x-s don't work to save). But then there is an unexpected behaviour. Pressing the Menu button () doesn't act as C-x, and I can't use it to run commands that start with C-x. For example, I can't do save-buffer by pressing -s. Why is it so? What am I missing? пт, 06.12.2024 16:18, Robert Pluim пишет: >>>>>> On Fri, 06 Dec 2024 13:38:17 +0300, Jean Louis said: > Jean> That page was generated by neglectful artificial intelligence. > > I suspected as much, but didnʼt want to spend any effort on confirming > it. 😀 > > Robert