From: "Göktuğ Kayaalp" <self@gkayaalp.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 28570@debbugs.gnu.org
Subject: bug#28570: 27.0.50; [PATCH] Disable unhelpful default Extra: header in vc-dir
Date: Sun, 08 Oct 2017 11:03:20 +0300 [thread overview]
Message-ID: <ygmr2uem5h3.fsf@gkayaalp.com> (raw)
In-Reply-To: <96981f7d-f3ca-b7bb-89aa-10c211249603@yandex.ru> (Dmitry Gutov's message of "Mon, 25 Sep 2017 03:24:15 +0300")
[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]
On 2017-09-25 03:24 +03, Dmitry Gutov <dgutov@yandex.ru> wrote:
> On 9/23/17 6:39 PM, Göktuğ Kayaalp wrote:
>>
>> The function ‘vc-default-dir-extra-headers’ is implemented as a stub
>> function that prints in the vc-dir buffer a rather annoying and
>> unhelpful message advicing that the implementer of a VC backend should
>> create some backend specific headers and that doing this is easy.
>> vc-rcs doesn't implement any (and I doubt it needs), and thus whenever I
>> use vc-dir on an RCS repository, this message is shown. Attached is a
>> patch that disables this behaviour by making the said function return
>> nil instead (the function as it is includes a comment that says to do so
>> before the ‘release’).
>
> Instead of changing the default, how about we create a RCS-specific
> implementation that does nothing? Because it doesn't need to.
>
Hi, please find attached the patch I promised some time ago. Sorry for
the latency.
--
İ. Göktuğ Kayaalp <http://www.gkayaalp.com/>
024C 30DD 597D 142B 49AC
40EB 465C D949 B101 2427
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: The patch --]
[-- Type: text/x-patch, Size: 433 bytes --]
diff --git a/lisp/vc/vc-rcs.el b/lisp/vc/vc-rcs.el
index 9dffc144c6..0a10449763 100644
--- a/lisp/vc/vc-rcs.el
+++ b/lisp/vc/vc-rcs.el
@@ -177,6 +177,8 @@ vc-rcs-dir-status-files
(push (list frel state) result))))
(funcall update-function result)))
+(defun vc-rcs-dir-extra-headers (&rest ignore))
+
(defun vc-rcs-working-revision (file)
"RCS-specific version of `vc-working-revision'."
(or (and vc-consult-headers
next prev parent reply other threads:[~2017-10-08 8:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-23 15:39 bug#28570: 27.0.50; [PATCH] Disable unhelpful default Extra: header in vc-dir Göktuğ Kayaalp
2017-09-25 0:24 ` Dmitry Gutov
2017-09-27 21:50 ` Göktuğ Kayaalp
2017-10-08 8:03 ` Göktuğ Kayaalp [this message]
2017-10-09 13:18 ` Dmitry Gutov
2017-10-09 22:43 ` bug#28570: [PATCH] Implement ‘vc-default-dir-extra-headers’ for vc-rcs İ. Göktuğ Kayaalp
2017-10-16 15:51 ` bug#28570: Added patch, pinging Göktuğ Kayaalp
2017-10-17 0:49 ` Noam Postavsky
2017-10-17 10:42 ` Dmitry Gutov
2017-10-17 10:40 ` Dmitry Gutov
2017-10-17 18:03 ` Göktuğ Kayaalp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ygmr2uem5h3.fsf@gkayaalp.com \
--to=self@gkayaalp.com \
--cc=28570@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.