From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete Date: Sat, 28 Mar 2020 00:41:09 +0200 Message-ID: <786821a9-ceab-bbe8-b02a-69e77ddde426@yandex.ru> References: <87sgizy16y.fsf@mail.linkov.net> <1f31a329-eaee-f704-9a58-1b048a6ee636@yandex.ru> <87fteyl64x.fsf@mail.linkov.net> <47fcc86a-a884-0658-d1cb-8666704924e8@yandex.ru> <87o8tkgbe2.fsf@mail.linkov.net> <8736avy640.fsf@mail.linkov.net> <76e52ade-bb44-427a-0910-3fe3cf65bf6d@yandex.ru> <87a751uonw.fsf@mail.linkov.net> <9bab3a53-ec31-3300-132f-dc1e17ee0c53@yandex.ru> <875zfd9lzm.fsf@mail.linkov.net> <87mu8mieve.fsf@mail.linkov.net> <87k13pkxdl.fsf@mail.linkov.net> <207d4e30-aa59-b8eb-c39a-0957757f39eb@yandex.ru> <875zf6cy3w.fsf@mail.linkov.net> <9c39f788-29f1-5a68-c8f3-a4b08ae9ea3b@yandex.ru> <87lfo1dvcf.fsf@mail.linkov.net> <44cda45a-db93-f2c1-626d-9ace68cd6fd1@yandex.ru> <87y2rpqt28.fsf@mail.linkov.net> <874kuci4tx.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="18050"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 27 23:42:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHxg6-0004b7-SI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Mar 2020 23:42:14 +0100 Original-Received: from localhost ([::1]:47872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHxg5-0002Dw-R2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Mar 2020 18:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52965) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHxfx-0002Dp-OU for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2020 18:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHxfw-0008Jl-OS for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2020 18:42:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHxft-0008IC-VJ for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2020 18:42:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jHxft-0004NS-SZ for bug-gnu-emacs@gnu.org; Fri, 27 Mar 2020 18:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Mar 2020 22:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 34949-submit@debbugs.gnu.org id=B34949.158534888016765 (code B ref 34949); Fri, 27 Mar 2020 22:42:01 +0000 Original-Received: (at 34949) by debbugs.gnu.org; 27 Mar 2020 22:41:20 +0000 Original-Received: from localhost ([127.0.0.1]:33473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHxfD-0004ML-R9 for submit@debbugs.gnu.org; Fri, 27 Mar 2020 18:41:20 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:34334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHxfC-0004M4-6g for 34949@debbugs.gnu.org; Fri, 27 Mar 2020 18:41:18 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id 65so13583405wrl.1 for <34949@debbugs.gnu.org>; Fri, 27 Mar 2020 15:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=aW4Kfx5qtypDgjWCE9ZwQnvpDly+0y4BqUVgiyQS9T8=; b=YmrLFrHkvLhGe5KFoiAUNAJy5Sf1cbLTuC6s8XiPjaCzcQSAcHjmqX5cRH4B2Dm7C/ /9gG4IFrwAdqT1NkRePVF98HtnTaIEajX6ozFJY7its30Xd0QScfm3KC7snVbSRpZIcq QXhLkb8yvl0yfgO8HTZT/DrUHVlRfToB6Ds6+bKe7BSyUPpUOx67t+IKOqGjhieiBbBF ZqqXcWhXqSw5ydomV3xkCpsjcxGaOWORnGZ/L05QejCw49PFjUhup3savku81o7IlyDD dgkD+hcR0vXQTtewGcaOYcNL6KNgs229qySNdr2hoxMcMiB1e/BfTmMkTD/liC/TIapA l5JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aW4Kfx5qtypDgjWCE9ZwQnvpDly+0y4BqUVgiyQS9T8=; b=BMtExtt7RWODme920vDR4D4C0aWIb149NDbq24p6posXi8jMSNkvyP/2Fx/uEPbOfX Ev2o07zyP5dgEfYuc5aOD8gkKzJM/fFRHrmlThfSTkjOXcLHfjmMRJEtLHbtSOnoLVFu ou2ruHBmytAF0LjhW3ZYneaVKVS5K2RIz9rGVWfsduBnW6iAYeiPBY3Q9Wb5mNlm5UzI 8A7RjSC1UL0pqosWWnwo7WL5uVI5AN11bOmzZ7ibB1A5HbP9WPddbJaRPczZQistCwif WwM38nn1kmO6QR+Y3A1pgbf4YwZvvCcaZus1sJJz6psa1eWKd+Z5UjdT/1Ws/D2pqmJz iZ5Q== X-Gm-Message-State: ANhLgQ1SidUnMCynnWITZDfuZcRwW4yASRF30P5sHP8ZXuERvSYbtj2e n1sGwwsR+lV/wYQyKryCyWKuhhwa X-Google-Smtp-Source: ADFU+vv8l71sqOYcVzHdC9UYfG3rlrjcTr/wPIOzMsiqYvMuMtJjXIvG2o/WPx27SZ03istlZO2QHQ== X-Received: by 2002:a5d:4290:: with SMTP id k16mr1751584wrq.406.1585348872007; Fri, 27 Mar 2020 15:41:12 -0700 (PDT) Original-Received: from [192.168.0.2] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id i21sm10385142wmb.23.2020.03.27.15.41.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Mar 2020 15:41:11 -0700 (PDT) In-Reply-To: <874kuci4tx.fsf@mail.linkov.net> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177792 Archived-At: On 25.03.2020 22:59, Juri Linkov wrote: >> Then VC-Dir could provide, for example: >> >> * r vc-dir-mark-registered >> * u vc-dir-mark-unregistered >> ... > This is implemented as well: Here's a somewhat more subtle option for your consideration: Personally, I'm likely to never use vc-dir-mark-unregistered because I tend to leave unregistered files around (ones that should really be in gitignore, but it's a pain to add them). And adding unregistered files one-by-one is not too much trouble, it's a relatively rare operation (or you can always use 'M'). So I would leave that command unbound. Marking "registered" files, though, could be made more streamlined. Right now I have to navigate to files in all different statuses present in the current repo and press 'M' for each status. However! vc-dir-mark-all-files has a special behavior when it's called with C-u: it tries to mark all files in the current VC-Dir buffer. Which is pretty useless when we also have files in incompatible statuses because vc-next-action fails with that fileset. So what we could do, is have vc-dir-mark-all-files call vc-dir-mark-registered in that case instead. This way the former command becomes significantly more useful, and the latter one doesn't really need a separate key binding. And I'm sure 'C-u M' would become quite handy.