From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: master 8761d30: Avoid failing if vc backend doesn't implement ignore-completion-table Date: Wed, 1 Sep 2021 01:16:20 +0300 Message-ID: <1896454b-7a71-958c-a39a-d5e04833a7c5@yandex.ru> References: <20210831213706.27697.90002@vcs0.savannah.gnu.org> <20210831213707.51319209C6@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8966"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: Philip Kaludercic To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 01 00:18:26 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mLC5J-0002EN-2J for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 00:18:25 +0200 Original-Received: from localhost ([::1]:58942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLC5H-0005Ez-PW for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Aug 2021 18:18:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLC3c-0004VH-IT for emacs-devel@gnu.org; Tue, 31 Aug 2021 18:16:40 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:34304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLC3Z-0003zj-89 for emacs-devel@gnu.org; Tue, 31 Aug 2021 18:16:40 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id v20-20020a1cf714000000b002e71f4d2026so2640411wmh.1 for ; Tue, 31 Aug 2021 15:16:23 -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=H9pu8PRfK/e4wj/pljL6U0fgcZmGFrXCZwkl2PzyTXU=; b=pN1cdbGNEoLV9QwJhkFLncCOhRcnsbWiB/K5GNu4k9wsiwOxGIYKyAAWKloCnby64Z X+eGHM/RLcPsi1JfLCipExdmxbSGEKUpwMnBvPeSembxk8ppuWkQwQdSqf/qauzqruB9 qmzWoV5rqSkULm6uDRs0goNZaz/Pyadb/8sF/k38y0kn6K0L2QIjTmjqBe4/qEKLVNTy XrauDp9xOGomDJOatrYQmihBpNow9Z9fVvJBIn/Z6BzSfx/tmNGwEO5NkDDndl6HzrOB 4lNgd3SkEQMzP0kH+A2IEUaLbz5FNTPi3nL4PLaPJY83K7l04XZLE94Ne4b1cZxeEDds JN/Q== 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=H9pu8PRfK/e4wj/pljL6U0fgcZmGFrXCZwkl2PzyTXU=; b=kWWO/kY6hsDsOBBGXlPjCz573CqvNOCRkYRGG70TSqkpdFnXjgtHgEyar8dC6AntZz P8kCx6Q/E/t2l2ZyiX0m0eV5CFaF2vBl5Cz9aC1CaZVRc33ahMfSARh08URk4KegI0ds NKVu8Ta22ArFnv6kgOt4h4S7ESOeEGGd1JOZ1aIMz4wDLOLRQQa+PV3GV9Tu6Xdzrr8g M6FEDOafu1c3oMvrywx442lkPByFXtmuRBxh8Y/zFCa1bMxwXwdDyFva9Kfao/PZ9ljq eJZfLLexBU8oKumTLm2/QwdMpS1KwKkYyZWLJQd2t5k5rlzxfI3aUjmIiNOli4lBoyT2 vQjg== X-Gm-Message-State: AOAM532Lfqu6EQUNUcxYzA9WBz7TWkE6v7zqormbobFvRlDKtrTa4rP1 hjUelfKF/Naaz3DElY2w34BV5paSNCM= X-Google-Smtp-Source: ABdhPJwI/yecgkL2jJsxui9/9Eul4zS1M/z97+dLCYoQfFA/MMMVv54hdXqxqDrT2VlWeXt7oeincw== X-Received: by 2002:a05:600c:3554:: with SMTP id i20mr6422567wmq.164.1630448182105; Tue, 31 Aug 2021 15:16:22 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id a5sm3509898wmm.44.2021.08.31.15.16.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Aug 2021 15:16:21 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=raaahh@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.932, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:273626 Archived-At: On 01.09.2021 00:51, Stefan Monnier wrote: >> - (vc-call-backend backend 'ignore-completion-table root)))) >> + (condition-case nil >> + (vc-call-backend backend 'ignore-completion-table root) >> + (vc-not-supported () nil))))) > The usual way to do that is to > > (defun vc-default-ignore-completion-table (...) nil) Yep. That's a really good idea actually.