From: Karl Hasselström Date: Thu, 31 Jan 2008 14:36:58 +0000 (+0100) Subject: Emacs mode: It's possible to edit unapplied patches now X-Git-Tag: v0.15-rc1~277 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/8ae7dc9d485fe5f3fee02ead7f25133be7321614 Emacs mode: It's possible to edit unapplied patches now With the rewrite, "stg edit" gained the ability to edit unapplied patches, so the emacs mode no longer has to check that a patch is applied before trying to edit it. Signed-off-by: Karl Hasselström --- diff --git a/contrib/stgit.el b/contrib/stgit.el index e8bbb2c..bef41c7 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -290,9 +290,7 @@ (defun stgit-show () (defun stgit-edit () "Edit the patch on the current line" (interactive) - (let ((patch (if (stgit-applied-at-point) - (stgit-patch-at-point) - (error "This patch is not applied"))) + (let ((patch (stgit-patch-at-point)) (edit-buf (get-buffer-create "*StGit edit*")) (dir default-directory)) (log-edit 'stgit-confirm-edit t nil edit-buf)