From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: robert.thorpe@antenova.com (Rob Thorpe) Newsgroups: gmane.emacs.help Subject: Re: C++ mode. Date: 28 May 2003 01:18:04 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1a61f7e5.0305280018.2e29ed38@posting.google.com> References: <1a61f7e5.0305270525.70dd3e8f@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054110260 5270 80.91.224.249 (28 May 2003 08:24:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 May 2003 08:24:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 28 10:24:13 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19KwDx-0001KW-00 for ; Wed, 28 May 2003 10:23:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19KwAo-0001C9-0W for gnu-help-gnu-emacs@m.gmane.org; Wed, 28 May 2003 04:20:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 212.135.40.163 Original-X-Trace: posting.google.com 1054109885 29884 127.0.0.1 (28 May 2003 08:18:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 28 May 2003 08:18:05 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:113778 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10273 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10273 K Hollingworth wrote in message news:... > Rob Thorpe wrote: > > K Hollingworth wrote in message news:... > >> According to emacs I have > >> > >> GNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit) of Fri Mar 16 2001 on > >> porky.devel.redhat.com > >> > >> I would like to customise c++ mode so that lines starting std::cerr are > >> marked in a different red as most of them are for debugging and it > >> would be nice to be able to spot them easily. Is this possible? It > >> would be acceptable to mark everything in the std namespace in red. > >> > >> I'm a bit of a newbie with emacs so apologies as I don't know all the > >> terminology yet! > > > M-x highlight-phrase RET std:cerr RET > > > In the buffer when you need it would be what I would do. > > Do I need to load another package to get that? Emacs says "no match" > when I try that command and if I try matching "highlight" I only get the > following completions: > > highlight-changes-mode highlight-changes-next-change > highlight-changes-previous-change highlight-changes-remove-highlight > highlight-changes-rotate-faces highlight-compare-with-file Sorry about that, this function is new in Emacs 21 I hadn't noticed. Look for hi-lock.el if you can't use Emacs 21. I can't find it elsewhere I'm afraid. You probably could adapt C++ mode, but I don't know how.