summaryrefslogtreecommitdiffstats
path: root/lib
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
|
* Clean up legacy C codeJean Delvare2012-02-011-622/+0
| | | | | | | Finally get rid of the old C implementation of backup-files, together with all the related checks in configure and variables in Makefile. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* - No longer create backup files of new files with file mode 0.Andreas Gruenbacher2009-11-221-2/+3
| | | | (This has been changed in GNU patch 2.6 as well.)
* Concurrent readdir() + unlink() compatibility fixAndreas Gruenbacher2009-06-151-15/+35
|
* Convert to git repository formatv0.48Andreas Gruenbacher2009-01-291-1/+0
|
* - Stop using cp -l: it doesn't fall back to doing a regular copyAndreas Gruenbacher2008-05-201-7/+17
| | | | | when hardlinks are not supported; on some types of filesystems like AFS and in some situtions, this is annoying.
* 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
|
* - lib/backup-files.c: Do not modify the original file wheneverAndreas Gruenbacher2007-04-161-10/+16
| | | | | | | possible: previously, a ``quilt add'' usually linked the file to he backup and then copied the backup over the file to ensure a link count of one. Recognize this case, and create a copy in the first place instead.
* - Add quilt.el and its README file. (The emacs mode is not beingAndreas Gruenbacher2007-04-151-0/+486
| | | | installed properly, yet.)
* - lib/backup-files.c: Close files before rename; Windows won'tAndreas Gruenbacher2006-02-121-2/+8
| | | | rename open files.
* - bin/patch-wrapper.in: A wrapper to GNU patch that recognizes theAndreas Gruenbacher2006-02-061-5/+7
| | | | | | | | | | most common options and mimics GNU patch's behavior and output, and creates the quilt metadata as if quilt push was used to apply the patch. When options are used that this wrapper does not recognize, GNU patch is used directly, and no quilt metadata will get created. - lib/backup-files.c: Don't fail if a directory specified with -B does not exist.
* - Allow backup-files to build on windows using the MinGW compiler.Andreas Gruenbacher2006-01-301-0/+11
|
* - lib/backup-files.c: Tru64 does not have snprintf. (Reported byAndreas Gruenbacher2006-01-301-5/+3
| | | | John Vandenberg).
* - Change the default PATH_MAX from 4095 to 4096.Andreas Gruenbacher2006-01-261-2/+2
| | | | - sizeof(char) == 1.
* - lib/backup-files.c: Fix usage line and help text.Jean Delvare2006-01-261-10/+14
| | | | | - lib/backup-files.c: Improve recursive processing by avoiding repeated realloc and strlen calls. Hardly measurable though.
* - Use perror(progname) instead of perror(NULL).Andreas Gruenbacher2006-01-261-1/+1
|
* - Also check for access(path, R_OK|X_OK) before visiting all theAndreas Gruenbacher2006-01-261-1/+1
| | | | | files in a directory: this avoids an error message for each file in a non-executable directory.
* - lib/backup-files.c: Stop using ftw and implement our own dirAndreas Gruenbacher2006-01-263-156/+68
| | | | | walking: ftw is a portability nightmare. The foreachdir function is based a proposal from Gary V. Vaughan <gary@gnu.org>, thanks!
* - lib/backup-files.c: Fix memory leaks (markus@oberhumer.com).Andreas Gruenbacher2006-01-251-3/+4
|
* - lib/backup-files.c: Don't fail when link(1) returns ENOSYS, andAndreas Gruenbacher2006-01-251-1/+2
| | | | try to copy in that case.