From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 28910@debbugs.gnu.org
Subject: bug#28910: 27.0.50; Equivalent to __FILE__
Date: Fri, 20 Oct 2017 13:39:52 -0400 [thread overview]
Message-ID: <jwv60b9n2j8.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <b5229e5c-2e0d-4d8b-086c-02adcb5c254c@yandex.ru> (Dmitry Gutov's message of "Fri, 20 Oct 2017 15:47:27 +0300")
>> Currently, some packages use a mix of load-file-name and
>> byte-compile-current-file to get that information, but it's hackish.
> FWIW, I've used (or load-file-name (buffer-file-name)) in a couple of
> packages, and that's worked well for my purposes.
Obviously, it won't work if you need it during macro expansion.
Stefan
next prev parent reply other threads:[~2017-10-20 17:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-20 12:40 bug#28910: 27.0.50; Equivalent to __FILE__ Stefan Monnier
2017-10-20 12:47 ` Dmitry Gutov
2017-10-20 17:39 ` Stefan Monnier [this message]
2017-10-29 15:42 ` Philipp Stephani
2017-11-02 17:53 ` Phillip Lord
2021-05-10 16:59 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv60b9n2j8.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=28910@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).