From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: encoding in *compilation-buffer* Date: Sun, 20 Feb 2011 15:14:41 +0100 Message-ID: <52A11AE4-4FD2-49BF-8B9F-73F60C551ED3@Web.DE> References: <30934972.post@talk.nabble.com> <30949803.post@talk.nabble.com> <48F34137-6605-48BA-916C-84F7F1DDA16A@Web.DE> <30966005.post@talk.nabble.com> <30968731.post@talk.nabble.com> <1552E091-CC6A-43BB-B19A-01C538FA1D40@Web.DE> <30970486.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298211347 18566 80.91.229.12 (20 Feb 2011 14:15:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 14:15:47 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: tlanglois Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 20 15:15:43 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrA4b-0003hm-P5 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2011 15:15:43 +0100 Original-Received: from localhost ([127.0.0.1]:53112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrA4Y-0005OZ-Fn for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2011 09:15:38 -0500 Original-Received: from [140.186.70.92] (port=45116 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrA3m-0005MI-BV for Help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 09:14:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrA3h-0004v6-I4 for Help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 09:14:46 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:45494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrA3h-0004ug-4K for Help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 09:14:45 -0500 Original-Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate02.web.de (Postfix) with ESMTP id 13E96198E03A7; Sun, 20 Feb 2011 15:14:43 +0100 (CET) Original-Received: from [91.35.226.222] (helo=[192.168.1.2]) by smtp02.web.de with asmtp (WEB.DE 4.110 #2) id 1PrA3e-0008KD-00; Sun, 20 Feb 2011 15:14:42 +0100 In-Reply-To: <30970486.post@talk.nabble.com> X-Mailer: Apple Mail (2.936) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/7GCSPVAWiV5RdH6Vokfw9x2+CFJ6raZNBb/rY zkLuvu0nPcsboHu0hK9krFUi4C9JH9IEd+iiPH+2gvPpPB3iCT 8HqbPLJ45kC/C7Q/7LTg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79259 Archived-At: Am 20.02.2011 um 13:58 schrieb tlanglois: > Well, once more I have to confess my ignorance... How can I do that ? > Is there a before-compilation-hook that I can customize ? It's much simpler! This variable exists in GNU Emacs: compile-command is a variable defined in `compile.el'. Its value is "time nice +11 make -k bootstrap" Original value was "make -k " =09 This variable is potentially risky when used as a file local =20= variable. This variable is safe as a file local variable if its value satisfies the predicate `(lambda (a) (and (stringp a) (or (not = =20 (boundp (quote compilation-read-command))) compilation-read-command)))'. =09 Documentation: Last shell command used to do a compilation; default for next =20= compilation. =09 Sometimes it is useful for files to supply local values for this = =20 variable. You might also use mode hooks to specify it in certain modes, = like =20 this: =09 (add-hook 'c-mode-hook (lambda () (unless (or (file-exists-p "makefile") (file-exists-p "Makefile")) (set (make-local-variable 'compile-command) (concat "make -k " (file-name-sans-extension = buffer-file-name)))))) =09 You can customize this variable. I have it already customised, as you can see. To reach it you can use =20= the Options menu with the sub-menu Customize Emacs or look up the =20 documentation of compile-command per C-h v compile-command RET and then click at the /customize/ hyper-link. -- Greetings Pete Only useless documentation transcends the first two laws. =96 Arnold's Third Law of Documentation