[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble using (current-filename)

From: Andy Wingo
Subject: Re: Trouble using (current-filename)
Date: Sun, 19 Feb 2012 22:23:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Sun 19 Feb 2012 22:02, address@hidden (Ludovic Courtès) writes:

>> See Neil's use case here:
>> Can we do something that makes sense for both cases?
> Well, (add-to-load-path (dirname (canonicalize-path (current-filename)))) ?
> Yes it’s verbose, but it’s predictable and clearly specified.

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.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]