summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Le Goater <legoater@free.fr>2015-03-10 15:40:29 +0100
committerJean Delvare <jdelvare@suse.de>2015-03-12 09:18:48 +0100
commit2c8246c41cc20ff7b59f69953bfbfa839400e000 (patch)
tree859708cc22ae92edf5452f918520744f20094d26
parent330af1bbabb2673a918e1db4192331cbfc5c0f4e (diff)
downloadquilt-2c8246c41cc20ff7b59f69953bfbfa839400e000.tar.gz
quilt-el: fix quilt-editable when patches are stored in subdirs
I frequently use sub-directories to store different patchsets under the quilt patches/ directory. Unfortunately, the quilt emacs mode does not handle this case and the file is not considered editable. The issue seems to be in the quilt-top-patch which does an equivalent of basename on the patch name. The proposal below changes the quilt-editable routine to keep the full name of the patch. Signed-off-by: Cédric Le Goater <legoater@free.fr>
-rw-r--r--lib/quilt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quilt.el b/lib/quilt.el
index be359e5..c1acaab 100644
--- a/lib/quilt.el
+++ b/lib/quilt.el
@@ -175,7 +175,7 @@
(if (quilt-bottom-p)
(quilt-cmd "applied") ; to print error message
(setq dirs (if quilt-edit-top-only
- (list (quilt-top-patch))
+ (list (substring (quilt-cmd-to-string "top") 0 -1))
(cdr (cdr (directory-files (concat qd ".pc/"))))))
(while (and (not result) dirs)
(if (file-exists-p (concat qd ".pc/" (car dirs) "/" fn))