From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Trouble using (current-filename) Date: Sun, 19 Feb 2012 22:23:29 +0100 Message-ID: <87zkcezfe6.fsf@pobox.com> References: <87d39h451b.fsf@netris.org> <87zkcjloqu.fsf@pobox.com> <871upu5unw.fsf@gnu.org> <878vk2pgaf.fsf@pobox.com> <87wr7l13eh.fsf@gnu.org> <87y5rz26zz.fsf@pobox.com> <87fwe6ykw2.fsf@gnu.org> <87liny1rjo.fsf@pobox.com> <87linywn7z.fsf@gnu.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: dough.gmane.org 1329686620 5262 80.91.229.3 (19 Feb 2012 21:23:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2012 21:23:40 +0000 (UTC) Cc: Neil Jerram , guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Feb 19 22:23:39 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RzEEL-0004p3-Cy for guile-devel@m.gmane.org; Sun, 19 Feb 2012 22:23:37 +0100 Original-Received: from localhost ([::1]:48068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzEEK-0002bW-SK for guile-devel@m.gmane.org; Sun, 19 Feb 2012 16:23:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzEEI-0002bP-Mu for guile-devel@gnu.org; Sun, 19 Feb 2012 16:23:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzEEH-0003sH-81 for guile-devel@gnu.org; Sun, 19 Feb 2012 16:23:34 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:51055 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzEEH-0003s9-49; Sun, 19 Feb 2012 16:23:33 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id AD0CC904A; Sun, 19 Feb 2012 16:23:32 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=fYXdS28SuYEc v77Pw09BjNVAN9o=; b=F8204NICDvgcVQUpSc70h7feSUtON80yYphSWNs8Oo7p hoT36zbhvc9xMo4I7JmmDTiLUcGoMqvNXJ/ThiF1wVOKejtRcJxlCZ2JOWDM4xyj LwkOBDT9ROdBSaTTseaNsXNoXHnRAccgWuVvLPx8nk6GXTNFFTfe9O4kz1t+pBI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=anNiXs 9D4mB8guHduvZmocxGT/9ai3BoUSfWe9jkKuA1BhdRjjB009M/os+y+fySJCAMTF Ciw9nLi/pwqyWQa22wY5UmEu5iDEUhvPWXbNy1fZoqkSjLdvPJK33wBeG3Uk9ZUl QDxlQEdhLMVUNH2Jsn8TEHe0QsgDGRWx5eK4w= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id A62BC9049; Sun, 19 Feb 2012 16:23:32 -0500 (EST) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 177F49048; Sun, 19 Feb 2012 16:23:31 -0500 (EST) In-Reply-To: <87linywn7z.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sun, 19 Feb 2012 22:02:40 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: F95BB82E-5B3F-11E1-9BC6-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:13904 Archived-At: On Sun 19 Feb 2012 22:02, ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> See Neil's use case here: >> >> http://thread.gmane.org/gmane.lisp.guile.devel/13440/focus=3D13621 >> >> Can we do something that makes sense for both cases? > > Well, (add-to-load-path (dirname (canonicalize-path (current-filename))))= ? > > Yes it=E2=80=99s verbose, but it=E2=80=99s predictable and clearly specif= ied. It's terribly verbose, IMO. If we can do something better for those users, we should. What did you think of my other suggestion about searching for the file in the load path, and only canonicalizing if it was not found in the load path? (If it is found in the load path, then it would be returned in its relative form.) Andy --=20 http://wingolog.org/