help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: dir-locals.el process-environment


From: Eli Zaretskii
Subject: Re: dir-locals.el process-environment
Date: Wed, 28 Feb 2018 18:37:20 +0200

> Date: Wed, 28 Feb 2018 05:47:57 +0000
> From: edgar@openmail.cc
> Cc: eliz@gnu.org
> 
> >> However, if I printf "$CC" I get nothing. How can I achieve this?
> > 
> > What exactly do you do to 'printf "$CC"'?
> 
> Thanks for your reply, Eli! I'm sorry that I was not clear. This is how
> I do it:
> 
> ┌──── emacs-lisp
> │ (
> │  ("src"                   ;https://stackoverflow.com/a/19521152
> │   . ((c++-mode            
> ;https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html
> │       .
> │       ((eval              ;https://emacs.stackexchange.com/a/35965
> │         . (progn
> │             (make-local-variable 'process-environment)
> │             (setq process-environment
> │                   (copy-sequence process-environment))
> │             (setenv "CC" "mpicc")))
> │        (compile-command . "printf x$CC"))))))
> └────

So you are saying that in some buffer that visits a file from that
directory, you verified that compile-command's value is "printf x$CC",
but running "M-x compile RET" from that same buffer produces an empty
result?



reply via email to

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