Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0AA0E4196F0 for ; Wed, 7 Apr 2010 10:12:15 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fFIAsLcyxwQr; Wed, 7 Apr 2010 10:12:14 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 29416431FC1; Wed, 7 Apr 2010 10:12:14 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id CC56A25400C; Wed, 7 Apr 2010 10:12:13 -0700 (PDT) From: Carl Worth To: David Edmondson , notmuch Subject: Re: finding the emacs lisp after install In-Reply-To: <87sk77wkte.fsf@ut.hh.sledj.net> References: <87sk77wkte.fsf@ut.hh.sledj.net> Date: Wed, 07 Apr 2010 10:12:13 -0700 Message-ID: <874ojn6vbm.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2010 17:12:15 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 07 Apr 2010 12:42:21 +0100, David Edmondson wrote: > After this change... > > > Install emacs lisp files into a notmuch sub-directory of site-lisp. > >=20=20=20=20=20 > > Now that we have multiple emacs-lisp source files, it's just more > > polite this way. >=20 > ...how is emacs supposed to find these files? .../site-lisp/notmuch is > not in my load-path by default (Debian GNU Emacs 23.1.1). Ah, good point. The Debian package goes through some magic (in /etc/emacs/site-start.d/50notmuch.el) to ensure that this directory is added to the load-path. Given that, I've just changed the default back to just install the files into ${prefix}/share/emacs/site-lisp and made the Debian packaging request ${prefix}/share/emacs/site-lisp/notmuch when it configures (see below). Thanks for the report, =2DCarl From=20a7a961c510a87dc8af2842decabcbc9ecb7c1139 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 7 Apr 2010 10:07:23 -0700 Subject: [PATCH] Makefile: Install emacs code to site-lisp, not site-lisp/n= otmuch And just make the Debian packaging request site-lisp/notmuch like it wants. Otherwise, the installed files won't appear on the load-path so won't be found by emacs. =2D-- configure | 6 +++--- debian/rules | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 21780a6..959c65a 100755 =2D-- a/configure +++ b/configure @@ -71,7 +71,7 @@ Fine tuning of some installation directories is available: --includedir=3DDIR Install header files to DIR [PREFIX/include] --mandir=3DDIR Install man pages to DIR [PREFIX/share/man] --sysconfdir=3DDIR Read-only single-machine data [PREFIX/etc] =2D --emacslispdir=3DDIR Elisp [PREFIX/share/emacs/site-lisp/notmuch] + --emacslispdir=3DDIR Emacs code [PREFIX/share/emacs/site-lisp] =20 Additional options are accepted for compatibility with other configure-script calling conventions, but don't do anything yet: @@ -219,9 +219,9 @@ fi =20 if [ -z "${EMACSLISPDIR}" ]; then if pkg-config --modversion emacs > /dev/null 2>&1; then =2D EMACSLISPDIR=3D$(pkg-config emacs --variable sitepkglispdir)/notmuch + EMACSLISPDIR=3D$(pkg-config emacs --variable sitepkglispdir) else =2D EMACSLISPDIR=3D'$(prefix)/share/emacs/site-lisp/notmuch' + EMACSLISPDIR=3D'$(prefix)/share/emacs/site-lisp' fi fi =20 diff --git a/debian/rules b/debian/rules index 1f6c4bb..0c20c94 100755 =2D-- a/debian/rules +++ b/debian/rules @@ -2,6 +2,9 @@ %: dh $@ =20 +override_dh_auto_configure: + dh_auto-configure --emacslispdir=3D/usr/share/emacs/site-lisp/notmuch + override_dh_installdocs: dh_installdocs install -m644 vim/README debian/notmuch/usr/share/doc/notmuch/README.vim =2D-=20 1.7.0 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLvLzt6JDdNq8qSWgRAukaAJ46LQZY+czGan+aUP04FjgYg1RMgwCgiPeK 9QMu4fwJJLh4l0ZNqHfMKb8= =0QMH -----END PGP SIGNATURE----- --=-=-=--