From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#69786: [PATCH] docs: mention the keymap to add keybindings to for term-mode Date: Sat, 16 Mar 2024 16:20:49 +0300 Message-ID: <304eec59a339d95b43dce184b72672902919ef9f.camel@yandex.ru> References: <844975c2f1ed019fb6be836643e118ed850e0605.camel@yandex.ru> <86ttl9bdp2.fsf@gnu.org> <86sf0tb73h.fsf@gnu.org> <4f76012b122ae8334689a6b124ffb671a72f1454.camel@yandex.ru> <86le6l9ije.fsf@gnu.org> <3785c26d25246527144ffaf2a5079c45bd621cc1.camel@yandex.ru> <86v85m5s6v.fsf@gnu.org> 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="36853"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.50.4 Cc: 69786-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 16 14:21:42 2024 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 1rlTyn-0009Ld-GA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Mar 2024 14:21:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlTya-0001ma-24; Sat, 16 Mar 2024 09:21:28 -0400 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 1rlTyY-0001mN-BW for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 09:21:26 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rlTyX-0007Zq-On for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 09:21:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlTz8-0008Ef-DT for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 09:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Mar 2024 13:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 69786-done@debbugs.gnu.org id=D69786.171059529431593 (code D ref 69786); Sat, 16 Mar 2024 13:22:02 +0000 Original-Received: (at 69786-done) by debbugs.gnu.org; 16 Mar 2024 13:21:34 +0000 Original-Received: from localhost ([127.0.0.1]:55130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlTyg-0008DT-5h for submit@debbugs.gnu.org; Sat, 16 Mar 2024 09:21:34 -0400 Original-Received: from forward500a.mail.yandex.net ([178.154.239.80]:46378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlTyc-0008DE-Hn for 69786-done@debbugs.gnu.org; Sat, 16 Mar 2024 09:21:32 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net [IPv6:2a02:6b8:c2b:7a7:0:640:3f88:0]) by forward500a.mail.yandex.net (Yandex) with ESMTPS id 6C1FC60FFB; Sat, 16 Mar 2024 16:20:50 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id nKqaOHAuMqM0-r6NTtfOO; Sat, 16 Mar 2024 16:20:50 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1710595250; bh=8xOIqRXZ9OF1Wk8ZX3GJrGBZy5sk+9BtLeXHakZuzrE=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=psMp9RgCV0efZsTui4u66L+zsEoQHemwcmu4VXrwanDuRnFdvsuoRPhf83oUm6Wvi vij2TxvqQSyVtAXSKdQKCNGFOwM7C0EfLR36VBd405EAIfFzj36g1DxudC4W3SQBAZ EblKAL1W/MtqcG1hzCNJ38VkUqid8+1GRWn0wie8= Authentication-Results: mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <86v85m5s6v.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281726 Archived-At: On Sat, 2024-03-16 at 13:31 +0200, Eli Zaretskii wrote: > > From: Konstantin Kharlamov > > Cc: 69786@debbugs.gnu.org > > Date: Sat, 16 Mar 2024 13:36:20 +0300 > > > > On Thu, 2024-03-14 at 13:09 +0200, Eli Zaretskii wrote: > > > > > > > Okay then, I'll add docs to the `term-mode` if you think it > > > > might > > > > be > > > > useful for someone and (re: the other email) to `term-mode-map` > > > > and > > > > `term-raw-map` variables =F0=9F=98=8A > > > > > > Thanks. > > > > Done, please see if it's okay now. > > Thanks, installed on the emacs-29 branch, and closing the bug. Thank you! > Please in the future try to remember mentioning the bug number (if > known) in the commit log message, and also quote symbols `like this' > or 'like this', but not `like this`. Ah, sorry about that, point taken. I thought the `' style of quoting is on= ly of importance in doc-strings (where I have them correct). I had them differen= t in commit message though, I see. I just wrote a config to replace the quote if I'm editing a commit inside E= macs repo, so hopefully that won't a problem in the future. =F0=9F=98=8A Sharing the = code for posterity: (use-package smartparens-config =E2=80=A6 (defun sp-emacs-style-backtick (_ _ _) "Text-mode is used for editing the commit messages. Emacs has style= where a backtick ends with a sungular quote, so let's check if current dir is part of Emacs repo, in which case replace the pair that SP inserted." (save-excursion (when (string-match-p "\\bemacs\\b" default-directory) (delete-char 1) (insert "'")))) (sp-local-pair 'text-mode "`" nil :post-handlers '(:add sp-emacs-styl= e-backtick)) ) > > While at it, could you please remind me how to use `C-x 4 a` to get > > a > > log of changes to be copied to the commit? I'm trying to use it but > > always seem to get random results: sometimes I get "COMMIT_MSG" > > file, > > other times I get a `* lisp/term.el (term-mode-map):` line even > > though > > the `term.el` has also `term-mode` and `term-raw-map` modified=E2=80=A6= I > > presume I might need some special setup for this to work, right? > > Like, > > Idk, having the changes in the git-stash or something like that=E2=80= =A6? I > > dunno, I'm just making things up. > > You need to have point in the body of the function/variable when you > type "C-x 4 a".=C2=A0 I think that's the cause of the problems you > describe. Oh, that's unfortunate, I thought it's gathering all changed functions and = not just the one at point.