From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Path to make desktop.el remember hi-lock-interactive-patterns Date: Tue, 12 May 2009 07:52:34 -0700 (PDT) Message-ID: <59779.130.55.118.19.1242139954.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1242139990 5446 80.91.229.12 (12 May 2009 14:53:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 14:53:10 +0000 (UTC) Cc: Emacs-Devel To: "Lennart Borgman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 12 16:53:00 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M3tLf-0005w5-80 for ged-emacs-devel@m.gmane.org; Tue, 12 May 2009 16:52:51 +0200 Original-Received: from localhost ([127.0.0.1]:54155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3tLe-0006ta-Mv for ged-emacs-devel@m.gmane.org; Tue, 12 May 2009 10:52:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3tLZ-0006rf-0D for emacs-devel@gnu.org; Tue, 12 May 2009 10:52:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3tLT-0006mw-Ot for emacs-devel@gnu.org; Tue, 12 May 2009 10:52:44 -0400 Original-Received: from [199.232.76.173] (port=46083 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3tLT-0006ml-BJ for emacs-devel@gnu.org; Tue, 12 May 2009 10:52:39 -0400 Original-Received: from proofpoint2.lanl.gov ([204.121.3.26]:49552) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3tLS-0005u5-KS for emacs-devel@gnu.org; Tue, 12 May 2009 10:52:38 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint2.lanl.gov (8.14.3/8.14.3) with ESMTP id n4CEqYdo015217; Tue, 12 May 2009 08:52:34 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 310AD1516E5; Tue, 12 May 2009 08:52:34 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 1DC581516DE; Tue, 12 May 2009 08:52:34 -0600 (MDT) Original-Received: by webmail1.lanl.gov (Postfix, from userid 48) id 184491518033; Tue, 12 May 2009 08:52:34 -0600 (MDT) Original-Received: from 130.55.118.19 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Tue, 12 May 2009 07:52:34 -0700 (PDT) In-Reply-To: User-Agent: SquirrelMail/1.4.8-5.3.lanl4 X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-05-12_08:2009-04-28, 2009-05-12, 2009-05-12 signatures=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:110832 Archived-At: > + ;; Hi-lock > + (when (and (boundp 'hi-lock-interactive-patterns) > + hi-lock-interactive-patterns > + hi-lock-mode) > + (font-lock-add-keywords nil hi-lock-interactive-patterns t) > + (font-lock-fontify-buffer)))))) It would be cleaner to invoke some function in hi-lock.el rather than going straight into font-lock. Moreover, hi-lock-mode already has a persistence mechanism; why does desktop need to additionally provide one that lasts only as long as you don't kill the buffer? Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.