all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72768: [PATCH] Keep local keymap out of vc-git-stash-get-at-point
@ 2024-08-23  5:23 James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-26 22:07 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-23  5:23 UTC (permalink / raw)
  To: 72768

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: [PATCH] Keep local keymap out of vc-git-stash-get-at-point --]
[-- Type: text/x-patch, Size: 842 bytes --]

From f4769888b8f7c86db58c449b7608604a1a629905 Mon Sep 17 00:00:00 2001
From: James Thomas <jimjoe@gmx.net>
Date: Fri, 23 Aug 2024 10:43:39 +0530
Subject: [PATCH] Keep local keymap out of vc-git-stash-get-at-point

* lisp/vc/vc-git.el (vc-git-stash-get-at-point): Make the
change.
---
 lisp/vc/vc-git.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index e8257c5dbd0..1133424edeb 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -2135,7 +2135,7 @@ vc-git-stash-get-at-point
     (goto-char point)
     (beginning-of-line)
     (if (looking-at "^ +\\({[0-9]+}\\):")
-	(match-string 1)
+	(match-string-no-properties 1)
       (error "Cannot find stash at point"))))

 ;; vc-git-stash-delete-at-point must be called from a vc-dir buffer.
--
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#72768: [PATCH] Keep local keymap out of vc-git-stash-get-at-point
  2024-08-23  5:23 bug#72768: [PATCH] Keep local keymap out of vc-git-stash-get-at-point James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-08-26 22:07 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-09-07  7:33   ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-26 22:07 UTC (permalink / raw)
  To: 72768

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)

--





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#72768: [PATCH] Keep local keymap out of vc-git-stash-get-at-point
  2024-08-26 22:07 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-09-07  7:33   ` Eli Zaretskii
  2024-09-08  2:11     ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-09-07  7:33 UTC (permalink / raw)
  To: James Thomas, Dmitry Gutov; +Cc: 72768

> 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@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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#72768: [PATCH] Keep local keymap out of vc-git-stash-get-at-point
  2024-09-07  7:33   ` Eli Zaretskii
@ 2024-09-08  2:11     ` Dmitry Gutov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Gutov @ 2024-09-08  2:11 UTC (permalink / raw)
  To: Eli Zaretskii, James Thomas; +Cc: 72768-done

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@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!





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-08  2:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23  5:23 bug#72768: [PATCH] Keep local keymap out of vc-git-stash-get-at-point James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-26 22:07 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-07  7:33   ` Eli Zaretskii
2024-09-08  2:11     ` Dmitry Gutov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.