all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jidanni@jidanni.org
To: help-gnu-emacs@gnu.org
Subject: Re: how to reference the current *.el file in elisp
Date: Thu, 02 Jul 2009 20:48:20 +0800	[thread overview]
Message-ID: <87iqibgsiz.fsf@jidanni.org> (raw)

># compile-command: (concat "blarfowitz --nizbotize " buffer-file-name)
> without being asked about risky variables, or hard wiring buffer-file-name?
<The warning isn't about buffer-file-name, it's about compile-command.
<It warns if you try to set it to something other than a string.  In your
<case, you're trying to set it to a list.
All I know is: concat is a built-in function in `C source code'.
  Concatenate all the arguments and make the result a string.
<Values in the local variables stanza aren't evaluated, they're treated
<as literals.  So there's no referring possible.
Is too. buffer-file-name does get evaluated. But it causes a y-or-n-p.
<This is why hooks are usually more appropriate for complex things like
<this.  If you really do need a special compile-command just for one
<specific file, you'll have to hard-code the file's name into it, e.g.
<# compile-command: blarfowitz --nizbotize myscript.sh
No, I want to make a template, e.g.,
# Local Variables:
# compile-command: "php --syntax-check LocalSettings.php"
# End:
for some, but not all (hence hook no good) php files, without having to
hardwire the filename.




             reply	other threads:[~2009-07-02 12:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-02 12:48 jidanni [this message]
     [not found] <mailman.1712.1246572015.2239.help-gnu-emacs@gnu.org>
2009-07-08  9:30 ` how to reference the current *.el file in elisp Anselm Helbig
     [not found] <mailman.1223.1245903674.2239.help-gnu-emacs@gnu.org>
2009-06-25  5:49 ` Xah Lee
2009-06-25  7:23 ` Barry Margolin
2009-06-25 11:49   ` Harry Putnam
2009-06-25 12:30     ` Lennart Borgman
2009-06-25 23:43       ` Harry Putnam
     [not found]   ` <mailman.1237.1245930608.2239.help-gnu-emacs@gnu.org>
2009-06-25 12:18     ` Pascal J. Bourguignon
2009-06-26  2:24     ` Barry Margolin
2009-06-28  0:44       ` jidanni
2009-06-29  3:10         ` Barry Margolin
2009-06-30  1:29           ` jidanni
2009-06-30  3:30             ` Barry Margolin
  -- strict thread matches above, loose matches on Subject: below --
2009-06-25  4:20 Harry Putnam

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iqibgsiz.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.