From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: xref overrides user xref-backend-functions Date: Wed, 2 Dec 2015 14:13:10 +0200 Message-ID: <565EE056.6060909@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1449058418 10553 80.91.229.3 (2 Dec 2015 12:13:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Dec 2015 12:13:38 +0000 (UTC) Cc: emacs-devel To: Anders Lindgren , Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 02 13:13:33 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a46Hr-0007nx-7Y for ged-emacs-devel@m.gmane.org; Wed, 02 Dec 2015 13:13:31 +0100 Original-Received: from localhost ([::1]:57693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a46Hq-0007pY-L2 for ged-emacs-devel@m.gmane.org; Wed, 02 Dec 2015 07:13:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a46He-0007pS-TT for emacs-devel@gnu.org; Wed, 02 Dec 2015 07:13:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a46Ha-0005t2-Sp for emacs-devel@gnu.org; Wed, 02 Dec 2015 07:13:18 -0500 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:33642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a46Ha-0005rx-MR for emacs-devel@gnu.org; Wed, 02 Dec 2015 07:13:14 -0500 Original-Received: by wmec201 with SMTP id c201so250135703wme.0 for ; Wed, 02 Dec 2015 04:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=vVvBfojQEzRjilLkrzocKDXGo/0vjabQ4TidcRWJnFQ=; b=aw9JdP2P+1RCw9ByG5d//IDm/IV+aNJY2o9GULncgeEYt/BR+smE7PYfXElhjl6Ixp PsEHTxf/czdjgJX22KVHapUXjvMHU9H97jhPf73FbmgN1xlPCCr/OmydlSQTJlND+6dR gZ0zoHNwLveO+3tU9NcFZc5JZHmf37m8SvXTLBcmwB0p8w/mQTTtX1bigmoFjXXGrGq2 Z7mfQz6JHtt5SQlMIae5CkcsJrCHAl+neMfQ3rLztfmEhtyNCTbBWa/TXBP5Q1v4G6NC tGK8QLDyJQOgoDcA2mg2HNp2ehvy1N6T0I/U7C+ZmA/IjQCsALEJkdloawWDLjWcQLeU V2Qg== X-Received: by 10.194.88.200 with SMTP id bi8mr4887718wjb.178.1449058393720; Wed, 02 Dec 2015 04:13:13 -0800 (PST) Original-Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id u134sm30679875wmd.0.2015.12.02.04.13.11 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Dec 2015 04:13:12 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195737 Archived-At: Hi Anders, On 12/02/2015 08:08 AM, Anders Lindgren wrote: > Have you considered using the "###autoload" construct? This way, the > default value is available to all users when Emacs start and they don't > have to remember to require xref before changing the variable. At the > same time, if a user sets the variable, xref will not modify it when loaded. That should fit the bill too, indeed. I've just read the advice against autoloading variables too many times to consider it. But searching through the codebase now, we do have quite a few such variables.