From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Wed, 19 Nov 2014 14:51:23 +0000 Message-ID: <878uj75jmc.fsf@violet.siamics.net> References: <20141102151524.0d9c665c@forcix> <20141117211039.37f03409@forcix> <85ppclgcec.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416408726 29778 80.91.229.3 (19 Nov 2014 14:52:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2014 14:52:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 19 15:51:57 2014 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 1Xr6bt-0003d5-Ep for ged-emacs-devel@m.gmane.org; Wed, 19 Nov 2014 15:51:57 +0100 Original-Received: from localhost ([::1]:58832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr6bt-000783-49 for ged-emacs-devel@m.gmane.org; Wed, 19 Nov 2014 09:51:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr6bh-00077y-4c for emacs-devel@gnu.org; Wed, 19 Nov 2014 09:51:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xr6bg-00082F-9K for emacs-devel@gnu.org; Wed, 19 Nov 2014 09:51:45 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:47589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr6bg-00080h-24 for emacs-devel@gnu.org; Wed, 19 Nov 2014 09:51:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=GN3KgnwShVJL1m/P4XHC++cUW2Zxb4RYL5tVtIbIEOU=; b=aLEcMDRI1sVEFCwvPLA7pa7yKFY5lH1IV1Qbeb/+uLRlM5Qm2joqrQCFM7gBH+CQE/bTxUunnd59766RB6ZuYj8mTiWuLKGF7WHf6gZ5Coc86wGvt7uN+0sBqssltRKn3RhZ43XIMgnaChQwfITrmnLImon+aLTmJWEpki0ayWc=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Xr6bT-0004o1-P3 for emacs-devel@gnu.org; Wed, 19 Nov 2014 14:51:32 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Xr6bM-0006RI-HG for emacs-devel@gnu.org; Wed, 19 Nov 2014 21:51:24 +0700 In-Reply-To: (Stefan Monnier's message of "Wed, 19 Nov 2014 09:27:58 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:d15:1b86::2 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:177755 Archived-At: >>>>> Stefan Monnier writes: >>> +(defvar find-definition-function nil >>> +(defvar find-definition-identifier-function nil >> These variables will be set by the major mode, so they should be >> buffer-local; use defvar-local. > Bad idea: if the major modes set those with `setq' rather than with > `setq-local', they'll end up setting the global value if the `setq' > happens to be run before loading find-definition.el (which is quite > possible since find-definition.el will typically be loaded via an > autoload rather than via a `require'). Can=E2=80=99t we ;;;###autoload the defvar-local forms themselves then? --=20 FSF associate member #7257 np. Benediction =E2=80=94 Jami Sieber =E2=80= =A6 B6A0 230E 334A