From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Omar Polo Newsgroups: gmane.emacs.bugs Subject: bug#50013: document vc method `find-ignore-file' Date: Wed, 11 Aug 2021 18:26:43 +0200 Message-ID: <8735rgosl8.fsf@omarpolo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29512"; mail-complaints-to="usenet@ciao.gmane.io" To: 50013@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 11 18:28:22 2021 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 1mDr5Z-0007Rm-HV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Aug 2021 18:28:21 +0200 Original-Received: from localhost ([::1]:46016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDr5Y-0006IA-Bl for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Aug 2021 12:28:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDr5I-0006GT-29 for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2021 12:28:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDr5G-0007En-PF for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2021 12:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDr5G-00068n-ML for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2021 12:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Omar Polo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Aug 2021 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162869922323508 (code B ref -1); Wed, 11 Aug 2021 16:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2021 16:27:03 +0000 Original-Received: from localhost ([127.0.0.1]:36408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDr4J-000675-K6 for submit@debbugs.gnu.org; Wed, 11 Aug 2021 12:27:03 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:59082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDr4H-00066W-IJ for submit@debbugs.gnu.org; Wed, 11 Aug 2021 12:27:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDr4H-0004TB-AE for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2021 12:27:01 -0400 Original-Received: from mail.omarpolo.com ([144.91.116.244]:62378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDr4E-0006Iw-QF for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2021 12:27:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=omarpolo.com; s=20200327; t=1628699210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=2w9v+ZWoYTAOiuwjyqafz4htiWcn12VoGSwTNeVfECk=; b=svOva9g7H3GP1HCO58QDRFzMOEwNS+Sua8JQxJoH3Z7p4r3pJ0ewMO/YNRR5F0oPTQiaM8 8Zy65zcQIk7YE8GIRKC6jmuOyzUJoleD/EFTk0GHOen213PagK3VwQuHoZp6GMpF919VMY j7tpIX19FiU4VT8QkCmpAafFMI8oKfw= Original-Received: from localhost (host-79-16-108-120.retail.telecomitalia.it [79.16.108.120]) by mail.omarpolo.com (OpenSMTPD) with ESMTPSA id ede967c4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 11 Aug 2021 18:26:47 +0200 (CEST) Original-Received: from venera (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 370056d1 for ; Wed, 11 Aug 2021 18:26:43 +0200 (CEST) Received-SPF: pass client-ip=144.91.116.244; envelope-from=op@omarpolo.com; helo=mail.omarpolo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:211614 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Hi, I noticed that the vc "method" `find-ignore-file' is used in vc-default-ignore and vc-default-ignore-completion-table but it's not documented. In GNU Emacs 28.0.50 (build 10, x86_64-unknown-openbsd6.9, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2021-07-12 built on venera Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: OpenBSD venera 6.9 GENERIC.MP#158 amd64 Configured using: 'configure --prefix=/home/op/opt/emacs --with-x-toolkit=lucid CC=cc' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-document-find-ignore-file.patch >From 734f95c33f3b618110a5c1376b46cc96336332d4 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Wed, 11 Aug 2021 16:25:20 +0000 Subject: [PATCH] document find-ignore-file --- lisp/vc/vc.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 9338b7191d..a97caa702a 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -486,11 +486,19 @@ ;; from ignored files. ;; When called from Lisp code, if DIRECTORY is non-nil, the ;; repository to use will be deduced by DIRECTORY. +;; The default behavior is to add or remove a line from the file +;; returned by the `find-ignore-file' function. ;; ;; - ignore-completion-table (directory) ;; ;; Return the completion table for files ignored by the current ;; version control system, e.g., the entries in `.gitignore' and +;; `.bzrignore'. The default behavior is to read the contents of +;; the file returned by the `find-ignore-file' function. +;; +;; - find-ignore-file +;; +;; Return the ignore file that controls FILE, e.g. `.gitignore' or ;; `.bzrignore'. ;; ;; - previous-revision (file rev) -- 2.32.0 --=-=-=--