hi

this patch fixes the problem

------------

explanation of the patch: I tried this commands:

$ EMACS_COMMAND='
(let ((start "Emacs")
      (stop "\n-- \n"))
  (TeX-submit-bug-report)
  (let ((a (search-forward start nil t))
        (b (search-forward stop nil t)))
    (princ (concat
            (buffer-substring
             (if a (- a (length start)) (point))
             (if b (- b (length stop)) (point-max)))))))'

$ emacs-snapshot  --no-site-file --no-init-file --batch    --eval "(require 
'tex-site)"             --eval "$EMACS_COMMAND"


this latter command asks for a      "Bug report subject:"
and waits for a reply

so my patch sets the stdin from /dev/null 

I tried also a patch such as

 echo FOOBAR |  ${FLAVOR} </dev/null 2>/dev/null >&3 --no-site-file 
--no-init-file --batch             --eval "(require 'tex-site)"             
--eval "$EMACS_COMMAND"

but it seems that the input is disregarded

a.

-- 
Andrea Mennucc
 "E' un mondo difficile. Che vita intensa!" (Tonino Carotone)
--- /usr/share/bug/auctex/script.orig   2006-09-25 08:22:21.000000000 +0200
+++ /usr/share/bug/auctex/script        2006-09-25 08:29:05.000000000 +0200
@@ -54,7 +54,7 @@
 Collecting package info for Emacs flavor '${FLAVOR}':
 ------------------------------------------------------------------------
 EOF
-       ${FLAVOR} 2>/dev/null >&3 --no-site-file --no-init-file --batch \
+       ${FLAVOR} </dev/null 2>/dev/null >&3 --no-site-file --no-init-file 
--batch \
            --eval "(require 'tex-site)" \
            --eval "$EMACS_COMMAND"
        cat >&3 <<EOF
@@ -62,14 +62,14 @@
 Collecting system info for Emacs flavor '${FLAVOR}':
 ------------------------------------------------------------------------
 EOF
-       ${FLAVOR} 2>/dev/null >&3 --no-init-file --batch \
+       ${FLAVOR} </dev/null 2>/dev/null >&3 --no-init-file --batch \
            --eval "$EMACS_COMMAND"
        cat >&3 <<EOF
 ------------------------------------------------------------------------
 Collecting user info for Emacs flavor '${FLAVOR}':
 ------------------------------------------------------------------------
 EOF
-       ${FLAVOR} 2>/dev/null >&3 --batch \
+       ${FLAVOR} </dev/null 2>/dev/null >&3 --batch \
            --eval "$EMACS_COMMAND"
        cat >&3 <<EOF
 ------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to