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 15:31:59 +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="8614"; 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 15:33:13 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 1lhXwH-00029F-A8 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 15:33:13 +0200 Original-Received: from localhost ([::1]:43472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhXwG-0007EC-9a for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 09:33:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhXvh-0007Cx-1l for help-gnu-emacs@gnu.org; Fri, 14 May 2021 09:32:38 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:54959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhXvc-0000wZ-Nw for help-gnu-emacs@gnu.org; Fri, 14 May 2021 09:32:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620999119; bh=rt/C7Zp7uJey/7RPj/BkXat+46ZRGrvTQ/X8rim/mjE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=D9uJX5/Lv4tKwTwyYtqMl+PG8hIIGGw3oyPVHVp+4MhWcNr5MYDFI6Tj8Q1SCNCez KR5mlJh/COhTlBbXLJy/Bvz1SVtddn3DeLY+SEU81M+3+fQDFwDTXPsxF/qNUeCBpx CTX01kAurndh+w4TI4dZOPdZq9YqIaTcHt5v4fjo= 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 15:31:59 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:BMSXyd/6jZOXfp6hbj3whYi3Fr7yF4OxbDSMCfnNAcTbfYIuEN0HpbYMTDjUcSiwZkBPU 5Ve0TKHlG6gdSmnJHC/NlPIrckTR6rVAfkbCCukfFhIiBkha31j3UQRWrenyWJgPxsajmQ7M7hn5 5Ovir0ayt5r6OaQbh50tQPpM7Adksm0m095gylW3bptywS21rMJOY+nI91VgoNs8oejkUj8rrKEX JZmc9gpdAcHa/wGo2+pSQqQ1ZEIHLomXw4MwXdC1yPBJwxqkdJJOfydmxelDZhP7enwHzMqhoBLO P4= X-UI-Out-Filterresults: notjunk:1;V03:K0:Uxa34Eou+pc=:7HpvcbZrituYz1+ki1D7I+ OvOujif0sgh47zkKyWGh+eUOCo9kc0FArqIGfAeLDLxQ/UpvxPOQXvFo1PLF7dUc+PQMTO4yw pm9yLcFX3HTCMPFAwtdTTwBPHjyxAm21aW+RhDr0q1dDeqWyq7ohwhdo5eKhYlBCiPXLby8wv 3VQCd2eFp13a6IZjG8c8/bj6gizbJNMVEAKzic1Kqx2YJCIIpnJ5InZwgMh7bKHd4g1Htnd8s auROLWh6ZyupqZNNjuYEbS3MQzPUEtSgkewMC9AiuLk0P4dMWCFLYL29k0m0hUlxtwJ6Zvmub moCy1ADSDxGNnPyUsN4s2Bm0VtIJUyForoICzGnmzxm3ivwBfnmJnAXErAgH3Ce006oC1or1i xuAPNWluuii4mX1mKGusDEjTp0Or9GoF/EyPcb21oV9IMctxpj6CoNRz4KCKRSFfROfZyUTep PQiDWZpmr/5NJDBw2aQSXFWEvEDk3msXtHm8x30HvgqjTvgdyMiiK8wO75M1WOTNKs/OkVZwM JZs4lgZxs4TPVGygXDIBKHUbh5cZyEXUOvaJgOxfDg0c0Uy44tIOCnSRCboTtRa0L69VZf1La xBlsLU9isCALHLtItWEcFSZoOotA1aXwf4l/POyYvmUx+8gQsbfqBdoI568lmnrZh8QmKJ/XO 0mBFPJBHAvlygTj5AN5CYu5yccKvw7yWTDvjG2r4g7BkCTMzRmLMZ9Z01XAvFLhKKQDcjvbEM 9kRTEJzdLnjgBudwvvrSnXK5j2393fH6mLWIEDGI9iY8v6HJZ7X/PgjMLVjCGG5tM0Mu2jqw Received-SPF: pass client-ip=212.227.17.21; 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:129767 Archived-At: Have wade to following adaptation which seems to work. Still I would valu= e comments and points of view. (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) )) (add-hook 'texinfo-mode-hook 'vmove-keytrigger) > Sent: Saturday, May 15, 2021 at 12:24 AM > From: michael-franzese@gmx.com > To: michael-franzese@gmx.com > Cc: "Help Gnu Emacs" , "Jean Louis" > Subject: Re: Changing outline-minor-mode keybindings for texinfo files > > > 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 fil= es > > > > > > * michael-franzese@gmx.com [2021-05-14 10= :29]: > > > > 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 t= han > 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/ > > > > > > > > > > > >