git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [StGit PATCH] Homogenize buffer names
@ 2008-01-24  7:55 Karl Hasselström
  2008-01-24  8:51 ` David Kågedal
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Hasselström @ 2008-01-24  7:55 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git, David Kågedal

It was driving me crazy that I couldn't tab-complete "*stg" to
"*stgit*" because there was always a "*stgit edit*" buffer lying
around.

Signed-off-by: Karl Hasselström <kha@treskal.com>

---

David, do you agree with this fix?

 contrib/stgit.el |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/contrib/stgit.el b/contrib/stgit.el
index 4d0faca..e8bbb2c 100644
--- a/contrib/stgit.el
+++ b/contrib/stgit.el
@@ -293,7 +293,7 @@ Commands:
   (let ((patch (if (stgit-applied-at-point)
                    (stgit-patch-at-point)
                  (error "This patch is not applied")))
-        (edit-buf (get-buffer-create "*stgit edit*"))
+        (edit-buf (get-buffer-create "*StGit edit*"))
         (dir default-directory))
     (log-edit 'stgit-confirm-edit t nil edit-buf)
     (set (make-local-variable 'stgit-edit-patch) patch)
@@ -313,7 +313,7 @@ Commands:
 (defun stgit-new ()
   "Create a new patch"
   (interactive)
-  (let ((edit-buf (get-buffer-create "*stgit edit*")))
+  (let ((edit-buf (get-buffer-create "*StGit edit*")))
     (log-edit 'stgit-confirm-new t nil edit-buf)))
 
 (defun stgit-confirm-new ()
@@ -352,7 +352,7 @@ Commands:
 (defun stgit-coalesce (patch-names)
   "Run stg coalesce on the named patches"
   (interactive (list (stgit-marked-patches)))
-  (let ((edit-buf (get-buffer-create "*stgit edit*"))
+  (let ((edit-buf (get-buffer-create "*StGit edit*"))
         (dir default-directory))
     (log-edit 'stgit-confirm-coalesce t nil edit-buf)
     (set (make-local-variable 'stgit-patches) patch-names)

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

* Re: [StGit PATCH] Homogenize buffer names
  2008-01-24  7:55 [StGit PATCH] Homogenize buffer names Karl Hasselström
@ 2008-01-24  8:51 ` David Kågedal
  0 siblings, 0 replies; 2+ messages in thread
From: David Kågedal @ 2008-01-24  8:51 UTC (permalink / raw)
  To: Catalin Marinas, Karl Hasselström; +Cc: git

Karl Hasselström <kha@treskal.com> writes:

> It was driving me crazy that I couldn't tab-complete "*stg" to
> "*stgit*" because there was always a "*stgit edit*" buffer lying
> around.

At least I have been annoyed by it as well. So I think it's an ok
change.

> Signed-off-by: Karl Hasselström <kha@treskal.com>
>
> ---
>
> David, do you agree with this fix?
>
>  contrib/stgit.el |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
>
> diff --git a/contrib/stgit.el b/contrib/stgit.el
> index 4d0faca..e8bbb2c 100644
> --- a/contrib/stgit.el
> +++ b/contrib/stgit.el
> @@ -293,7 +293,7 @@ Commands:
>    (let ((patch (if (stgit-applied-at-point)
>                     (stgit-patch-at-point)
>                   (error "This patch is not applied")))
> -        (edit-buf (get-buffer-create "*stgit edit*"))
> +        (edit-buf (get-buffer-create "*StGit edit*"))
>          (dir default-directory))
>      (log-edit 'stgit-confirm-edit t nil edit-buf)
>      (set (make-local-variable 'stgit-edit-patch) patch)
> @@ -313,7 +313,7 @@ Commands:
>  (defun stgit-new ()
>    "Create a new patch"
>    (interactive)
> -  (let ((edit-buf (get-buffer-create "*stgit edit*")))
> +  (let ((edit-buf (get-buffer-create "*StGit edit*")))
>      (log-edit 'stgit-confirm-new t nil edit-buf)))
>  
>  (defun stgit-confirm-new ()
> @@ -352,7 +352,7 @@ Commands:
>  (defun stgit-coalesce (patch-names)
>    "Run stg coalesce on the named patches"
>    (interactive (list (stgit-marked-patches)))
> -  (let ((edit-buf (get-buffer-create "*stgit edit*"))
> +  (let ((edit-buf (get-buffer-create "*StGit edit*"))
>          (dir default-directory))
>      (log-edit 'stgit-confirm-coalesce t nil edit-buf)
>      (set (make-local-variable 'stgit-patches) patch-names)
>

-- 
David Kågedal

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

end of thread, other threads:[~2008-01-24  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-24  7:55 [StGit PATCH] Homogenize buffer names Karl Hasselström
2008-01-24  8:51 ` David Kågedal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).