From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 02:51:54 2012 Received: (at submit) by debbugs.gnu.org; 9 Jul 2012 06:51:54 +0000 Received: from localhost ([127.0.0.1]:57341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1So7p1-0000rk-Ih for submit@debbugs.gnu.org; Mon, 09 Jul 2012 02:51:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46069) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1So7CC-0007YP-6X for submit@debbugs.gnu.org; Mon, 09 Jul 2012 02:11:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1So775-0000dQ-Ur for submit@debbugs.gnu.org; Mon, 09 Jul 2012 02:06:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:35268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So775-0000dF-Lz for submit@debbugs.gnu.org; Mon, 09 Jul 2012 02:06:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So772-0001yw-NP for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 02:06:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1So76z-0000cX-Fp for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 02:06:24 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So76z-0000cN-2e for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 02:06:21 -0400 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 48B2521097 for ; Mon, 9 Jul 2012 01:29:38 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 09 Jul 2012 01:29:38 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= mesmtp; bh=wAU5dzYdqLBUCdm3FkbOTIXtoxU=; b=dLwIkzAgXvMBWORVyrNh3 zyBFsRRjGyD6xhY5NmvJ4fXoUIzahTdsfLG8VDTUTIHn0rebv8lNdBO7kVXRLIbu k0RomTEO+hqYVpMpQeOVb7JCrgtUR9u3lNw8D1oDhK3EMcESIQrdwWbyo1+YVYmO JAJ5b0bfeTryFf1zpfbNsQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :mime-version:content-type; s=smtpout; bh=wAU5dzYdqLBUCdm3FkbOTI XtoxU=; b=HgkrHsMMTELpamXGV3/bz76a18VU8VD80pZBpoTHRqsUAgdoMixdjL ImLx5zgiT3J3lp95HFGP3efkczKOjcleh6iCUV5Zs0YZYdBlo4tAjbEQn9fPNVdb Yw1ySJAoRkIw/ggbWaXzvZRtfieLKdS21gZ+DAQT0lKFPyCb1SKm4= X-Sasl-enc: pMH9OfhOG+ELl9dco/bIfPp6ueuWI+bsNyQ9YmmEu93X 1341811777 Received: from shorty.local (unknown [76.169.242.46]) by mail.messagingengine.com (Postfix) with ESMTPA id DE39B8E020C for ; Mon, 9 Jul 2012 01:29:37 -0400 (EDT) Received: from dima by shorty.local with local (Exim 4.80) (envelope-from ) id 1So6XP-0007Ez-MY for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 22:29:36 -0700 From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 24.1.50; shell-mode doesn't colorize the prompt Date: Sun, 08 Jul 2012 22:29:35 -0700 Message-ID: <87a9z9ec3k.fsf@shorty.local.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 09 Jul 2012 02:51:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) When using shell mode (M-x shell), I'm seeing correct colors rendered for output of commands like 'ls --color=auto'. However this doesn't appear to apply to the prompt, all of which appears in one, wrong color. This appears to be related to the prompt not emitting a trailing newline (which is as it should be). As a test, I can echo the ANSI codes myself. This produces a correctly-colored red string: dima@shorty:~$ echo -e "\033[31mtest\033[39m" test <----- red But this doesn't. Note it's the same command but without a trailing newline: dima@shorty:~$ echo -n -e "\033[31mtest\033[39m" testdima@shorty:~$ <------ whole thing is blue So the prompt emits the correct codes (verified with strace), but since it has no trailing newline, it is rendered wrong, just like the "test" string above. This is something that worked in emacs23. Thanks. In GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2012-06-29 on zelenka, modified by Debian (emacs-snapshot package, version 2:20120629-1) Windowing system distributor `The X.Org Foundation', version 11.0.11201902 Configured using: `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/x86_64-linux-gnu/' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed -znocombreloc' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_ALL: C value of $LANG: C locale-coding-system: nil 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 C-x C-x C-w C-y SPC - n M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [2 times] History item: 1 Load-path shadows: /usr/share/emacs/24.1.50/site-lisp/cscope/xcscope hides /usr/share/emacs/site-lisp/xcscope /usr/share/emacs/24.1.50/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.1.50/site-lisp/easypg/epg hides /usr/share/emacs/24.1.50/lisp/epg /usr/share/emacs/24.1.50/site-lisp/easypg/epa-dired hides /usr/share/emacs/24.1.50/lisp/epa-dired /usr/share/emacs/24.1.50/site-lisp/easypg/epg-config hides /usr/share/emacs/24.1.50/lisp/epg-config /usr/share/emacs/24.1.50/site-lisp/easypg/epa hides /usr/share/emacs/24.1.50/lisp/epa /usr/share/emacs/24.1.50/site-lisp/easypg/epa-file hides /usr/share/emacs/24.1.50/lisp/epa-file /usr/share/emacs/24.1.50/site-lisp/easypg/epa-mail hides /usr/share/emacs/24.1.50/lisp/epa-mail /usr/share/emacs/24.1.50/site-lisp/org-mode/org-list hides /usr/share/emacs/24.1.50/lisp/org/org-list /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-screen hides /usr/share/emacs/24.1.50/lisp/org/ob-screen /usr/share/emacs/24.1.50/site-lisp/org-mode/org-protocol hides /usr/share/emacs/24.1.50/lisp/org/org-protocol /usr/share/emacs/24.1.50/site-lisp/org-mode/org-footnote hides /usr/share/emacs/24.1.50/lisp/org/org-footnote /usr/share/emacs/24.1.50/site-lisp/org-mode/org-docview hides /usr/share/emacs/24.1.50/lisp/org/org-docview /usr/share/emacs/24.1.50/site-lisp/org-mode/org-pcomplete hides /usr/share/emacs/24.1.50/lisp/org/org-pcomplete /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-sh hides /usr/share/emacs/24.1.50/lisp/org/ob-sh /usr/share/emacs/24.1.50/site-lisp/org-mode/org-irc hides /usr/share/emacs/24.1.50/lisp/org/org-irc /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-maxima hides /usr/share/emacs/24.1.50/lisp/org/ob-maxima /usr/share/emacs/24.1.50/site-lisp/org-mode/org-mac-message hides /usr/share/emacs/24.1.50/lisp/org/org-mac-message /usr/share/emacs/24.1.50/site-lisp/org-mode/org-bibtex hides /usr/share/emacs/24.1.50/lisp/org/org-bibtex /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-asymptote hides /usr/share/emacs/24.1.50/lisp/org/ob-asymptote /usr/share/emacs/24.1.50/site-lisp/org-mode/org-bbdb hides /usr/share/emacs/24.1.50/lisp/org/org-bbdb /usr/share/emacs/24.1.50/site-lisp/org-mode/ob hides /usr/share/emacs/24.1.50/lisp/org/ob /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-lilypond hides /usr/share/emacs/24.1.50/lisp/org/ob-lilypond /usr/share/emacs/24.1.50/site-lisp/org-mode/org-exp-blocks hides /usr/share/emacs/24.1.50/lisp/org/org-exp-blocks /usr/share/emacs/24.1.50/site-lisp/org-mode/org-icalendar hides /usr/share/emacs/24.1.50/lisp/org/org-icalendar /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-gnuplot hides /usr/share/emacs/24.1.50/lisp/org/ob-gnuplot /usr/share/emacs/24.1.50/site-lisp/org-mode/org-src hides /usr/share/emacs/24.1.50/lisp/org/org-src /usr/share/emacs/24.1.50/site-lisp/org-mode/org-w3m hides /usr/share/emacs/24.1.50/lisp/org/org-w3m /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-css hides /usr/share/emacs/24.1.50/lisp/org/ob-css /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-ledger hides /usr/share/emacs/24.1.50/lisp/org/ob-ledger /usr/share/emacs/24.1.50/site-lisp/org-mode/org-wl hides /usr/share/emacs/24.1.50/lisp/org/org-wl /usr/share/emacs/24.1.50/site-lisp/org-mode/org-mew hides /usr/share/emacs/24.1.50/lisp/org/org-mew /usr/share/emacs/24.1.50/site-lisp/org-mode/org-mks hides /usr/share/emacs/24.1.50/lisp/org/org-mks /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-python hides /usr/share/emacs/24.1.50/lisp/org/ob-python /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-shen hides /usr/share/emacs/24.1.50/lisp/org/ob-shen /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-tangle hides /usr/share/emacs/24.1.50/lisp/org/ob-tangle /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-haskell hides /usr/share/emacs/24.1.50/lisp/org/ob-haskell /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-eval hides /usr/share/emacs/24.1.50/lisp/org/ob-eval /usr/share/emacs/24.1.50/site-lisp/org-mode/org-rmail hides /usr/share/emacs/24.1.50/lisp/org/org-rmail /usr/share/emacs/24.1.50/site-lisp/org-mode/org-habit hides /usr/share/emacs/24.1.50/lisp/org/org-habit /usr/share/emacs/24.1.50/site-lisp/org-mode/org-exp hides /usr/share/emacs/24.1.50/lisp/org/org-exp /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-mscgen hides /usr/share/emacs/24.1.50/lisp/org/ob-mscgen /usr/share/emacs/24.1.50/site-lisp/org-mode/org-gnus hides /usr/share/emacs/24.1.50/lisp/org/org-gnus /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-plantuml hides /usr/share/emacs/24.1.50/lisp/org/ob-plantuml /usr/share/emacs/24.1.50/site-lisp/org-mode/org-ascii hides /usr/share/emacs/24.1.50/lisp/org/org-ascii /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-octave hides /usr/share/emacs/24.1.50/lisp/org/ob-octave /usr/share/emacs/24.1.50/site-lisp/org-mode/org-entities hides /usr/share/emacs/24.1.50/lisp/org/org-entities /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-dot hides /usr/share/emacs/24.1.50/lisp/org/ob-dot /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-latex hides /usr/share/emacs/24.1.50/lisp/org/ob-latex /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-java hides /usr/share/emacs/24.1.50/lisp/org/ob-java /usr/share/emacs/24.1.50/site-lisp/org-mode/org-indent hides /usr/share/emacs/24.1.50/lisp/org/org-indent /usr/share/emacs/24.1.50/site-lisp/org-mode/org-table hides /usr/share/emacs/24.1.50/lisp/org/org-table /usr/share/emacs/24.1.50/site-lisp/org-mode/org-eshell hides /usr/share/emacs/24.1.50/lisp/org/org-eshell /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-org hides /usr/share/emacs/24.1.50/lisp/org/ob-org /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-exp hides /usr/share/emacs/24.1.50/lisp/org/ob-exp /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-keys hides /usr/share/emacs/24.1.50/lisp/org/ob-keys /usr/share/emacs/24.1.50/site-lisp/org-mode/org-install hides /usr/share/emacs/24.1.50/lisp/org/org-install /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-ref hides /usr/share/emacs/24.1.50/lisp/org/ob-ref /usr/share/emacs/24.1.50/site-lisp/org-mode/org-id hides /usr/share/emacs/24.1.50/lisp/org/org-id /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-sass hides /usr/share/emacs/24.1.50/lisp/org/ob-sass /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-picolisp hides /usr/share/emacs/24.1.50/lisp/org/ob-picolisp /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-sqlite hides /usr/share/emacs/24.1.50/lisp/org/ob-sqlite /usr/share/emacs/24.1.50/site-lisp/org-mode/org-xoxo hides /usr/share/emacs/24.1.50/lisp/org/org-xoxo /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-calc hides /usr/share/emacs/24.1.50/lisp/org/ob-calc /usr/share/emacs/24.1.50/site-lisp/org-mode/org-mhe hides /usr/share/emacs/24.1.50/lisp/org/org-mhe /usr/share/emacs/24.1.50/site-lisp/org-mode/org hides /usr/share/emacs/24.1.50/lisp/org/org /usr/share/emacs/24.1.50/site-lisp/org-mode/org-docbook hides /usr/share/emacs/24.1.50/lisp/org/org-docbook /usr/share/emacs/24.1.50/site-lisp/org-mode/org-mouse hides /usr/share/emacs/24.1.50/lisp/org/org-mouse /usr/share/emacs/24.1.50/site-lisp/org-mode/org-html hides /usr/share/emacs/24.1.50/lisp/org/org-html /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-ditaa hides /usr/share/emacs/24.1.50/lisp/org/ob-ditaa /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-ocaml hides /usr/share/emacs/24.1.50/lisp/org/ob-ocaml /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-lisp hides /usr/share/emacs/24.1.50/lisp/org/ob-lisp /usr/share/emacs/24.1.50/site-lisp/org-mode/org-jsinfo hides /usr/share/emacs/24.1.50/lisp/org/org-jsinfo /usr/share/emacs/24.1.50/site-lisp/org-mode/org-odt hides /usr/share/emacs/24.1.50/lisp/org/org-odt /usr/share/emacs/24.1.50/site-lisp/org-mode/org-macs hides /usr/share/emacs/24.1.50/lisp/org/org-macs /usr/share/emacs/24.1.50/site-lisp/org-mode/org-freemind hides /usr/share/emacs/24.1.50/lisp/org/org-freemind /usr/share/emacs/24.1.50/site-lisp/org-mode/org-archive hides /usr/share/emacs/24.1.50/lisp/org/org-archive /usr/share/emacs/24.1.50/site-lisp/org-mode/org-latex hides /usr/share/emacs/24.1.50/lisp/org/org-latex /usr/share/emacs/24.1.50/site-lisp/org-mode/org-crypt hides /usr/share/emacs/24.1.50/lisp/org/org-crypt /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-emacs-lisp hides /usr/share/emacs/24.1.50/lisp/org/ob-emacs-lisp /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-clojure hides /usr/share/emacs/24.1.50/lisp/org/ob-clojure /usr/share/emacs/24.1.50/site-lisp/org-mode/org-lparse hides /usr/share/emacs/24.1.50/lisp/org/org-lparse /usr/share/emacs/24.1.50/site-lisp/org-mode/org-colview hides /usr/share/emacs/24.1.50/lisp/org/org-colview /usr/share/emacs/24.1.50/site-lisp/org-mode/org-taskjuggler hides /usr/share/emacs/24.1.50/lisp/org/org-taskjuggler /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-matlab hides /usr/share/emacs/24.1.50/lisp/org/ob-matlab /usr/share/emacs/24.1.50/site-lisp/org-mode/org-faces hides /usr/share/emacs/24.1.50/lisp/org/org-faces /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-table hides /usr/share/emacs/24.1.50/lisp/org/ob-table /usr/share/emacs/24.1.50/site-lisp/org-mode/org-capture hides /usr/share/emacs/24.1.50/lisp/org/org-capture /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-js hides /usr/share/emacs/24.1.50/lisp/org/ob-js /usr/share/emacs/24.1.50/site-lisp/org-mode/org-mobile hides /usr/share/emacs/24.1.50/lisp/org/org-mobile /usr/share/emacs/24.1.50/site-lisp/org-mode/org-agenda hides /usr/share/emacs/24.1.50/lisp/org/org-agenda /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-sql hides /usr/share/emacs/24.1.50/lisp/org/ob-sql /usr/share/emacs/24.1.50/site-lisp/org-mode/org-special-blocks hides /usr/share/emacs/24.1.50/lisp/org/org-special-blocks /usr/share/emacs/24.1.50/site-lisp/org-mode/org-beamer hides /usr/share/emacs/24.1.50/lisp/org/org-beamer /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-fortran hides /usr/share/emacs/24.1.50/lisp/org/ob-fortran /usr/share/emacs/24.1.50/site-lisp/org-mode/org-timer hides /usr/share/emacs/24.1.50/lisp/org/org-timer /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-perl hides /usr/share/emacs/24.1.50/lisp/org/ob-perl /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-R hides /usr/share/emacs/24.1.50/lisp/org/ob-R /usr/share/emacs/24.1.50/site-lisp/org-mode/org-ctags hides /usr/share/emacs/24.1.50/lisp/org/org-ctags /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-ruby hides /usr/share/emacs/24.1.50/lisp/org/ob-ruby /usr/share/emacs/24.1.50/site-lisp/org-mode/org-compat hides /usr/share/emacs/24.1.50/lisp/org/org-compat /usr/share/emacs/24.1.50/site-lisp/org-mode/org-feed hides /usr/share/emacs/24.1.50/lisp/org/org-feed /usr/share/emacs/24.1.50/site-lisp/org-mode/org-publish hides /usr/share/emacs/24.1.50/lisp/org/org-publish /usr/share/emacs/24.1.50/site-lisp/org-mode/org-remember hides /usr/share/emacs/24.1.50/lisp/org/org-remember /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-C hides /usr/share/emacs/24.1.50/lisp/org/ob-C /usr/share/emacs/24.1.50/site-lisp/org-mode/org-vm hides /usr/share/emacs/24.1.50/lisp/org/org-vm /usr/share/emacs/24.1.50/site-lisp/org-mode/org-datetree hides /usr/share/emacs/24.1.50/lisp/org/org-datetree /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-awk hides /usr/share/emacs/24.1.50/lisp/org/ob-awk /usr/share/emacs/24.1.50/site-lisp/org-mode/org-plot hides /usr/share/emacs/24.1.50/lisp/org/org-plot /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-scheme hides /usr/share/emacs/24.1.50/lisp/org/ob-scheme /usr/share/emacs/24.1.50/site-lisp/org-mode/org-attach hides /usr/share/emacs/24.1.50/lisp/org/org-attach /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-lob hides /usr/share/emacs/24.1.50/lisp/org/ob-lob /usr/share/emacs/24.1.50/site-lisp/org-mode/ob-comint hides /usr/share/emacs/24.1.50/lisp/org/ob-comint /usr/share/emacs/24.1.50/site-lisp/org-mode/org-inlinetask hides /usr/share/emacs/24.1.50/lisp/org/org-inlinetask /usr/share/emacs/24.1.50/site-lisp/org-mode/org-clock hides /usr/share/emacs/24.1.50/lisp/org/org-clock /usr/share/emacs/24.1.50/site-lisp/org-mode/org-info hides /usr/share/emacs/24.1.50/lisp/org/org-info Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils shell pcomplete comint ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment 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 move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 06 14:17:13 2012 Received: (at 11883) by debbugs.gnu.org; 6 Nov 2012 19:17:13 +0000 Received: from localhost ([127.0.0.1]:52807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVoe8-0003b6-Rn for submit@debbugs.gnu.org; Tue, 06 Nov 2012 14:17:13 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34518) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVoe6-0003ay-E2 for 11883@debbugs.gnu.org; Tue, 06 Nov 2012 14:17:11 -0500 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 97AED20A4E for <11883@debbugs.gnu.org>; Tue, 6 Nov 2012 14:13:57 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 06 Nov 2012 14:13:57 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=mesmtp; bh=DUdFgMH5aOdBTvKVam+AgYz fLow=; b=QYi5U8+NjUoidzectUTTSPKd9GrPQ2AFPnK5xzDPCwzXGg+FL1olpus b9TmcyON505fvOArEUk+1PfXW7x5I2BD0sJojaeDvRRKIufpkiTUAp2yOA50ZtSH y7yFDqrg4Mcie+d+kX0DCN1YTx0y5tNuAHLq9QFFzD03e0ObWjKQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:subject:message-id :mime-version:content-type:content-transfer-encoding; s=smtpout; bh=DUdFgMH5aOdBTvKVam+AgYzfLow=; b=A/1opFs2A6d4PDy3R0QuDM6tcjFE 4wDwJofLKVIZw7MNSnzRqP4VCyAtq2T3LoTFsam/yF9bx/kaLcWdq8P7pBhX0GeJ jDccARdmIw9w+ES1LFKNw33ZVIMR1YnCZo/yY8IfLbhyVs8aYXaeKkWFNxz/cd2L iG6x2hf/AO7yUks= X-Sasl-enc: h+wuKbGZBmbKlh9C7K0gRlV/tPZUvjpNcdT/TW04/kbe 1352229237 Received: from fatty (unknown [204.154.109.20]) by mail.messagingengine.com (Postfix) with ESMTPA id 32642482642 for <11883@debbugs.gnu.org>; Tue, 6 Nov 2012 14:13:57 -0500 (EST) Date: Tue, 6 Nov 2012 11:12:43 -0800 From: Dima Kogan To: 11883@debbugs.gnu.org Subject: Hints Message-ID: <20121106111243.3b2d7965@fatty> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Looking around, I discovered that this regression was introduced in http://git.savannah.gnu.org/cgit/emacs.git/commit/lisp/ansi-color.el?id=cd49cea06bb1c492d4d024889f3f320bf4c9b507 Furthermore, starting from the recent sources, this regression can be fixed by making the following changes to comint.el: [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.5 SLIGHTLY_BAD_SUBJECT Subject contains something slightly spammy -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [66.111.4.29 listed in list.dnswl.org] 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 11883 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Looking around, I discovered that this regression was introduced in http://git.savannah.gnu.org/cgit/emacs.git/commit/lisp/ansi-color.el?id=cd49cea06bb1c492d4d024889f3f320bf4c9b507 Furthermore, starting from the recent sources, this regression can be fixed by making the following changes to comint.el: [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [66.111.4.29 listed in list.dnswl.org] 2.5 SLIGHTLY_BAD_SUBJECT Subject contains something slightly spammy 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Looking around, I discovered that this regression was introduced in http://git.savannah.gnu.org/cgit/emacs.git/commit/lisp/ansi-color.el?id=cd49cea06bb1c492d4d024889f3f320bf4c9b507 Furthermore, starting from the recent sources, this regression can be fixed by making the following changes to comint.el: 1. Not inheriting the comint-highlight-prompt face from minibuffer-prompt 2. In comint-output-filter, changing ;; Just move an existing overlay (move-overlay comint-last-prompt-overlay prompt-start (point)) to (move-overlay (copy-overlay comint-last-prompt-overlay) prompt-start (point)) Note that I don't understand this code sufficiently well to claim this as a fix, but hopefully this will be helpful for the maintainer to make the final fix. dima From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 09 14:06:08 2012 Received: (at 11883) by debbugs.gnu.org; 9 Nov 2012 19:06:08 +0000 Received: from localhost ([127.0.0.1]:58324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWtu3-0001cs-Ft for submit@debbugs.gnu.org; Fri, 09 Nov 2012 14:06:07 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:51148) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWttv-0001cG-5S; Fri, 09 Nov 2012 14:06:01 -0500 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id qA9J5lRB017317; Fri, 9 Nov 2012 14:05:47 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id B8C53B4278; Fri, 9 Nov 2012 14:05:47 -0500 (EST) From: Stefan Monnier To: Dima Kogan Subject: Re: bug#11883: shell-mode doesn't colorize the prompt Message-ID: References: <87a9z9ec3k.fsf@shorty.local.i-did-not-set--mail-host-address--so-tickle-me> <20121106111243.3b2d7965@fatty> Date: Fri, 09 Nov 2012 14:05:47 -0500 In-Reply-To: <20121106111243.3b2d7965@fatty> (Dima Kogan's message of "Tue, 6 Nov 2012 11:12:43 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4396=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4396> : streams <854619> : uri <1263854> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11883 Cc: 11883@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) severity 11883 wishlist thanks The behavior you see is due to the following: - the prompt is highlighted with an overlay that uses a comint-highlight-prompt face. - "the prompt" is determined dynamically as "the last non-line-terminated output of the process". - the ansi-color escapes used to be applied using overlays but are now applied using text-properties. When you use ansi escapes to color the prompt, you clearly have a conflict with the comint-highlight-prompt face that is to be used for the prompt. If you do C-u C-x = on the "t" of "test" in your test case, you'll see that it does have a `font-lock-face' text-property that stipulates the use of a red foreground, but the overlay takes precedence. Emacs-23's use of overlays for ansi colors worked better in this respect, because those overlays took precedence by virtue of being smaller. You can by revert to the Emacs-23 behavior with the following hack: (add-hook 'shell-mode-hook (lambda () (kill-local-variable 'ansi-color-apply-face-function))) But the reason Emacs-24 stopped using overlays is because they can slow things down significantly if you have many such colored chunks and your shell buffer grows large. Stefan PS: Yes, that's an implementation defect in Emacs which should use more efficient algorithms for its overlays. I have a pretty good idea how to fix this, so if someone's interested, I'd be happy to help them write a patch for it. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 19:07:09 2021 Received: (at 11883) by debbugs.gnu.org; 15 Jul 2021 23:07:09 +0000 Received: from localhost ([127.0.0.1]:50021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ARh-0006b0-DG for submit@debbugs.gnu.org; Thu, 15 Jul 2021 19:07:09 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ARg-0006ag-0W for 11883@debbugs.gnu.org; Thu, 15 Jul 2021 19:07:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=USqc4YktzEKxcPUf8Fcp0KDYo4yTU/rSpYa+e83iLrY=; b=hjmxWanvor7FEy78THqHoWpZFw gmNhKXQDkJgEL0vAOYprhp2Jvk+BoXQvrUHvPFvjxBoJKNuR+pBiu/MItsUw4iphIYnzWXKOEi12V s1dLKzvUxqxWfvFXqsjlvIs/+dlkkvoaQrg/w+/KXdfC7SyPhnYBYIpxsLWvBTCcN4CI=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4ARR-0005t8-JY; Fri, 16 Jul 2021 01:06:56 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#11883: 24.1.50; shell-mode doesn't colorize the prompt References: <87a9z9ec3k.fsf@shorty.local.i-did-not-set--mail-host-address--so-tickle-me> <20121106111243.3b2d7965@fatty> X-Now-Playing: Colored Music's _Individual Beauty_: "Ambient Discotheque" Date: Fri, 16 Jul 2021 01:06:53 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 09 Nov 2012 14:05:47 -0500") Message-ID: <878s27dvn6.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > The behavior you see is due to the following: > - the prompt is highlighted with an overlay that uses > a comint-highlight-prompt face. > - "the prompt" is determined dynamically as "the last > non- [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11883 Cc: 11883@debbugs.gnu.org, Dima Kogan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > The behavior you see is due to the following: > - the prompt is highlighted with an overlay that uses > a comint-highlight-prompt face. > - "the prompt" is determined dynamically as "the last > non-line-terminated output of the process". > - the ansi-color escapes used to be applied using overlays but are now > applied using text-properties. > > When you use ansi escapes to color the prompt, you clearly have > a conflict with the comint-highlight-prompt face that is to be used for > the prompt. The following simple tweak seems to fix the reported issue: diff --git a/lisp/comint.el b/lisp/comint.el index 9e406614b9..3dfb269de4 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -2157,9 +2157,9 @@ comint-output-filter 'comint-highlight-prompt)) (setq comint-last-prompt (cons (copy-marker prompt-start) (point-marker))) - (font-lock-prepend-text-property prompt-start (point) - 'font-lock-face - 'comint-highlight-prompt) + (font-lock-append-text-property prompt-start (point) + 'font-lock-face + 'comint-highlight-prompt) (add-text-properties prompt-start (point) `(rear-nonsticky ,comint--prompt-rear-nonsticky))) That is, we don't overwrite the ANSI face properties. I guess this might also avoid overwriting properties in prompts that use ANSI codes? Which might also be nice. Would this regress anything? Anybody got an opinion? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 19:07:09 2021 Received: (at control) by debbugs.gnu.org; 15 Jul 2021 23:07:09 +0000 Received: from localhost ([127.0.0.1]:50023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ARh-0006b2-Lz for submit@debbugs.gnu.org; Thu, 15 Jul 2021 19:07:09 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ARg-0006ah-0T for control@debbugs.gnu.org; Thu, 15 Jul 2021 19:07:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0mSmtFWCJwJgaJXxJLRMmRBNSH8l3OpgR2P1xo6CJ98=; b=jAAj248dHIbJcdtX8LEhjZIhQa 3PPH36SbEToARHX94vBmTnQFVvepqar4PDrHX/IXQUtvTVM49/ptHRvqFojziqFVWNHq4GfscF4DL rdgSeCbhlSWh8YaF1DGio2uMBNxNE4ta9kEl3linrgmAs6WlD59soFm/TiJZV8hbdKuU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4ARY-0005tF-BG for control@debbugs.gnu.org; Fri, 16 Jul 2021 01:07:02 +0200 Date: Fri, 16 Jul 2021 01:06:59 +0200 Message-Id: <877dhrdvn0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11883 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 11883 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 11883 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 19:07:15 2021 Received: (at control) by debbugs.gnu.org; 15 Jul 2021 23:07:15 +0000 Received: from localhost ([127.0.0.1]:50026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ARm-0006bO-RB for submit@debbugs.gnu.org; Thu, 15 Jul 2021 19:07:15 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ARj-0006am-Hp for control@debbugs.gnu.org; Thu, 15 Jul 2021 19:07:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IVJ2Cpm9X0oOvE4jVfjuN2XZwB9k1N576oHMV204gDs=; b=T4NejfR8SQiiKRvsiDQ6PNpuQH CyhHh/xWtI8A6ke7EjyglAZTbk41aNciUesgVR0mhRXx+t/9+gyOv0s4SOPrX+oWae2gqmnBzOBR/ m0D4xp4+26cPPcxeouZzcPAiaU/2+D1QYFDgxv91rcBaMhHx5Vn1VYwBAiHLLy9np3R8=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4ARc-0005tR-1X for control@debbugs.gnu.org; Fri, 16 Jul 2021 01:07:06 +0200 Date: Fri, 16 Jul 2021 01:07:03 +0200 Message-Id: <875yxbdvmw.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11883 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 11883 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 11883 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 30 08:04:42 2021 Received: (at 11883) by debbugs.gnu.org; 30 Jul 2021 12:04:42 +0000 Received: from localhost ([127.0.0.1]:59260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9RFq-0001gV-7I for submit@debbugs.gnu.org; Fri, 30 Jul 2021 08:04:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9RFo-0001gC-1x for 11883@debbugs.gnu.org; Fri, 30 Jul 2021 08:04:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kmRUGHKzZCN8tZv5HRC3Ey1tjgOhazHrCso3/7lNxrA=; b=dJeTaMRiMuESId5jM4gCxWqbkT t+uKu6VasAssKTPb1Ya8cpqL5Xnjlwuok1rhSfxqOaqiBFhX/AluZyzd4qxK9oyprzkQ8/LQYq8/x nVmhwlphGgeytzpK86cSUfwIBaRojwmZr7MtcTrB7iyhEVKpMAWYQY5olLrIk2SB/FLk=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9RFd-00079x-J9; Fri, 30 Jul 2021 14:04:32 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#11883: 24.1.50; shell-mode doesn't colorize the prompt References: <87a9z9ec3k.fsf@shorty.local.i-did-not-set--mail-host-address--so-tickle-me> <20121106111243.3b2d7965@fatty> <878s27dvn6.fsf_-_@gnus.org> Date: Fri, 30 Jul 2021 14:04:27 +0200 In-Reply-To: <878s27dvn6.fsf_-_@gnus.org> (Lars Ingebrigtsen's message of "Fri, 16 Jul 2021 01:06:53 +0200") Message-ID: <87lf5onh2s.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > The following simple tweak seems to fix the reported issue: [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11883 Cc: 11883@debbugs.gnu.org, Dima Kogan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > The following simple tweak seems to fix the reported issue: [...] > Would this regress anything? Anybody got an opinion? Nobody had in two weeks, so I've now pushed the change. If it leads to problems, we'll have to reconsider. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 30 08:04:49 2021 Received: (at control) by debbugs.gnu.org; 30 Jul 2021 12:04:49 +0000 Received: from localhost ([127.0.0.1]:59263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9RFw-0001gp-F6 for submit@debbugs.gnu.org; Fri, 30 Jul 2021 08:04:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9RFr-0001gL-Lg for control@debbugs.gnu.org; Fri, 30 Jul 2021 08:04:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BhxEuiK1/uEIQP5rYPdm5l9iN5PtSHjFOpoeB2avWQ4=; b=CMrVik7fS2LoggACa/4imhL/ql joGVE1R3aGcFqdhz/7ROQKE98H6fm9rySzVoJp4fwUwk0BpwzIkSHGybfoVX/WpLVPpbKsnWNE82i YeXhaaKVlyikEbse7zBgo+s7gxeLpzX3KHtXf3fuvyrqGnZ+ScPkvyvoKYzgyu0dSkEg=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9RFj-0007A4-So for control@debbugs.gnu.org; Fri, 30 Jul 2021 14:04:38 +0200 Date: Fri, 30 Jul 2021 14:04:34 +0200 Message-Id: <87k0l8nh2l.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11883 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 11883 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 11883 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 30 14:38:19 2021 Received: (at 11883) by debbugs.gnu.org; 30 Jul 2021 18:38:19 +0000 Received: from localhost ([127.0.0.1]:60907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9XOk-0005vF-Ui for submit@debbugs.gnu.org; Fri, 30 Jul 2021 14:38:19 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9XOj-0005v3-Lv for 11883@debbugs.gnu.org; Fri, 30 Jul 2021 14:38:18 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 284875C00DD; Fri, 30 Jul 2021 14:38:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 30 Jul 2021 14:38:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=1QemzyO2PpkuAMZm7TudhJSTD1 RRY/lHsxp819j159c=; b=BphDleCqkHprK42JCB6LqV28ZA0dM2UJ9bFtnDmHhZ 35yuNoAIu0bl0aEO8p9pQdSB+VYxpOLW6VK4G9UWhdxwQHBZAocs743wHsSA5NlU MvN9M9B9tFgh9VHtNv0EmNIZceFXnKcBaHPxdsB1F7WTPfZbywHyGXJ9wDpXc0vM 1uzkqP8VPQzsvQRUGJef3c20idz/nMO/l0/tSmldlj5KWsHVaeJAqjV/wL9YgEe6 xmu/rrXRTq4hLuLGEXqcQwqrFvToUGxDJdKfpceqdNkG05hDme1xKP6TR2L9CeZA JxtZf5qMIXt4TzASzp8BZ0Sms2Kdtz5wLlHlp4AYgYjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=1Qemzy O2PpkuAMZm7TudhJSTD1RRY/lHsxp819j159c=; b=YOdaJiHDp0mqOTedXX0YyU 6L+rduvXC8lSjbZH90MbPO+rxXyzYuykRgi7NiPbMIFQ/PkJiOHe8yE1ry5chgWH mGwiQI/DIFibKE7sw+Ng66VtYGl4WVlLA6Amtr2YTb6SxxXF9pFx2qOxjz43MOr8 KygeNUnHpYaiNaM/oB+2NuY8GS33uBCSnPxuz/0moNOhUIj4rxd9mQT4vro3esMA hfE1dqmY6Ac7k0YNqXQIk8HRbLdG4bk2STGixd1Ui56PRmlDppkDTcKouf6XTUQ/ IORN1ATab3SyjsOK1VR+eRou+OOpVkJ53d3Uq/SdnFO2NhlUmwAjnvvJn9FwSxAg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrheehgdduvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 30 Jul 2021 14:38:09 -0400 (EDT) References: <87a9z9ec3k.fsf@shorty.local.i-did-not-set--mail-host-address--so-tickle-me> <20121106111243.3b2d7965@fatty> <878s27dvn6.fsf_-_@gnus.org> <87lf5onh2s.fsf@gnus.org> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Dima Kogan To: Lars Ingebrigtsen Subject: Re: bug#11883: 24.1.50; shell-mode doesn't colorize the prompt In-reply-to: <87lf5onh2s.fsf@gnus.org> Date: Fri, 30 Jul 2021 11:38:01 -0700 Message-ID: <87zgu3ir5i.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11883 Cc: 11883@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Thanks much. I can now remove that 9-year-old workaround from my .emacs :) From unknown Sun Sep 07 21:36:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 28 Aug 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 04:26:07 2021 Received: (at control) by debbugs.gnu.org; 19 Dec 2021 09:26:07 +0000 Received: from localhost ([127.0.0.1]:44798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mysSF-0000ra-4I for submit@debbugs.gnu.org; Sun, 19 Dec 2021 04:26:07 -0500 Received: from kamnitnik.top ([209.250.245.214]:44256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mysSD-0000rT-Vz for control@debbugs.gnu.org; Sun, 19 Dec 2021 04:26:06 -0500 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id 02CEC9CA87 for ; Sun, 19 Dec 2021 09:26:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1639905965; bh=EghyZUH/av+TqL2ZZ4XmHRhNCUQP7gIFeG7li7P0q1w=; h=From:To:Subject:Date:From; b=H56cn2CB9etJ5I3xm/7/6EimII6sYN+ASz97NeRxLKTf6uBMmqKhT5z+1EzopIDHg qrx1N78vEkqn5I5IXBADYOGCoarzI7ethwsCTADmVChDW+X3cSSTZJpKkcyHL8uagN qfyeoQukC9oEd0noGPbmOy5NEUqT0pwN13b63ACysArWT5Y2P8HtXpKhXLs4wId2dd K73JSkZzfPb9h3t5pnLy99wauM1pUY5O4K4o5ufXx9Y9PjDaBDxWAf1BEzWFAhEqbx NY1IEtOAM83lRFscn4aRIq+mXOCZ+tYIGU5Oo5Lz/nrXv3SqXiEc/1AdGA2vu1d/pw zp2T6zLuxcX9g== From: miha@kamnitnik.top To: control@debbugs.gnu.org Subject: unarchive 11883 Date: Sun, 19 Dec 2021 10:31:33 +0100 Message-ID: <87mtkxndoq.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: unarchive 11883 Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.0 TVD_SPACE_RATIO No description available. X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: unarchive 11883 Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.0 TVD_SPACE_RATIO No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain unarchive 11883 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmG++/UTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP8ZiEACbkiE1xCYjXhE/Yah5NkD5Rms2TXed zrD7+RlrwW2FzhFBOV9jc4paURb+6D8B+kMuoHgHkwcJpwRxLIg0SwMvfton3pGD CtK6LVU8bgLX01JiDxWEX58J7Z+lD9pgPVyGOLg5IIaJetcHNn9Js7avXlF9Bc83 RecDUTFK8sgqVgsIqKelNyAti1w9NukmhikYpriDov0HGllsv5wDCpBnT2dS1Luz FNnXQumvBNcLJAWfNDC08M23LzDOoTt9Q8JkWWLPLL2qUDljmdi7c/UBzlflaFk9 Htwf8xk+LdOKWcCAOgUJBmBXEHO8x/QlP8eSrX/NqNK4bDyhjhGZOy3G8qd4ZPu/ ZEDBa5yOKuSOoV8aDN28+RF+3OTU7NiF4/0ynQ8jzCaxjXSk6dHNdlPEhscRIn0F Gv+sL3Phiq6GGUNed7FUQ8nBixd193SflwjplD11qtwsptKdjufhyULnjhG3rJRt yDZvEVH23BMsXyzcW+Tbdxm6ZZOOUl1GYUU7wS4+J7/5WpxzqrA85a+CF4LCZYPk ELNZ7Xz5SUd5pT1INFQnccGAd97dLal9e6HJZdpjvJ3MSICn6AHAZzR+2y4w0r+y mf0QHW11PptfVbO3u+RgJFrYwyH+xODHWau1Gmj17yUcS321FlVi+8S+3F+/KBWs pE9zBOQrOJtrzQ== =sQVY -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 04:43:05 2021 Received: (at 11883) by debbugs.gnu.org; 19 Dec 2021 09:43:05 +0000 Received: from localhost ([127.0.0.1]:44820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mysie-0003VQ-LD for submit@debbugs.gnu.org; Sun, 19 Dec 2021 04:43:04 -0500 Received: from kamnitnik.top ([209.250.245.214]:44352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mysic-0003V8-Tc for 11883@debbugs.gnu.org; Sun, 19 Dec 2021 04:43:03 -0500 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id 50A0B9CA87 for <11883@debbugs.gnu.org>; Sun, 19 Dec 2021 09:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1639906981; bh=MlW9j+TWdssv2WcQhW7I1EyqtNzwnnXBGIdo9U67AZo=; h=From:To:Subject:In-Reply-To:References:Date:From; b=lJjRLdiAYYVyBOKEkkwimyJpcDMlK4y3kQYEBJwlbp7ie4jHELXq9g+xaaWF8eanW /F0DoyNoC5rsffRIsWNRtSJHB6LtbzbmkY3roPK3kSOrqEn/ubDwJF3gfguUhGL7HZ X5ipxCQHP5Dz4XUrLt1Lgwn+C89GYMwxkE1Wdqj6tfqOkMdfTJooKz1ZA0StqLRbVQ NLD6aGb2BOJzKm32s40SNus4Hk1evmrgZwZAE2HZAFL/LLhjBHTlTAtMLZOyw7uqwC 4X3kRI7VFanpZ1L89rbw8kiwktqQ+c7sIPb/Vme8IefcnaZqqNws8Yd/1Lxw99bxwn cwxeC4d9Gj2KQ== From: miha@kamnitnik.top To: 11883@debbugs.gnu.org Subject: Re: bug#11883: 24.1.50; shell-mode doesn't colorize the prompt In-Reply-To: <878s27dvn6.fsf_-_@gnus.org> References: <87a9z9ec3k.fsf@shorty.local.i-did-not-set--mail-host-address--so-tickle-me> <20121106111243.3b2d7965@fatty> <878s27dvn6.fsf_-_@gnus.org> Date: Sun, 19 Dec 2021 10:48:29 +0100 Message-ID: <87lf0hncwi.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > Stefan Monnier writes: > >> The behavior you see is due to the following: >> - the prompt is highlighted with an overlay that uses >> a comint-highlight-prompt face. >> - [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 11883 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > Stefan Monnier writes: > >> The behavior you see is due to the following: >> - the prompt is highlighted with an overlay that uses >> a comint-highlight-prompt face. >> - [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Lars Ingebrigtsen writes: > Stefan Monnier writes: > >> The behavior you see is due to the following: >> - the prompt is highlighted with an overlay that uses >> a comint-highlight-prompt face. >> - "the prompt" is determined dynamically as "the last >> non-line-terminated output of the process". >> - the ansi-color escapes used to be applied using overlays but are now >> applied using text-properties. >> >> When you use ansi escapes to color the prompt, you clearly have >> a conflict with the comint-highlight-prompt face that is to be used for >> the prompt. > > The following simple tweak seems to fix the reported issue: > > diff --git a/lisp/comint.el b/lisp/comint.el > index 9e406614b9..3dfb269de4 100644 > --- a/lisp/comint.el > +++ b/lisp/comint.el > @@ -2157,9 +2157,9 @@ comint-output-filter > 'comint-highlight-prompt)) > (setq comint-last-prompt > (cons (copy-marker prompt-start) (point-marker))) > - (font-lock-prepend-text-property prompt-start (point) > - 'font-lock-face > - 'comint-highlight-prompt) > + (font-lock-append-text-property prompt-start (point) > + 'font-lock-face > + 'comint-highlight-prompt) > (add-text-properties prompt-start (point) > `(rear-nonsticky > ,comint--prompt-rear-nonsticky))) > Sorry for late reply. I believe an analogous change should be made in the function comint-snapshot-last-prompt: diff --git a/lisp/comint.el b/lisp/comint.el index 5f99f560cf..3decb80ff0 100644 =2D-- a/lisp/comint.el +++ b/lisp/comint.el @@ -2036,7 +2036,7 @@ comint-snapshot-last-prompt Freezes the `font-lock-face' text property in place." (when comint-last-prompt (with-silent-modifications =2D (font-lock-prepend-text-property + (font-lock-append-text-property (car comint-last-prompt) (cdr comint-last-prompt) 'font-lock-face 'comint-highlight-prompt)) > That is, we don't overwrite the ANSI face properties. > > I guess this might also avoid overwriting properties in prompts that use > ANSI codes? Which might also be nice. > > Would this regress anything? Anybody got an opinion? > > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmG+/+0THG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZPy++D/4hnqql2Zi3W1sQMK7FBcv+16NROA1C K0jjyplHZO65CzveUuzm6KKgCP7O+heZ3FlpUMQXpOgsqmdWX/8mD9mL2LCiviOo EwjuTtKL5jscfLjb5gn1KA0HmHspFSE4AgXEwUwI6abq7smvSISZ7OZOIbCZ6foe uHG/FnxHFamPcC2QAUmrWXkpuD4oAFJdkUvV0oIU2K17cqceuDmG2GNSq2aQvm9a CKuVeXlfdfEvAgKJUWesaAh85eqeQ7UVV58S9Un2UIMF42e621+aNPf40EFsjvIp hStQ9bvtaWPLwlWVNyd0xb4qH8GpuctnJcnYoq4U6HCDTT6/ISvYAuw2FPd/bOOG Q5ImbXxueCBYjxSycvDJzinlOt0eqEFqre5iccvVK0rzLiCv3gRHvarMXY+1PrDR Ak/SPL0n/qrtEwJ0KrwStlqs1oFT3nfrqJvnqnDv1ewCd2RmVh4XYCrVFLjkCQb0 VDGF6+3qpltE9I/CI1rDuAOLebuq7kb0fiWyEaqLYmYBAEPtPs7TCxwQULNlFkAs dfrotkeb2Lq0fbWMH/AyRHDiO+B2KWpV//0PrLdxkUf2i1dnWExuY4Wr6gyiMBdX TfGSw38PDyBvTffFcKR/JOw0ssXQxF1FsEE6JEq5cFGc3uSTbWXrekPGg+F6te6m dorMf7AsoLkO4w== =SEVr -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 06:02:44 2021 Received: (at 11883) by debbugs.gnu.org; 19 Dec 2021 11:02:44 +0000 Received: from localhost ([127.0.0.1]:44863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mytxk-0005X4-Ms for submit@debbugs.gnu.org; Sun, 19 Dec 2021 06:02:44 -0500 Received: from quimby.gnus.org ([95.216.78.240]:39888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mytxi-0005Wp-R8 for 11883@debbugs.gnu.org; Sun, 19 Dec 2021 06:02:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oQ2oUTink2iQDL1OulMePwstvkUjuh55sKztfCRGOmo=; b=I7PtpoXUpV9YaGNk37PMJelns4 FKIQTbo9VSVTrBunxOXxjjha5k49w73ZGkYCDu3gb2CZYJA1E/Bwqw+XF8i8g5yW3hzmhlPI6IZse cSMBdNAmq2zpjTmmk7lNvsL+bUoAqI4WheR328RHUOoLVoyPlPMcWsY31wgTs+YhMM6U=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mytxZ-0002xr-MA; Sun, 19 Dec 2021 12:02:36 +0100 From: Lars Ingebrigtsen To: miha@kamnitnik.top Subject: Re: bug#11883: 24.1.50; shell-mode doesn't colorize the prompt References: <87a9z9ec3k.fsf@shorty.local.i-did-not-set--mail-host-address--so-tickle-me> <20121106111243.3b2d7965@fatty> <878s27dvn6.fsf_-_@gnus.org> <87lf0hncwi.fsf@miha-pc> X-Now-Playing: John and Beverley Martyn's _The Road to Ruin_: "Road To Run" Date: Sun, 19 Dec 2021 12:02:30 +0100 In-Reply-To: <87lf0hncwi.fsf@miha-pc> (miha@kamnitnik.top's message of "Sun, 19 Dec 2021 10:48:29 +0100") Message-ID: <8735moyi0p.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: miha@kamnitnik.top writes: > Sorry for late reply. I believe an analogous change should be made in > the function comint-snapshot-last-prompt: Thanks; applied to master. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 11883 Cc: 11883@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) miha@kamnitnik.top writes: > Sorry for late reply. I believe an analogous change should be made in > the function comint-snapshot-last-prompt: Thanks; applied to master. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Sep 07 21:36:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 16 Jan 2022 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator