{"thread":{"id":"10498","subject":"[PATCH] git.el: Refresh only the changed file marks when marking/unmarking all.","startedAt":"2007-10-28T10:06:27Z","lastAt":"2007-10-28T10:06:27Z","messageCount":1,"participants":["Alexandre Julliard"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"57410","messageId":"878x5nd04c.fsf@wine.dyndns.org","threadId":"10498","inReplyTo":null,"subject":"[PATCH] git.el: Refresh only the changed file marks when marking/unmarking all.","fromName":"Alexandre Julliard","fromEmail":"julliard@winehq.org","sentAt":"2007-10-28T10:06:27Z","receivedAt":"2007-10-28T10:06:27Z","isPatch":true,"sender":{"key":"julliard@winehq.org","avatar":null},"body":"Signed-off-by: Alexandre Julliard <julliard@winehq.org>\n---\n contrib/emacs/git.el |    7 +++++--\n 1 files changed, 5 insertions(+), 2 deletions(-)\n\ndiff --git a/contrib/emacs/git.el b/contrib/emacs/git.el\nindex 0e5091c..e5ee8ce 100644\n--- a/contrib/emacs/git.el\n+++ b/contrib/emacs/git.el\n@@ -842,7 +842,8 @@ Return the list of files that haven't been handled.\"\n   \"Mark all files.\"\n   (interactive)\n   (unless git-status (error \"Not in git-status buffer.\"))\n-  (ewoc-map (lambda (info) (setf (git-fileinfo->marked info) t) t) git-status)\n+  (ewoc-map (lambda (info) (unless (git-fileinfo->marked info)\n+                             (setf (git-fileinfo->marked info) t))) git-status)\n   ; move back to goal column after invalidate\n   (when goal-column (move-to-column goal-column)))\n \n@@ -850,7 +851,9 @@ Return the list of files that haven't been handled.\"\n   \"Unmark all files.\"\n   (interactive)\n   (unless git-status (error \"Not in git-status buffer.\"))\n-  (ewoc-map (lambda (info) (setf (git-fileinfo->marked info) nil) t) git-status)\n+  (ewoc-map (lambda (info) (when (git-fileinfo->marked info)\n+                             (setf (git-fileinfo->marked info) nil)\n+                             t)) git-status)\n   ; move back to goal column after invalidate\n   (when goal-column (move-to-column goal-column)))\n \n-- \n1.5.3.4.404.g5a866\n\n-- \nAlexandre Julliard\njulliard@winehq.org\n"}]}