summaryrefslogtreecommitdiffstats
path: root/lib/quilt.el
Commit message (Collapse)AuthorAgeFilesLines
* quilt.el: Fix quilt-editable when QUILT_PATCHES_PREFIX is setOndřej Lysoněk2020-06-091-1/+13
| | | | | | | | | | | | | | | | | | | 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>
* quilt.el: Fix a typo in documentationOndřej Lysoněk2020-06-091-1/+1
| | | | | Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* quilt.el: Make quilt-patches-directory return per-project settingOndřej Lysoněk2020-06-091-1/+12
| | | | | | | | | | | | | 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.el: Load /etc/quilt.quiltrc if ~/.quiltrc doesn't existOndřej Lysoněk2020-06-091-1/+5
| | | | | | | | 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.el: Refactor config reading functionsOndřej Lysoněk2020-06-091-18/+11
| | | | | | | | | 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>
* quilt.el: Fix documentation of quilt-pc-directoryOndřej Lysoněk2020-06-091-1/+1
| | | | | | | | | 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>
* lib/emacs: read QUILT_PC from config fileDmitry Monakhov2019-03-141-5/+21
| | | | | Read QUILT_PC from config instead of using hardcoded one. Do it as we do with QUILT_PATCHES var.
* quilt.el: fix emacs compatibility issueleo2017-11-021-3/+3
| | | | | | | | | | | | | | | | 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
* quilt.el: don't strip directory in quilt-top-patch as it could be a part of ↵leo2017-04-251-3/+2
| | | | patch name
* quilt.el: replace deprecated toggle-read-only function call with read-only-modeleo2017-04-251-3/+3
|
* quilt.el: define quilt-edit-top-only before it's usedleo2017-04-251-1/+1
|
* quilt-el: fix quilt-editable when patches are stored in subdirsCédric Le Goater2015-03-121-1/+1
| | | | | | | | | | | | 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>
* quilt-el: Fix patch select completionLeonid Movshovich2015-01-181-1/+1
| | | | | | A typo in quilt-patch-list prevents patch select completion operation. Reviewed and tested by Satoru Takeuchi.
* quilt-el: Fix tramp supportLeonid Movshovich2015-01-181-3/+3
| | | | | | | 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.
* Tree-wide white-space cleanupsJean Delvare2014-01-201-1/+1
| | | | | | | * 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.
* quilt-el: fix `quilt-patch-list' to call `quilt series'..Satoru Takeuchi2012-03-101-1/+1
| | | | It's a regression problem caused by a106d99d754c88c049c111f6ccdfb06c2bede4f2.
* quilt-el: remove `Version' and `URL' tags in the documentSatoru Takeuchi2012-03-101-2/+0
| | | | Now quilt-el is a part of quilt itself. So above tags are no longer needed.
* quilt-el: make it byte compile cleanSatoru Takeuchi2012-03-101-8/+6
|
* quilt-el: make it checkdoc clean.Satoru Takeuchi2012-03-101-54/+82
|
* quilt-el: supporting multiple quilt treesSatoru Takeuchi2012-03-101-31/+75
|
* quilt-el: cleanup codes by introducing `quilt-cmd-to-list' function.Satoru Takeuchi2012-03-101-9/+10
|
* quilt-el: fix polluting namespace by nested function.Satoru Takeuchi2012-03-101-33/+29
|
* quilt-el: return to the original cwd even if `shell-command' failed.Satoru Takeuchi2012-03-101-4/+6
|
* quilt-el: update the maintainer's email addres.Satoru Takeuchi2012-03-101-1/+1
|
* quilt-el: optimize `quilt-revert'Satoru Takeuchi2012-03-101-1/+2
|
* quilt-el: considering default-directory' is nilSatoru Takeuchi2012-03-101-1/+2
|
* quilt-el: simplify quilt-revertSatoru Takeuchi2012-03-101-6/+2
|
* quilt-el: be aware of QUILT_PATCHESSatoru Takeuchi2012-03-101-2/+14
|
* fixing quilt-importSatoru Takeuchi2007-10-061-1/+3
|
* fixing no-patch-applied cases.Satoru Takeuchi2007-10-061-35/+45
|
* support QUILT_PATCHES_PREFIXSatoru Takeuchi2007-10-061-1/+1
|
* Move quilt-mode-line definition to topleve.Satoru Takeuchi2007-07-211-2/+3
|
* - Add quilt.el and its README file. (The emacs mode is not beingAndreas Gruenbacher2007-04-151-0/+486
installed properly, yet.)