Re: [Daniel Burrows <[email protected]>] Bug#292886: Phantom spaces appearing in TeX documents; related to fill?

Ralf Angeli <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* David Kastrup (2005-02-01) writes:

> I think it would be both more flexible and robust to just run the bug
> reporting command itself (answering return to any possible prompt),
> then dump the resulting mail buffer up to a possible signature.  Here
> would be how to do that:
>
> yes|emacs -batch --eval '(progn(TeX-submit-bug-report)(princ(buffer-substring (point)(or(search-forward "\n-- \n" nil t)(point-max)))))' 2>/dev/null

This produces nothing here.  Omitting the redirection of stderr I get
"Symbol's function definition is void: TeX-submit-bug-report".  That's
a bit surprising because `TeX-submit-bug-report' is being autoloaded
in tex-site.el and I have `(require 'tex-site)' in my .emacs file.
The command will only give me the wanted output if I add a `(require
'tex-site)' before the call to `TeX-submit-bug-report' (and adapt the
quoting).

Using `buffer-substring' from point downwards is, by the way, a nice
idea as it allows for stripping the description at the start of the
bug report without having to deal with the internals of reporter.el.
I wonder why I didn't think of this. (c;

-- 
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.