From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [mmaug@yahoo.com: font-lock applied to comint prompts] Date: Wed, 29 Nov 2006 22:21:21 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1164857189 11606 80.91.229.2 (30 Nov 2006 03:26:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2006 03:26:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 30 04:26:25 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpcZ0-000699-8x for ged-emacs-devel@m.gmane.org; Thu, 30 Nov 2006 04:26:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpcYz-0005ko-OP for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 22:26:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpcUH-0008VF-Am for emacs-devel@gnu.org; Wed, 29 Nov 2006 22:21:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpcUF-0008Tn-UO for emacs-devel@gnu.org; Wed, 29 Nov 2006 22:21:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpcUF-0008Tc-OF for emacs-devel@gnu.org; Wed, 29 Nov 2006 22:21:23 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GpcUE-0006mX-Sr for emacs-devel@gnu.org; Wed, 29 Nov 2006 22:21:23 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.52) id 1GpcUD-0006a2-St; Wed, 29 Nov 2006 22:21:22 -0500 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63101 Archived-At: [I sent this message a week ago but did not get a response.] It's possible that this is something that fundamentally cannot be fixed, but maybe not. Would someone please take a look, DTRT, and then ack? ------- Start of forwarded message ------- To: emacs-pretest-bug@gnu.org From: Michael Mauger Date: Mon, 20 Nov 2006 21:04:08 +0000 (UTC) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: font-lock applied to comint prompts X-Spam-Status: No, score=2.2 required=5.0 tests=FORGED_YAHOO_RCVD autolearn=no version=3.0.4 Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: * emacs -Q * M-x shell RET (assuming sh-type command interpreter) * in *shell* buffer: $ PS1='x -y $ ' x -y $ ls -l >/dev/null x -y $ Once the ls command is entered on the second line, the -y in the prompt gets highlighted the same way that the -l in the ls command gets highlighted. doing `C-u C-x =' on the `y' in the prompt on the last line gives: character: y (121, #o171, #x79, U+0079) charset: ascii (ASCII (ISO646 IRV)) code point: #x79 syntax: w which means: word category: a:ASCII l:Latin buffer code: #x79 file code: #x79 (encoded by coding system iso-latin-1-unix) display: by this font (glyph code) -outline-Bitstream Vera Sans Mono-normal-i-normal-normal-11-82-96-96-c-*- iso8859-1 (#x79) There is an overlay here: From 240 to 247 font-lock-face comint-highlight-prompt There are text properties here: face font-lock-comment-face field output fontified t inhibit-line-move-field-capture t rear-nonsticky t Doing the same on the second, now fontified, prompt gives: character: y (121, #o171, #x79, U+0079) charset: ascii (ASCII (ISO646 IRV)) code point: #x79 syntax: w which means: word category: a:ASCII l:Latin buffer code: #x79 file code: #x79 (encoded by coding system iso-latin-1-unix) display: by this font (glyph code) -outline-Bitstream Vera Sans Mono-normal-r-normal-normal-11-82-96-96-c-*- iso8859-1 (#x79) There are text properties here: face font-lock-comment-face field output font-lock-face comint-highlight-prompt fontified t inhibit-line-move-field-capture t rear-nonsticky t I've seen this in other comint-like buffers as well (*sql*). Is there a way to protect/prevent the prompt string from being font-lock'd? If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file c:/emacs/etc/DEBUG for instructions. In GNU Emacs 22.0.90.1 (i386-mingw-nt5.1.2600) of 2006-11-16 on ASSHOLE1 X server distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.2) --cflags - Ic:/devel/GnuWin32/include --ldflags -Lc:/devel/GnuWin32/lib - Lc:/devel/GnuWin32/bin' 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: ENU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: auto-insert-mode: t server-mode: t show-paren-mode: t recentf-mode: t global-hl-line-mode: t hl-line-mode: t cua-mode: t shell-dirtrack-mode: t encoded-kbd-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: s P S 1 = ' i f SPC $ ' M-p SPC l s SPC c a t SPC < / d e v / n u l l i f SPC M-p M-p - M-p M-p M-p M-p c a t SPC M-p M-p Recent messages: Char: Q (81, #o121, #x51) point=4941 of 4944 (100%) column=1 History item: 1 [2 times] History item: 2 History item: 1 History item: 2 History item: 1 History item: 2 History item: 1 History item: 2 Loading emacsbug...done _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug ------- End of forwarded message -------