Post by Frank KüsterPost by David Kastrupyes|emacs -batch --eval '(progn(TeX-submit-bug-report)(princ(buffer-substring (point)(or(search-forward "\n-- \n" nil t)(point-max)))))' 2>/dev/null
Fine.
Post by David KastrupThis also appears to work for preview-report-bug.
$ yes|emacs -batch --eval '(progn(preview-report-bug)(princ(buffer-substring (point)(or(search-forward "\n-- \n" nil t)(point-max)))))'Loading 00debian-vars...
Loading 20apel (source)...
Loading 20gnus-init (source)...
Loading 35elib-startup (source)...
Loading 42hyperlatex...
Loading 49url (source)...
Loading 50auctex (source)...
Loading 50bbdb (source)...
Loading 50css-mode (source)...
Loading 50dpkg-dev-el (source)...
Loading 50emacs-goodies-el (source)...
Loading 50erc (source)...
Loading 50gettext (source)...
Loading 50gnus-bonus-el (source)...
Loading 50gri (source)...
Loading 50gri-html-doc (source)...
Loading 50html-helper-mode (source)...
Loading 50maxima (source)...
Loading 50pcl-cvs-startup (source)...
Loading 50php-elisp (source)...
Loading 50preview-latex (source)...
Loading 50psgml-init (source)...
Loading 50tramp (source)...
Loading 50w3 (source)...
Loading 50w3m-el (source)...
Loading 50yorick-auto (source)...
Loading 51debian-el (source)...
Loading 51preview-latex (source)...
Loading 92bio-mode (source)...
Symbol's function definition is void: preview-report-bug
$
If I start emacs on the command line, M-x preview-report-bug works. Is
this a Debian bug?
Probably. The preview-latex initialization file (and notice that you
are loading _two_ different preview-latex initialization files in the
above, quite suspicious) is supposed to define an autoload for
preview-report-bug. According to the ChangeLogs, this is supposed to
happen starting with version 0.7.6 (when the appropriate autoload
cookie has been added to Debian).
So it would appear that the preview-latex.el file which is supposed to
be generated new on each distribution, has been generated once for
Debian in some older version, and never again, but rather checked in
in the original form. Or the Debian initialization file actually is
from a time where we did not even generate autoloads automatically.
Maybe this was done to avoid enabling preview-latex without further
questions (but one could still manually disable it with
(remove-hook 'LaTeX-mode-hook #'LaTeX-preview-setup)
) if one really did not want to use the package.
The file looks somewhat like the following currently for a CVS Emacs:
;;; preview-latex.el --- automatically extracted autoloads
;;
;;; Code:
;;;### (autoloads (preview-report-bug LaTeX-preview-setup) "preview"
;;;;;; "preview.el" (16886 65165))
;;; Generated autoloads from preview.el
(autoload (quote LaTeX-preview-setup) "preview" "\
Hook function for embedding the preview package into AUCTeX.
This is called by `LaTeX-mode-hook' and changes AUCTeX variables
to add the preview functionality.
\(fn)" nil nil)
(add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup)
(autoload (quote preview-report-bug) "preview" "\
Report a bug in the preview-latex package.
\(fn)" t nil)
;;;***
;; Local Variables:
;; version-control: never
;; no-byte-compile: t
;; no-update-autoloads: t
;; End:
;;; preview-latex.el ends here
(add-to-list (quote load-path) "/usr/local/emacs-21/share/emacs/site-lisp/preview")
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum