From 52bfd419bf9022726048f818d955b8ea10a16d5c Mon Sep 17 00:00:00 2001 From: Patrick Mosby Date: Mon, 7 Sep 2015 09:05:56 +0200 Subject: [PATCH] Don't save undo file for ignored files. This fixes #4. --- undohist.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/undohist.el b/undohist.el index b184a26..de60356 100644 --- a/undohist.el +++ b/undohist.el @@ -164,7 +164,8 @@ To use undohist, you just call this function." undohist-ignored-files))) (defun undohist-save-1 () - (when (consp buffer-undo-list) + (when (and (consp buffer-undo-list) + (undohist-recover-file-p (buffer-file-name (current-buffer)))) (let ((file (make-undohist-file-name (buffer-file-name))) (contents `((digest . ,(md5 (current-buffer))) (undo-list . ,(undohist-encode buffer-undo-list))))) -- 2.21.0 ='submit' value='switch'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/image.scm
AgeCommit message (Collapse)Author
2020-09-30image: Add image-type support.Mathieu Othacehe
* gnu/image.scm (<image-type>): New record, (image-type, image-type?, image-type-name, image-type-constructor, os->image): new procedures. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2020-06-24image: Move hurd image definition to a dedicated file.Mathieu Othacehe
This moves hurd-disk-image to a dedicated file. It also defines a default operating-system so that the image can be built standalone. * gnu/system/images/hurd.scm: New file, * gnu/local.mk (GNU_SYSTEM_MODULES): add it, * gnu/system/image.scm (root-offset, root-label): Export it, (hurd-disk-image): remove it as this is now defined in the new, Hurd dedicated file above, (find-image): adapt to avoid loop dependency.
2020-06-13image: Add 'target' support.Mathieu Othacehe
* gnu/image.scm (<image>)[target]: New field, (image-target): new public method. * gnu/system/image.scm (hurd-disk-image): Set "i586-pc-gnu" as image 'target' field, (maybe-with-target): new procedure, (system-image): honor image 'target' field using the above procedure.