From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Hong Xu Newsgroups: gmane.emacs.bugs Subject: bug#37538: [PATCH] Add docstring for `tags-complete-tags-table-file'. Date: Sat, 12 Oct 2019 11:46:25 -0700 Message-ID: <87eezhiyym.fsf@topbug.net> References: <36bef08c-45b5-9cce-5374-d4de4260d39a@topbug.net> <838sq8j0vl.fsf@gnu.org> <7e0290a2-e80b-f566-9c3b-894aaf4e5d9d@topbug.net> <87o8yt9oql.fsf@gnus.org> <83y2xwzfz0.fsf@gnu.org> <860671c8-787c-512c-8df6-ea1d9dfc2f5b@topbug.net> <874l0j1a3j.fsf@gnus.org> <663aaf32-97c4-0723-1a30-a644938bd21f@topbug.net> <83a7aawdar.fsf@gnu.org> <831rvlt4yk.fsf@gnu.org> <6ade514f-53ee-fbbf-bf27-e8bbfb2e6281@topbug.net> <837e5anxm9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="199351"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3.50 (gnu/linux) Cc: larsi@gnus.org, 37538@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 12 20:47:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJMQ7-000pfG-8J for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Oct 2019 20:47:15 +0200 Original-Received: from localhost ([::1]:35440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJMQ6-0003vq-2X for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Oct 2019 14:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46467) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJMPw-0003v8-FA for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 14:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJMPu-0000WV-FB for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 14:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJMPu-0000WQ-CV for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 14:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iJMPu-0003BT-9K for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 14:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hong Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2019 18:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37538 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 37538-submit@debbugs.gnu.org id=B37538.157090599612208 (code B ref 37538); Sat, 12 Oct 2019 18:47:02 +0000 Original-Received: (at 37538) by debbugs.gnu.org; 12 Oct 2019 18:46:36 +0000 Original-Received: from localhost ([127.0.0.1]:34119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJMPU-0003Aq-BS for submit@debbugs.gnu.org; Sat, 12 Oct 2019 14:46:36 -0400 Original-Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJMPT-0003Ai-29 for 37538@debbugs.gnu.org; Sat, 12 Oct 2019 14:46:35 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1570905988; cv=none; d=zoho.com; s=zohoarc; b=LwA+TmLYqlXbVc3t1GexqRuHEAB5JwviAhxS3DBHldfghJ6gQ6Mv/jQbAKMqxX7LFuO6ITnKUR8KxPM+M/RrYBFmpUXHkmD3EbQZ5TNybuZqk4rA9mOZGpDmJ6bVYAK7S2DaX2K65M4I0fP6NtQn+QoPG3XRdQqfwe28YXbT5aE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570905988; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=xT/GeGDPYDdk6TlW5JMYawzYgh6uTeLCRQI8L/vP89o=; b=Wlfvc6YDRm0A8g+/r7unCcfBPIv1LBZEmRGV5vVoROFRJb6MNdbpCpxmRbAETtitGTdvLwZyJv5uL84aLxbyPMwFa6HMLWV4RW8Q/u5gC0yHI5SBadJumibNUGYeCOnmn2Fxz/Me68N/kOYgaD0a6AKm8zuZAxe/F2xb6x4l8mg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=topbug.net; spf=pass smtp.mailfrom=hong@topbug.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570905988; s=zoho; d=topbug.net; i=hong@topbug.net; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; l=713; bh=xT/GeGDPYDdk6TlW5JMYawzYgh6uTeLCRQI8L/vP89o=; b=AgMk641XTi9thz93T8x5TrXfW85jn/D8A1ABq7HZ7L6UTVgywxHGyCxFJBtnbFsy MOiB3aiaj8ZBA0dLRJC08gqheJ7AO1Ncco6OORORdZwDQI060cshJECfIBWBvKVl83l cJqjgdki+Y3tWA/BTsFCpvC5kgCxm2ytkV8gSY2w= Original-Received: from home (69-215-149-151.lightspeed.sntcca.sbcglobal.net [69.215.149.151]) by mx.zohomail.com with SMTPS id 1570905986106867.0717815140395; Sat, 12 Oct 2019 11:46:26 -0700 (PDT) In-Reply-To: <837e5anxm9.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 12 Oct 2019 12:04:14 +0300") X-ZohoMailClient: External 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169047 Archived-At: Eli Zaretskii writes: > How about the below: > > (defun tags-complete-tags-table-file (string predicate what) > "Complete STRING from file names in the current tags table. > PREDICATE, if non-nil is a function to filter possible matches: > if it returns nil, the match is ignored. If PREDICATE is nil, > every possible match is acceptable. > WHAT is a flag specifying the type of completion: t means `all-completions' > operation, any other value means `try-completions' operation. > > This function serves as COLLECTION argument to `completing-read', > see the Info node `(elisp) Programmed Completion' for more detailed > description of the arguments." Looks good to me. Thanks.