ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Eugene Vlasov <eugene@ikz.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] emacs-mode-*
Date: Sun, 03 Aug 2008 15:10:49 +0600
Message-ID: <m27iaycvl2.fsf@eugene-home.ikz.ru> (raw)
In-Reply-To: <200808030402.48790.ledest@gmail.com> (Led's message of "Sun, 3 Aug 2008 04:02:48 +0300")

[-- Attachment #1: Type: text/plain, Size: 1708 bytes --]

On Sun, 3 Aug 2008 04:02:48 +0300 Led wrote:

> Есть тарболл, в нём некий foo.el - emacs mode для синтаксиса foo.
> Я так понял, что неплохо бы в пакет foo добавить субпакеты emasc-mode-foo и 
> emasc-mode-foo-el.

Да, так обычно делается, .el файл не нужен для работы расширения если
есть компилированный .elc

> Собственно вопрос: как получить foo.elc для субпакета emasc-mode-foo?

Если этого не делают сборочные скрипты (или их нет), можно сделать
самостоятельно, например при помощи вызовов вроде 
emacs --batch --eval '(byte-recompile-directory каталог)'

В пакете emacs-devel (в следующей сборке он, вероятно, будет
переименован в rpm-build-emacs) есть макросы, которые упрощают эту
задачу, в простейшем случае можно просто скопировать .el файлы в
%buildroot%_emacslispdir и вызвать макрос %byte_recompile_lispdir.

Описаны эти макросы и некоторые alt-специфичные детали сборки расширений
в файле /usr/share/doc/emacs-devel-0.0.1/README.ALT-ru_RU.KOI8-R
в файле /etc/rpm/macros.d/emacs можно посмотреть, как это реализовано.


-- 
WBR, Eugene Vlasov        mailto:eugvv at altlinux.ru
                          JID: eugvv@jabber.ru

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

  parent reply	other threads:[~2008-08-03  9:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-03  1:02 Led
2008-08-03  8:59 ` Евгений Терешков
2008-08-03 23:14   ` Led
2008-08-04 11:27     ` Евгений Терешков
2008-08-03  9:10 ` Eugene Vlasov [this message]
2008-08-03 22:45   ` [devel] [JT] emacs-mode-* Евгений Терешков
2008-08-04  8:29     ` Eugene Vlasov
2008-08-04 11:33       ` Евгений Терешков
2008-08-03 23:09   ` [devel] emacs-mode-* Led

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=m27iaycvl2.fsf@eugene-home.ikz.ru \
    --to=eugene@ikz.ru \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git