GNU bug report logs - #72768
[PATCH] Keep local keymap out of vc-git-stash-get-at-point

Previous Next

Package: emacs;

Reported by: James Thomas <jimjoe <at> gmx.net>

Date: Fri, 23 Aug 2024 05:25:02 UTC

Severity: normal

Tags: patch

Fixed in version 31.1

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72768 in the body.
You can then email your comments to 72768 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72768; Package emacs. (Fri, 23 Aug 2024 05:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to James Thomas <jimjoe <at> gmx.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 23 Aug 2024 05:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: James Thomas <jimjoe <at> gmx.net>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Keep local keymap out of vc-git-stash-get-at-point
Date: Fri, 23 Aug 2024 10:53:40 +0530
[Message part 1 (text/plain, inline)]
emacs -Q
(define-key key-translation-map  [?\C-j] (kbd "RET"))
M-x vc-dir (select a git repo)
(with point on a 'stash' entry) C-x v ! = C-j (fails)

The following seems to work:

[0001-Keep-local-keymap-out-of-vc-git-stash-get-at-point.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72768; Package emacs. (Mon, 26 Aug 2024 22:10:01 GMT) Full text and rfc822 format available.

Message #8 received at 72768 <at> debbugs.gnu.org (full text, mbox):

From: James Thomas <jimjoe <at> gmx.net>
To: 72768 <at> debbugs.gnu.org
Subject: Re: [PATCH] Keep local keymap out of vc-git-stash-get-at-point
Date: Tue, 27 Aug 2024 03:37:54 +0530
James Thomas wrote:

> emacs -Q
> (define-key key-translation-map  [?\C-j] (kbd "RET"))
> M-x vc-dir (select a git repo)
> (with point on a 'stash' entry) C-x v ! = C-j (fails)

Of course, if a 'stash' doesn't exist, it may be created, so that the
steps are:

emacs -Q
C-x C-f (open a git-tracked file, make changes), C-x C-s (and save it)
C-x p v (select the above repo)
z c (create stash)
M-: (define-key key-translation-map  [?\C-j] (kbd "RET"))
(with point on the new 'stash' entry) C-x v ! = C-j (fails)

--




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72768; Package emacs. (Sat, 07 Sep 2024 07:35:01 GMT) Full text and rfc822 format available.

Message #11 received at 72768 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: James Thomas <jimjoe <at> gmx.net>, Dmitry Gutov <dmitry <at> gutov.dev>
Cc: 72768 <at> debbugs.gnu.org
Subject: Re: bug#72768: [PATCH] Keep local keymap out of
 vc-git-stash-get-at-point
Date: Sat, 07 Sep 2024 10:33:53 +0300
> Date: Tue, 27 Aug 2024 03:37:54 +0530
> From:  James Thomas via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> James Thomas wrote:
> 
> > emacs -Q
> > (define-key key-translation-map  [?\C-j] (kbd "RET"))
> > M-x vc-dir (select a git repo)
> > (with point on a 'stash' entry) C-x v ! = C-j (fails)
> 
> Of course, if a 'stash' doesn't exist, it may be created, so that the
> steps are:
> 
> emacs -Q
> C-x C-f (open a git-tracked file, make changes), C-x C-s (and save it)
> C-x p v (select the above repo)
> z c (create stash)
> M-: (define-key key-translation-map  [?\C-j] (kbd "RET"))
> (with point on the new 'stash' entry) C-x v ! = C-j (fails)

Dmitry, any comments or suggestions?




Reply sent to Dmitry Gutov <dmitry <at> gutov.dev>:
You have taken responsibility. (Sun, 08 Sep 2024 02:12:02 GMT) Full text and rfc822 format available.

Notification sent to James Thomas <jimjoe <at> gmx.net>:
bug acknowledged by developer. (Sun, 08 Sep 2024 02:12:02 GMT) Full text and rfc822 format available.

Message #16 received at 72768-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Eli Zaretskii <eliz <at> gnu.org>, James Thomas <jimjoe <at> gmx.net>
Cc: 72768-done <at> debbugs.gnu.org
Subject: Re: bug#72768: [PATCH] Keep local keymap out of
 vc-git-stash-get-at-point
Date: Sun, 8 Sep 2024 05:11:29 +0300
Version: 31.1

On 07/09/2024 10:33, Eli Zaretskii wrote:
>> Date: Tue, 27 Aug 2024 03:37:54 +0530
>> From:  James Thomas via "Bug reports for GNU Emacs,
>>   the Swiss army knife of text editors"<bug-gnu-emacs <at> gnu.org>
>>
>> James Thomas wrote:
>>
>>> emacs -Q
>>> (define-key key-translation-map  [?\C-j] (kbd "RET"))
>>> M-x vc-dir (select a git repo)
>>> (with point on a 'stash' entry) C-x v ! = C-j (fails)
>> Of course, if a 'stash' doesn't exist, it may be created, so that the
>> steps are:
>>
>> emacs -Q
>> C-x C-f (open a git-tracked file, make changes), C-x C-s (and save it)
>> C-x p v (select the above repo)
>> z c (create stash)
>> M-: (define-key key-translation-map  [?\C-j] (kbd "RET"))
>> (with point on the new 'stash' entry) C-x v ! = C-j (fails)
> Dmitry, any comments or suggestions?

Makes sense. Pushed to master, thanks!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 06 Oct 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.