all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#58378: [PATCH] Fix misleading prompt in vc-git-create-tag
@ 2022-10-08 12:08 Visuwesh
  2022-10-08 13:14 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Visuwesh @ 2022-10-08 12:08 UTC (permalink / raw)
  To: 58378

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

Tags: patch

The prompt shows a default value but it is not actually passed to
vc-read-revision.  Attached patch fixes that.


In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, Motif Version 2.3.8,
 cairo version 1.16.0) of 2022-10-06 built on astatine
Repository revision: e1d63eda4be2e2de8f1610fb76a1e0eec67a6c42
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure --with-x-toolkit=motif'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-misleading-prompt-in-vc-git-create-tag.patch --]
[-- Type: text/patch, Size: 1111 bytes --]

From 404f1715f155d1ffb9ea65cf17bf4e5aa1b7bbd5 Mon Sep 17 00:00:00 2001
From: Visuwesh <visuweshm@gmail.com>
Date: Sat, 8 Oct 2022 17:37:16 +0530
Subject: [PATCH] Fix misleading prompt in vc-git-create-tag

* lisp/vc/vc-git.el (vc-git-create-tag): Actually pass the DEFAULT
argument to vc-read-revision.
---
 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 f9dae8b9ea..ea06ccaf87 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1635,7 +1635,7 @@ vc-git-create-tag
         (start-point (when branchp (vc-read-revision
                                     (format-prompt "Start point"
                                                    (car (vc-git-branches)))
-                                    (list dir) 'Git))))
+                                    (list dir) 'Git (car (vc-git-branches))))))
     (and (or (zerop (vc-git-command nil t nil "update-index" "--refresh"))
              (y-or-n-p "Modified files exist.  Proceed? ")
              (user-error (format "Can't create %s with modified files"
-- 
2.37.2


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

* bug#58378: [PATCH] Fix misleading prompt in vc-git-create-tag
  2022-10-08 12:08 bug#58378: [PATCH] Fix misleading prompt in vc-git-create-tag Visuwesh
@ 2022-10-08 13:14 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-08 13:14 UTC (permalink / raw)
  To: Visuwesh; +Cc: 58378

Visuwesh <visuweshm@gmail.com> writes:

> The prompt shows a default value but it is not actually passed to
> vc-read-revision.  Attached patch fixes that.

Thanks; pushed to Emacs 29.





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

end of thread, other threads:[~2022-10-08 13:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-08 12:08 bug#58378: [PATCH] Fix misleading prompt in vc-git-create-tag Visuwesh
2022-10-08 13:14 ` Lars Ingebrigtsen

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.