auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] auctex.spec: auctex.el/preview-latex.el vs. suse-start-*.


From: Reiner Steib
Subject: [AUCTeX-devel] auctex.spec: auctex.el/preview-latex.el vs. suse-start-*.el (was: Fixing auctex.spec)
Date: Wed, 28 Sep 2005 15:18:40 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

[ Although it seems I'm speaking to myself, this answers refers to
  question I received via private mail. ]

On Tue, Sep 27 2005, Reiner Steib wrote:

> Is it intended, that `auctex.el' is installed as
> `suse-start-auctex.el' (ditto for preview-latex)?

The disadvantage of this is that the docs (see "grep -nH -e auctex.el
doc/*.texi") refer to `auctex.el'.

Initially, suse-start-auctex.el (and site-start.d/auctex-init.el for
Fedora/RedHat) were created within the spec file:

,----[ auctex.spec rev. 1.30 / 2005/01/21 ]
| %if %{FOR_SUSE}
| %define distri       .suse
| %define commongroup  Productivity/Editors/Emacs
| %define xemacspkgdir %{_datadir}/xemacs/xemacs-packages
| %define startupfile  %{_datadir}/emacs/site-lisp/suse-start-%{name}.el
| %else
| %define distri       .fedora
| %define commongroup  Applications/Editors
| %define xemacspkgdir %{_datadir}/xemacs/site-packages
| %define startupfile  %{_datadir}/emacs/site-lisp/site-start.d/%{name}-init.el
| %endif
| 
| [...]
| 
| %pre emacs
| echo "; Autoactivation of AUCTeX" > %{startupfile}
| echo "; Created for %{name}-%{version}-%{release}.noarch.rpm" >> \
|   %{startupfile}
| echo "(require 'tex-site)" >> %{startupfile}
`----

The result in AUCTeX 11.55 was:

$ cat /usr/share/emacs/site-lisp/suse-start-auctex.el
; Autoactivation of AUCTeX
; Created for auctex-11.55-1.suse.noarch.rpm
(require 'tex-site)

In rev. 1.32, David changed this:

,----
| --- auctex.spec       31 Jan 2005 21:58:18 -0000      1.31
| +++ auctex.spec       3 May 2005 07:41:51 -0000       1.32
| @@ -4,18 +4,17 @@
|  %define distri       .suse
|  %define commongroup  Productivity/Editors/Emacs
|  %define xemacspkgdir %{_datadir}/xemacs/xemacs-packages
| -%define startupfile  %{_datadir}/emacs/site-lisp/suse-start-%{name}.el
| +%define extraconfig 
'--with-auctex-startfile=%{_datadir}/emacs/site-lisp/suse-start-auctex.el' 
'--with-preview-startfile=%{_datadir}/emacs/site-lisp/suse-start-preview-latex.el'
|  %else
|  %define distri       .fedora
|  %define commongroup  Applications/Editors
|  %define xemacspkgdir %{_datadir}/xemacs/site-packages
| -%define startupfile  %{_datadir}/emacs/site-lisp/site-start.d/%{name}-init.el
|  %endif
|  
|  [...]
|
|  %prep
|  %setup
| @@ -65,11 +63,10 @@
|  # The below will make the package build from a tar straight from CVS
|  # NOT RECOMMENDED, but useful for testing!
|  test -f ./configure || ./autogen.sh
| -# --with-texmf-dir overrides local docstrip configurations.
| -%configure "--with-emacs" '--with-texmf-dir=%{_datadir}/texmf'
| +%configure "--with-emacs" %{extraconfig} INSTALL_INFO=: TEXHASH=: 
--without-texmf-dir
|  make
|  pushd doc
| -make auctex.info tex-ref.pdf
| +make tex-ref.pdf
|  popd
|  
|  %install
| @@ -77,25 +74,16 @@
|  mkdir -p %{buildroot}{%{_datadir}/emacs/site-lisp,%{_infodir}}
|  %makeinstall install-contrib install-info
|  
| -# Remove dir file that has been created by the makeinfo calls because this
| -# file will not been included in the rpm distribution (make RPM 4.1+ happy)
| -rm -f '%{buildroot}%{_infodir}/dir'
| -
| -%pre emacs
| -echo "; Autoactivation of AUCTeX" > %{startupfile}
| -echo "; Created for %{name}-%{version}-%{release}.noarch.rpm" >> \
| -  %{startupfile}
| -echo "(require 'tex-site)" >> %{startupfile}
| -
|  %post emacs
|  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/auctex.info
| +/sbin/install-info --info-dir=%{_infodir} %{_infodir}/preview-latex.info
|  
| [...]
`----

Ralf asked [translated from German]:

| Doesn't SuSE's Emacs have a site-start.d directory where we can put
| auctex.el and preview-latex.el to  automatically activate AUCTeX?

No, SuSE (at least up to 9.3) has this convention:

,----[ /usr/share/emacs/site-lisp/site-start.el ]
| ;; Load some package startups
| ;; --------------------------
| (let ((dir (directory-files "/usr/share/emacs/site-lisp/" t 
"^suse-start-.*\\.el$")))
|      (while dir (load (car dir) nil t t) (setq dir (cdr dir))))
`----

In  SuSE 9.2:

,----[ pin 'suse-start-.*\.el'|sed -ne 
's|^.*/site-lisp/\(suse-start-.*\)$|\1|p' ]
| suse-start-anthy.el
| suse-start-python-mode.el
| suse-start-gforth.el
| suse-start-po-mode.el
| suse-start-tamago.el
| suse-start-apel.el
| suse-start-url.el
| suse-start-xslide.el
| suse-start-w3m-el.el
| suse-start-bbdb.el
| suse-start-psgml.el
| suse-start-edict.el
| suse-start-nxml-mode.el
| suse-start-Mule-UCS.el
| suse-start-w3.el
| suse-start-elib.el
| suse-start-python-mode.el
| suse-start-po-mode.el
| suse-start-anthy.el
| suse-start-gforth.el
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]