From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Changing outline-minor-mode keybindings for texinfo files Date: Fri, 14 May 2021 14:24:00 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27216"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs , Jean Louis To: michael-franzese@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 14 14:32:14 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 1lhWzG-0006zI-J6 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 14:32:14 +0200 Original-Received: from localhost ([::1]:44182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhWzF-0007Rc-IY for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 08:32:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhWrr-0005aE-Jq for help-gnu-emacs@gnu.org; Fri, 14 May 2021 08:24:35 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:50525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhWro-00012u-Ua for help-gnu-emacs@gnu.org; Fri, 14 May 2021 08:24:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620995040; bh=2t0Rn7eN6shqY+HbV442uDDrC9bDv8E/n7vbJfzG1dY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fYIPADkMKIKpA1Ey4ehqITXsW4YbA4OolA+3yQQM9YBF3djuClN4hRNR3bn9tL1WV 6EAUqmKkyntWL8dtscN2NC65mn5jqfygkDaBYdAU+h4/Y7PqMOdLsmZXhCXDLXt/Co hLH3vDGBCvSyLWecDJiYP5fFohfiZbTFJm4lyFMQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs04.server.lan [172.19.170.170]) (via HTTP); Fri, 14 May 2021 14:24:00 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:ZUyC2d1UXragHVsBghMq3mybSWtXU2q7DT3PQNHlNBjpSSM2eFdvdiErjNniXv0IjgF01 HEYah2UZJUgCfnASBneUcf2f0/7QLTsw1NJrgAAWsBcdZd8n03HIaMnvONhhh4MQOsyQ/wbDMX7p Ts26nvu6io1yq7O/diC9BBfra0IoNI50tDc8vVe+ox9+zis2PYFWRiI43umsY+hwEiiY0TEVsFHw WBEDv6U1N4TV3yqI+KjAQus/FBoqKPbXzgofLcUc703Mtnuuxob8Xj7+LVle4z6EWIhR69QdenRo Kc= X-UI-Out-Filterresults: notjunk:1;V03:K0:Jls/Qza3sM4=:pmOwPgvO5DgxcfIA9+vDRV Zn+xSRcQq7Bsl/cvU/JyS29iAEesPEJGO4URK8F/oxCa4RgjgKPxqU45vRXCzgj7cf8UzOcnf 5ZOqb8O8P22kRs0X206ELWP0Ff/jKXZSUygs9HHU9s62ChVbJGiJDtqTttTDHd5a63g7liNlY rV3fHiu54U07hzXgM6Nu3ldxTZ8bjBOUzGf3Y46F0StHBOmDtPDAd5+2YI2QqKJwKB1rm09jm 3lR5vcNOTVA6dLixlULh7QMQF2hH9zP4xLL1I/OQfhLYNGc++f+DChKABJdqjTjiuS0f7l4tb aM5RU1Mib7ABapevyPwxFsTKk4gTtQn6lkCYPjcIbd+mat2cUdEGa3gLLu6BPtcBEoaegd2Wx CwspXxtWCiqIL67hTSUjecT5YhgYuZL6FfnjoSFPPF2FX+H1PO7eiJYGMaic49FnljZiXrHAP lGNjEaKbRMdncEGTGXuw1fh/hSM03JpBz9OXcUqWVmKPRUrKL4N6quSEyMcC6uIDNjx1lXLaG 3ZGm39a+sUuiKaE+5OdaLcmKbCMvJbPmmTlkCeYA/IsJTC949O8C/YOWjO+M5WvP5R7/lrHeA 76nWr4EOJaAWDncViH+fLXwBxuMTqQ/9uCeksXI7aMTIhp37ccDWAuUI5Yb6jgakPv0uYv5N8 diI1jNiDIQXGlwMlGr6xBg/3sV0rD20f9aP5fuflYmYJzL6mbfCAJG5xtaXIy7iEFZlXwtGZc hQPBKbaXekLpFdcIUR77gsMepnSJJJLL5Y92BbgS97FqkaGWcm9suxjNUURj0/ysLXErv9oD Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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:129766 Archived-At: > Sent: Friday, May 14, 2021 at 10:04 PM > From: michael-franzese@gmx.com > To: "Jean Louis" > Cc: "Help Gnu Emacs" > Subject: Re: Changing outline-minor-mode keybindings for texinfo files > > > Sent: Friday, May 14, 2021 at 9:51 PM > > From: "Jean Louis" > > To: michael-franzese@gmx.com > > Cc: "Help Gnu Emacs" > > Subject: Re: Changing outline-minor-mode keybindings for texinfo files > > > > * michael-franzese@gmx.com [2021-05-14 10:2= 9]: > > > Have coded things this way. Then I load a texi file and press "H-q"= , > > > but I get "H-q is undefined". > > > > > > (defun vmove-keytrigger () > > > "Visualises outline and moves texinfo code." > > > > > > (let ( (map texinfo-mode-map) ) > > > (define-key map (kbd "H-q") #'outline-hide-sublevels) > > > (define-key map (kbd "H-b") #'outline-hide-body) > > > (define-key map (kbd "H-") #'outline-move-subtree-up) > > > (define-key map (kbd "H-") #'outline-move-subtree-down) > > > )) > > > > You define function but I without giving result out. You copy > > texinfo-mode-map to map, and change the map, but after that all > > changes are lost in such function that yields with nothing. > > Would I need add-hook of some kind? How does one go about this thing of using different keybindings rather tha= n the long version "C-c @ ..."? > > -- > > Jean > > > > Take action in Free Software Foundation campaigns: > > https://www.fsf.org/campaigns > > > > Sign an open letter in support of Richard M. Stallman > > https://stallmansupport.org/ > > https://rms-support-letter.github.io/ > > > > > >