From: Tomi Ollila Date: Wed, 4 Sep 2013 13:41:42 +0000 (+0300) Subject: [ALT PATCH] emacs: target one-notmuch.el[c] -- emacs client in one .el[c] file X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=053e2342ceb061f1922348477e8f5d424b628e28;p=notmuch-archives.git [ALT PATCH] emacs: target one-notmuch.el[c] -- emacs client in one .el[c] file --- diff --git a/87/f351fb4613620c0eb6312fac7e8ff1b91933a9 b/87/f351fb4613620c0eb6312fac7e8ff1b91933a9 new file mode 100644 index 000000000..96f3d6d08 --- /dev/null +++ b/87/f351fb4613620c0eb6312fac7e8ff1b91933a9 @@ -0,0 +1,103 @@ +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 28D47431E64 + for ; Wed, 4 Sep 2013 06:41:59 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +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 LNaly5TMZOiK for ; + Wed, 4 Sep 2013 06:41:53 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id E3784431FDD + for ; Wed, 4 Sep 2013 06:41:52 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id A966D100063; Wed, 4 Sep 2013 16:41:44 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [ALT PATCH] emacs: target one-notmuch.el[c] -- emacs client in one + .el[c] file +Date: Wed, 4 Sep 2013 16:41:42 +0300 +Message-Id: <1378302102-14383-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 1.8.0 +In-Reply-To: <1378150636-26822-1-git-send-email-tomi.ollila@iki.fi> +References: <1378150636-26822-1-git-send-email-tomi.ollila@iki.fi> +Cc: tomi.ollila@iki.fi +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, 04 Sep 2013 13:41:59 -0000 + +Added Makefile recipes to create notmuch emacs client in just one +.el[c] file. + +This is an experimental feature and not built by default. + +This is useful for example when one wants to build the latest +emacs client and then distribute the elisp file to many machines. + +This is also useful for (initial) testing: + + make emacs/one-notmuch.elc + emacs -q -l emacs/one-notmuch.elc -f notmuch + +can be used to quickly experiment with new development. +--- + +This is alternative to + +id:1378150636-26822-1-git-send-email-tomi.ollila@iki.fi + +notmuch-one* was changed to one-notmuch* + +Now the created files do not "pollute" notmuch-* filenamespace +and is easier to distinquish. + +See the referred email for more usage possibilities. + + emacs/Makefile.local | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/emacs/Makefile.local b/emacs/Makefile.local +index a910aff..7f3526d 100644 +--- a/emacs/Makefile.local ++++ b/emacs/Makefile.local +@@ -46,6 +46,20 @@ endif + install: install-emacs + endif + ++# Unsupported hack to provide notmuch emacs client in one *.elc file. ++# It probably works -- or then it fails mysteriously. YMMV. ++# Enter `make emacs/one-notmuch.elc' in top level directory to build it. ++ifeq ($(HAVE_EMACS),1) ++$(dir)/one-notmuch.el: $(emacs_sources) ++ rm -f $(emacs_bytecode) # XXX ++ make -n all WITH_EMACS=1 | sed -n '/printf.*EMACS/ s/.* //p' | \ ++ xargs grep -vh '(declare-function.*"notmuch' > '$@' || : ++ { echo ';; Local Variables:'; \ ++ echo ';; byte-compile-warnings: (not cl-functions)'; \ ++ echo ';; End:'; } >> '$@' ++endif ++CLEAN+=$(dir)/one-notmuch.el $(dir)/one-notmuch.elc ++ + .PHONY: install-emacs + install-emacs: + mkdir -p "$(DESTDIR)$(emacslispdir)" +-- +1.8.0 +