From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Suggestion for C-h f, describe-function Date: Mon, 03 Jul 2006 12:19:48 +0200 Message-ID: <85ejx3ourf.fsf@lola.goethe.zz> References: <85slllbpkb.fsf@lola.goethe.zz> <85fyhlbccv.fsf@lola.goethe.zz> <85fyhjr66c.fsf@lola.goethe.zz> <85mzbroxqg.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151922051 10883 80.91.229.2 (3 Jul 2006 10:20:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Jul 2006 10:20:51 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 03 12:20:47 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FxLXq-00082F-Ru for ged-emacs-devel@m.gmane.org; Mon, 03 Jul 2006 12:20:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxLXq-00042S-77 for ged-emacs-devel@m.gmane.org; Mon, 03 Jul 2006 06:20:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FxLXf-00042K-BK for emacs-devel@gnu.org; Mon, 03 Jul 2006 06:20:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FxLXe-000427-Tw for emacs-devel@gnu.org; Mon, 03 Jul 2006 06:20:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxLXe-000424-QD for emacs-devel@gnu.org; Mon, 03 Jul 2006 06:20:34 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FxLl5-0001yg-CI for emacs-devel@gnu.org; Mon, 03 Jul 2006 06:34:27 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FxLXX-0004V8-0b; Mon, 03 Jul 2006 06:20:27 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 4912B1C4D3B9; Mon, 3 Jul 2006 12:19:48 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Mon, 03 Jul 2006 11:49:12 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56411 Archived-At: storm@cua.dk (Kim F. Storm) writes: > David Kastrup writes: > >>> So you cannot put the AUCTeX source directory into load-path. Why? >> >> Because it is the _source_ directory. > > So what about find-function-source-path ? If this variable is nil then `find-function' searches `load-path' by default. Would be usable except that setting it up stops the tracking of further load-path changes, and it requires converting _all_ corresponding directories in the current load-path to their respective source directory. This sort of conversion would then more or less need to be done by defadvice to find-function, using a list of rules like I described. But if I have to use defadvice on find-function anyway, one could almost let-bind load-path around the call (the only advantage of using find-function-source-path is that any autocalled function triggered during find-function will not go awry). -- David Kastrup, Kriemhildstr. 15, 44793 Bochum