From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Trying to disable the fontification of strings in fundamental-mode Date: Thu, 11 Sep 2008 21:30:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <18fb6c75-7414-4372-8626-3b6e46f3580b@e39g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221194476 8866 80.91.229.12 (12 Sep 2008 04:41:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2008 04:41:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 12 06:42:12 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 1Ke0Tq-0003fH-VC for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2008 06:42:03 +0200 Original-Received: from localhost ([127.0.0.1]:34287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ke0Sq-000866-DV for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2008 00:41:00 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e39g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 60.234.132.53 Original-X-Trace: posting.google.com 1221193856 2749 127.0.0.1 (12 Sep 2008 04:30:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 12 Sep 2008 04:30:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e39g2000hsf.googlegroups.com; posting-host=60.234.132.53; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162121 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:57464 Archived-At: I am trying to turn off the fonfication of strings in fundamental mode. The following code appears to turn it off in *all* modes, not just fundamental mode. What do I need to do to restrict the suppressing of the fontification of strings to just fundamental mode? (defadvice fundamental-mode (before my-remove-strings activate) (if (eq major-mode 'fundamental- mode) (setq font-lock-string-face nil))) (defadvice fundamental-mode (after my-remove-strings activate) (if (eq major-mode 'fundamental- mode) (setq font-lock-string-face nil)))