* bug#37240: [PATCH] Provide facility to ignore all marked files
@ 2019-08-30 22:07 Wolfgang Scherer
2019-08-31 6:48 ` Eli Zaretskii
2019-09-15 13:00 ` Lars Ingebrigtsen
0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Scherer @ 2019-08-30 22:07 UTC (permalink / raw)
To: 37240
[-- Attachment #1: Type: text/plain, Size: 38 bytes --]
Feature request vor *vc-dir* buffer.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Provide-facility-to-ignore-all-marked-files.patch --]
[-- Type: text/x-patch; name="0001-Provide-facility-to-ignore-all-marked-files.patch", Size: 1224 bytes --]
From 7e2fd7641a15a11eca50af490c51927c170a7bb0 Mon Sep 17 00:00:00 2001
From: Wolfgang Scherer <wolfgang.scherer@gmx.de>
Date: Sat, 31 Aug 2019 00:01:40 +0200
Subject: [PATCH] Provide facility to ignore all marked files
* lisp/vc/vc-dir.el: (vc-dir-ignore) With prefix argument, ignore all
marked files.
---
lisp/vc/vc-dir.el | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el
index 9a6f6bb..e225978 100644
--- a/lisp/vc/vc-dir.el
+++ b/lisp/vc/vc-dir.el
@@ -864,10 +864,18 @@ with the command \\[tags-loop-continue]."
delimited)
(fileloop-continue))
-(defun vc-dir-ignore ()
- "Ignore the current file."
- (interactive)
- (vc-ignore (vc-dir-current-file)))
+(defun vc-dir-ignore (&optional arg)
+ "Ignore the current file.
+If a prefix argument is given, ignore all marked files."
+ (interactive "P")
+ (if arg
+ (ewoc-map
+ (lambda (filearg)
+ (when (vc-dir-fileinfo->marked filearg)
+ (vc-ignore (vc-dir-fileinfo->name filearg))
+ t))
+ vc-ewoc)
+ (vc-ignore (vc-dir-current-file))))
(defun vc-dir-current-file ()
(let ((node (ewoc-locate vc-ewoc)))
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* bug#37240: [PATCH] Provide facility to ignore all marked files
2019-08-30 22:07 bug#37240: [PATCH] Provide facility to ignore all marked files Wolfgang Scherer
@ 2019-08-31 6:48 ` Eli Zaretskii
2019-09-15 13:00 ` Lars Ingebrigtsen
1 sibling, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2019-08-31 6:48 UTC (permalink / raw)
To: Wolfgang Scherer; +Cc: 37240
> From: Wolfgang Scherer <Wolfgang.Scherer@gmx.de>
> Date: Sat, 31 Aug 2019 00:07:17 +0200
>
> * lisp/vc/vc-dir.el: (vc-dir-ignore) With prefix argument, ignore all
> marked files.
Thanks. User-visible changes should come with a suitable NEWS entry.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#37240: [PATCH] Provide facility to ignore all marked files
2019-08-30 22:07 bug#37240: [PATCH] Provide facility to ignore all marked files Wolfgang Scherer
2019-08-31 6:48 ` Eli Zaretskii
@ 2019-09-15 13:00 ` Lars Ingebrigtsen
2019-09-15 15:40 ` Eli Zaretskii
1 sibling, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-15 13:00 UTC (permalink / raw)
To: Wolfgang Scherer; +Cc: 37240
Wolfgang Scherer <Wolfgang.Scherer@gmx.de> writes:
> Feature request vor *vc-dir* buffer.
Looks good; I've applied it to Emacs 27 with a NEWS entry.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#37240: [PATCH] Provide facility to ignore all marked files
2019-09-15 13:00 ` Lars Ingebrigtsen
@ 2019-09-15 15:40 ` Eli Zaretskii
2019-09-16 12:35 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2019-09-15 15:40 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 37240, Wolfgang.Scherer
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 15 Sep 2019 15:00:39 +0200
> Cc: 37240@debbugs.gnu.org
>
> Wolfgang Scherer <Wolfgang.Scherer@gmx.de> writes:
>
> > Feature request vor *vc-dir* buffer.
>
> Looks good; I've applied it to Emacs 27 with a NEWS entry.
Should this command be mentioned in the "VC Directory Commands" node
of the user manual?
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#37240: [PATCH] Provide facility to ignore all marked files
2019-09-15 15:40 ` Eli Zaretskii
@ 2019-09-16 12:35 ` Lars Ingebrigtsen
2019-09-16 14:31 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-16 12:35 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 37240, Wolfgang.Scherer
Eli Zaretskii <eliz@gnu.org> writes:
> Should this command be mentioned in the "VC Directory Commands" node
> of the user manual?
It wasn't previously, so my guess was that it wasn't considered
important enough to mention.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#37240: [PATCH] Provide facility to ignore all marked files
2019-09-16 12:35 ` Lars Ingebrigtsen
@ 2019-09-16 14:31 ` Eli Zaretskii
2019-09-16 20:02 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2019-09-16 14:31 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 37240, Wolfgang.Scherer
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Wolfgang.Scherer@gmx.de, 37240@debbugs.gnu.org
> Date: Mon, 16 Sep 2019 14:35:41 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > Should this command be mentioned in the "VC Directory Commands" node
> > of the user manual?
>
> It wasn't previously, so my guess was that it wasn't considered
> important enough to mention.
I think it wasn't mention by omission.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#37240: [PATCH] Provide facility to ignore all marked files
2019-09-16 14:31 ` Eli Zaretskii
@ 2019-09-16 20:02 ` Lars Ingebrigtsen
2019-09-17 5:45 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-16 20:02 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 37240, Wolfgang.Scherer
Eli Zaretskii <eliz@gnu.org> writes:
>> > Should this command be mentioned in the "VC Directory Commands" node
>> > of the user manual?
>>
>> It wasn't previously, so my guess was that it wasn't considered
>> important enough to mention.
>
> I think it wasn't mention by omission.
OK; I've now added an entry for it in the manual.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#37240: [PATCH] Provide facility to ignore all marked files
2019-09-16 20:02 ` Lars Ingebrigtsen
@ 2019-09-17 5:45 ` Eli Zaretskii
0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2019-09-17 5:45 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 37240, Wolfgang.Scherer
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Wolfgang.Scherer@gmx.de, 37240@debbugs.gnu.org
> Date: Mon, 16 Sep 2019 22:02:47 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> > Should this command be mentioned in the "VC Directory Commands" node
> >> > of the user manual?
> >>
> >> It wasn't previously, so my guess was that it wasn't considered
> >> important enough to mention.
> >
> > I think it wasn't mention by omission.
>
> OK; I've now added an entry for it in the manual.
Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-09-17 5:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-30 22:07 bug#37240: [PATCH] Provide facility to ignore all marked files Wolfgang Scherer
2019-08-31 6:48 ` Eli Zaretskii
2019-09-15 13:00 ` Lars Ingebrigtsen
2019-09-15 15:40 ` Eli Zaretskii
2019-09-16 12:35 ` Lars Ingebrigtsen
2019-09-16 14:31 ` Eli Zaretskii
2019-09-16 20:02 ` Lars Ingebrigtsen
2019-09-17 5:45 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).