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: Re: Trying to disable the fontification of strings in fundamental-mode Date: Fri, 12 Sep 2008 19:57:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <18fb6c75-7414-4372-8626-3b6e46f3580b@e39g2000hsf.googlegroups.com> <5934d5fa-e5dc-42b4-9e60-dfe7a3927a79@i20g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1221277289 27545 80.91.229.12 (13 Sep 2008 03:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2008 03:41:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 13 05:42:25 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 1KeM1f-00019D-PW for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2008 05:42:23 +0200 Original-Received: from localhost ([127.0.0.1]:33334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeM0f-0001vS-3D for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2008 23:41:21 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a18g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: 60.234.132.53 Original-X-Trace: posting.google.com 1221274660 5353 127.0.0.1 (13 Sep 2008 02:57:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 13 Sep 2008 02:57:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a18g2000pra.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:162164 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:57506 Archived-At: I managed to get the following code to work: > (defadvice fundamental-mode (after my-remove-strings > activate) > =A0 (if (eq major-mode 'fundamental- > mode) > =A0 =A0 =A0 (set (make-variable-buffer-local 'font-lock-string-face) nil)= )) I don't see the problem about using advice. I use advice all of the time in Emacs.