[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble using (current-filename)
From: |
Ludovic Courtès |
Subject: |
Re: Trouble using (current-filename) |
Date: |
Thu, 16 Feb 2012 22:34:59 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) |
Andy Wingo <address@hidden> skribis:
> (define-syntax current-filename
> (lambda (x)
> "A macro that expands to the current filename: the filename that
> the (current-filename) form appears in. Expands to #f if this
> information is unavailable."
> (false-if-exception
> (pk 'canonicalized (canonicalize-path (pk 'filename (assq-ref
> (syntax-source x) 'filename)))))))
What about not canonicalizing the file name?
After all, C’s __FILE__ isn’t canonicalized in any way, and
canonicalization is sometimes undesirable (you don’t necessarily want to
dump the absolute path of a temporary source directory in binaries.)
Thanks,
Ludo’.
- Trouble using (current-filename), Mark H Weaver, 2012/02/14
- Re: Trouble using (current-filename), Andy Wingo, 2012/02/15
- Re: Trouble using (current-filename),
Ludovic Courtès <=
- Re: Trouble using (current-filename), Andy Wingo, 2012/02/16
- Re: Trouble using (current-filename), Ludovic Courtès, 2012/02/17
- Re: Trouble using (current-filename), Andy Wingo, 2012/02/18
- Re: Trouble using (current-filename), Ludovic Courtès, 2012/02/19
- Re: Trouble using (current-filename), Andy Wingo, 2012/02/19
- Re: Trouble using (current-filename), Ludovic Courtès, 2012/02/19
- Re: Trouble using (current-filename), Andy Wingo, 2012/02/19
- Re: Trouble using (current-filename), Noah Lavine, 2012/02/19
- Re: Trouble using (current-filename), Ludovic Courtès, 2012/02/20
- Re: Trouble using (current-filename), Neil Jerram, 2012/02/21