all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rupert Swarbrick <rswarbrick@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Let compilation start in one directory below current one
Date: Wed, 22 Oct 2008 21:16:52 +0100	[thread overview]
Message-ID: <gdo1n6$ahk$1@news.albasani.net> (raw)
In-Reply-To: 8e2e1f23-1bd1-4e4b-b063-4078aa0f079f@v72g2000hsv.googlegroups.com


[-- Attachment #1.1: Type: text/plain, Size: 820 bytes --]

"stephan.zimmer" <stephan.zimmer@googlemail.com> writes:

> I would like to start my compilation in one directory deeper than the
> current. Unfortunately, a local variable specification as
>
> % -*- ... compile-directory: (concat default-directory ".."); ... -*-
>
> is not working. Does anyone has an idea (except adding "cd.." to the
> compile command)?
>
> Stephan

You might be interested in the following code. I wrote it some time ago,
so try not to cringe too much at the horrendous style, but I've been
using it since.

Basically, it looks upwards from where you start to try and find a
configure.ac, which signals the top of an autoconf/automake project. The
selection of filenames to stop at is in the top function. Do what you
will with the code - it's in the public domain as far as I'm concerned.

Rupert


[-- Attachment #1.2: compilepkg.el --]
[-- Type: application/emacs-lisp, Size: 3419 bytes --]

[-- Attachment #2: Type: application/pgp-signature, Size: 314 bytes --]

  reply	other threads:[~2008-10-22 20:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-22 11:51 Let compilation start in one directory below current one stephan.zimmer
2008-10-22 20:16 ` Rupert Swarbrick [this message]
2008-10-23  8:11 ` Kevin Rodgers
     [not found] ` <mailman.1883.1224749504.25473.help-gnu-emacs@gnu.org>
2008-10-23  8:44   ` Andreas Politz
2008-10-23 14:23   ` stephan.zimmer
2008-10-24  2:42     ` Kevin Rodgers
2008-10-23 15:58 ` Dan Espen

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='gdo1n6$ahk$1@news.albasani.net' \
    --to=rswarbrick@gmail.com \
    --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.