From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#9961: Subject: 24.0.91; shell prompt doubled Date: Sat, 05 Nov 2011 16:46:58 +0100 Message-ID: <4EB55A72.4050905@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000004010209020905070704" X-Trace: dough.gmane.org 1320508052 5566 80.91.229.12 (5 Nov 2011 15:47:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2011 15:47:32 +0000 (UTC) To: 9961@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 05 16:47:28 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RMiSt-0002sI-BX for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Nov 2011 16:47:27 +0100 Original-Received: from localhost ([::1]:34322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMiSt-00031o-0H for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Nov 2011 11:47:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMiSp-00031X-6H for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 11:47:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMiSo-0003Gu-2G for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 11:47:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMiSo-0003Gq-0l for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 11:47:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RMiVO-0008UT-Iz for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 11:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Nov 2011 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9961 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132050819732622 (code B ref -1); Sat, 05 Nov 2011 15:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Nov 2011 15:49:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMiVJ-0008U6-51 for submit@debbugs.gnu.org; Sat, 05 Nov 2011 11:49:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMiVG-0008Ty-0i for submit@debbugs.gnu.org; Sat, 05 Nov 2011 11:49:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMiSe-0003G3-0v for submit@debbugs.gnu.org; Sat, 05 Nov 2011 11:47:12 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:43798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMiSd-0003Fz-Vd for submit@debbugs.gnu.org; Sat, 05 Nov 2011 11:47:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMiSc-00031Q-Ox for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 11:47:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMiSb-0003Fi-Bm for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 11:47:10 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.10]:50010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMiSb-0003FM-0S for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 11:47:09 -0400 Original-Received: from [192.168.178.27] (brln-4d0c25be.pool.mediaWays.net [77.12.37.190]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MSXwa-1RUNwL2kyq-00S3P0; Sat, 05 Nov 2011 16:47:05 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.23) Gecko/20110920 SUSE/3.1.15 Thunderbird/3.1.15 X-Provags-ID: V02:K0:IGToEjRUEAKM/3EQf+uICGuwh8XHbBt8rUYj2ren5NB /YAmHPgjXaYrvuUcxhBommm9EkFwj4Qset9RavNPy6cqIkIL3a FxMYCC2vnICDywNlyr5/ug1/MHGj5WgAAf5uJAhSEeZKOgD6rM uyQJURr3iAeq+/kb2XtCcUwyxXBxc3Qq1DiXOTSxnJhFTAPBM2 6xjtLhbIW01IRWvne/8pivp+qBSrNU6L4sE79YcUBztr0WA7Qr ytZ/zX5FFwnCnHGnWjW8ZtVRtRJGbBG9y++z6qa1lVSR3jVQUG mY8BsrkJr2AxHpLs9aO9DIbxerb9g9JqcLcScikZr/sPX25Lxm OPfJAKcLGMiz1xv3NXlI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 05 Nov 2011 11:50:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53552 Archived-At: This is a multi-part message in MIME format. --------------000004010209020905070704 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit after M-x shell RET shell prompt appears twofold like this: MYNAME@MYHOST:~/emacs-20111105-r106290/src> MYNAME@MYHOST:~/emacs-20111105-r106290/src> ;;;;;;;;; patch attached seems to fix it Andreas ;;;;;;;;; In GNU Emacs 24.0.91.1 (i686-suse-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-11-05 on MYHOST Windowing system distributor `The X.Org Foundation', version 11.0.10903000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x s h e l l M-x r e p o r t - e m c a c s - b u f g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug ansi-color shell pcomplete comint regexp-opt ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) --------------000004010209020905070704 Content-Type: text/x-patch; name="shell-prompt-doubled.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="shell-prompt-doubled.patch" === modified file 'lisp/comint.el' --- lisp/comint.el 2011-10-25 12:33:31 +0000 +++ lisp/comint.el 2011-11-05 15:35:31 +0000 @@ -769,18 +769,19 @@ (goto-char (point-max)) (set-marker (process-mark proc) (point)) ;; Feed it the startfile. - (cond (startfile + ;; (cond (startfile ;;This is guaranteed to wait long enough ;;but has bad results if the comint does not prompt at all ;; (while (= size (buffer-size)) ;; (sleep-for 1)) ;;I hope 1 second is enough! - (sleep-for 1) - (goto-char (point-max)) - (insert-file-contents startfile) - (setq startfile (buffer-substring (point) (point-max))) - (delete-region (point) (point-max)) - (comint-send-string proc startfile))) + ;; (sleep-for 1) + ;; (goto-char (point-max)) + ;; (insert-file-contents startfile) + ;; (setq startfile (buffer-substring (point) (point-max))) + ;; (delete-region (point) (point-max)) + ;; (comint-send-string proc startfile))) + (run-hooks 'comint-exec-hook) buffer))) --------------000004010209020905070704--