| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch fixes a bug in quilt-editable: if QUILT_PATCHES_PREFIX is
set, quilt-editable will always return nil, even if the file being
edited is part of the topmost patch.
If QUILT_PATCHES_PREFIX is set, then 'quilt top' prints the patch name
as a relative path to the patch. Since in quilt-editable we're running
'quilt top' from the top level directory, the printed patch path is in
the form $QUILT_PATCHES/patch-name.
Later on, we're looking for a cached version of the file that we're
editing in .pc/. The patch directories are stored directly under .pc/,
rather than .pc/$QUILT_PATCHES/, so we must remove the $QUILT_PATCHES/
prefix from the patch path.
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
|
|
| |
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When creating the .pc/ directory, quilt writes the value of
QUILT_PATCHES to .pc/.quilt_patches. On all subsequent invocations,
quilt uses the contents of .pc/.quilt_patches as the value of
QUILT_PATCHES, rather than the value set in quiltrc.
All the callers in quilt.el really expect the per-project setting from
.pc/.quilt_patches, so return the value set therein if present.
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
|
|
|
|
|
| |
quilt loads /etc/quilt.quiltrc if ~/.quiltrc doesn't exist. Do the
same in quilt.el.
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
|
|
|
|
|
|
| |
quilt-patches-directory is a copy-paste of
quilt-pc-directory. Refactor the common code into a separate
function.
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
|
|
|
|
|
|
| |
This is a copy-and-paste error from function quilt-patches-directory
in commit f7b69c58d21903baacb290840e7bed9282e357e2.
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
Fixes: f7b69c58d219 ("lib/emacs: read QUILT_PC from config file")
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
|
|
| |
Read QUILT_PC from config instead of using hardcoded one.
Do it as we do with QUILT_PATCHES var.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
One user reported the following issue as bug #51977:
Lisp error: (wrong-type-argument stringp nil)
file-name-nondirectory(nil)
(let ((p (file-name-nondirectory (quilt-top-patch)))) (if (not p) "none" (let ((p2 (file-name-sans-extension p))) (if (< (length p2) 10) p2 (concat (substring p2 0 8) "..")))))
quilt-short-patchname()
(concat " Q:" (quilt-short-patchname))
(setq quilt-mode-line (concat " Q:" (quilt-short-patchname)))
quilt-update-modeline()
This change should fix it.
https://savannah.nongnu.org/bugs/?51977
|
|
|
|
| |
patch name
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
A typo in quilt-patch-list prevents patch select completion operation.
Reviewed and tested by Satoru Takeuchi.
|
|
|
|
|
|
|
| |
quilt-find-dir goes to endless recursion if root is not '/'. This
holds for files opened with tramp for example.
Reviewed and tested by Satoru Takeuchi.
|
|
|
|
|
|
|
| |
* Delete blank lines at end of files.
* Delete white space at end of lines.
* Delete spaces before tab.
* Replace 8 spaces by a tab where it makes sense.
|
|
|
|
| |
It's a regression problem caused by a106d99d754c88c049c111f6ccdfb06c2bede4f2.
|
|
|
|
| |
Now quilt-el is a part of quilt itself. So above tags are no longer needed.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
installed properly, yet.)
|