From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kostas Oikonomou Newsgroups: gmane.emacs.help Subject: Re: text properties in tex mode Date: Sun, 05 Oct 2008 11:11:53 -0400 Message-ID: <48E8D939.5060303@att.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223226666 5569 80.91.229.12 (5 Oct 2008 17:11:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2008 17:11:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 05 19:12:00 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KmX7t-0002pt-R7 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2008 19:10:38 +0200 Original-Received: from localhost ([127.0.0.1]:33662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmX6q-0007Bk-EI for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2008 13:09:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmVH3-0003Wy-Bp for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 11:11:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmVH1-0003Wm-Hf for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 11:11:55 -0400 Original-Received: from [199.232.76.173] (port=57097 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmVH1-0003Wj-An for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 11:11:55 -0400 Original-Received: from mail-dark.research.att.com ([192.20.225.112]:32870 helo=mail-yellow.research.att.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KmVH0-0000Hx-Uk for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 11:11:55 -0400 Original-Received: from [135.207.38.75] (castle6075.research.att.com [135.207.38.75]) by bigmail.research.att.com (8.13.7+Sun/8.11.6) with ESMTP id m95FBrUT021580 for ; Sun, 5 Oct 2008 11:11:54 -0400 (EDT) User-Agent: Thunderbird 2.0.0.14 (X11/20080505) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sun, 05 Oct 2008 13:06:49 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58385 Archived-At: Harven, Thank you for the reply. > Thus any face you set is overwritten by the font-lock processing. > Disabling font-lock-mode (M-x font-lock-mode) brings back the menu > you are interested in, but you will lose the coloring provided by > latex-mode. I have indeed disabled font-lock mode everywhere by (global-font-lock-mode -1) in my init.el file. I don't mind losing font-lock coloring in my Latex buffer. But when I then do Edit -> Text Properties -> Background color, I get the error I posted. Are you saying above that this should not be happening? > Another solution would be to use overlays instead of faces for region highlighting. That's what use the highlight-regexp command; > this command highlight words matching a regexp. I think there is > an extension called highlight.el, by Drew Adams, which provides easy access to overlays. > Have a look at the wiki http://www.emacswiki.org/cgi-bin/wiki/HighLight I have looked at this, but it seems too complicated to me. Maybe because I don't know enough about Emacs. I would prefer to use the already-existing Edit -> Text Properties menu, unless it is not possible. Kostas