logo       


src/tools/elisp dylan-mode.el,1.12,1.13: msg#00445

Subject: src/tools/elisp dylan-mode.el,1.12,1.13
Update of /var/lib/cvs/src/tools/elisp
In directory cantor:/tmp/cvs-serv31124

Modified Files:
        dylan-mode.el 
Log Message:
Bug: 7061

Make sure font-lock-dont-widen (only available post-21.3) is defined
before attempting to use it.


Index: dylan-mode.el
===================================================================
RCS file: /var/lib/cvs/src/tools/elisp/dylan-mode.el,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- dylan-mode.el       29 May 2004 08:45:40 -0000      1.12
+++ dylan-mode.el       27 Jun 2004 00:10:50 -0000      1.13
@@ -1182,6 +1182,18 @@
     (make-local-variable 'font-lock-syntax-table)
     (setq font-lock-syntax-table dylan-indent-syntax-table))
   (set-syntax-table dylan-indent-syntax-table)
+  
+  ;; font-lock-dont-widen is a feature in the post-21.3 version of emacs, so
+  ;; make sure it exists before attempting to use it. As I am writing this,
+  ;; 21.3 is the current version and this variable only exists in development
+  ;; builds. Unfortunately, if it doesn't exist, we don't get proper
+  ;; suppression of interchange file header fontification, but defining our
+  ;; own at least makes dylan-font-lock-fontify-region silently overlook this
+  ;; rather than fail with an "undefined variable" error.
+  (unless (boundp 'font-lock-dont-widen)
+    (make-local-variable 'font-lock-dont-widen)
+    (setq font-lock-dont-widen nil))
+  
   (make-local-variable 'indent-line-function)
   (setq indent-line-function 'dylan-indent-line)
   (make-local-variable 'comment-start)


_______________________________________________
Gd-chatter mailing list
Gd-chatter@xxxxxxxxxxxxxxxx
http://www.gwydiondylan.org/mailman/listinfo/gd-chatter



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe