From cb86ad9c3bb5a4b2a5e2aba908df825587930a7b Mon Sep 17 00:00:00 2001 From: maechler Date: Thu, 17 Jan 2008 08:51:27 +0000 Subject: [PATCH] Fix ess-noweb-font-lock (aka "*.Rnw") problem of "emacs -nw" && Emacs 22 git-svn-id: https://svn.r-project.org/ESS/trunk@3841 0bbaf3bd-34e0-0310-bf65-c717079852d4 --- doc/newfeat.texi | 1 + lisp/ChangeLog | 5 +++++ lisp/ess-noweb.el | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/newfeat.texi b/doc/newfeat.texi index 06e9ddeb..05c4b304 100644 --- a/doc/newfeat.texi +++ b/doc/newfeat.texi @@ -9,6 +9,7 @@ which controls whether font-locking is enabled in ESS buffers. a more consistent handling of SAS options by @code{ess-sas-submit-command-options} which is buffer-local; portable snooze for MS Windows via customize-able @code{ess-sleep-for} (floats welcome) +@item @ESS{[Rnw]}: now also works with ``emacs -nw'' and Emacs 22. @end itemize Changes/New Features in 5.3.6: diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 34e28027..8fb5fc83 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-01-17 Martin Maechler + + * ess-noweb.el (ess-noweb-use-font-lock): change default + from window-system to font-lock-mode + 2008-01-08 Martin Maechler * essl-s.el (ess-fix-miscellaneous): no 'literal in fixing "; #" diff --git a/lisp/ess-noweb.el b/lisp/ess-noweb.el index e18fe70a..54a0a41e 100644 --- a/lisp/ess-noweb.el +++ b/lisp/ess-noweb.el @@ -36,10 +36,12 @@ ; Requires and autoloads (require 'noweb-mode) +;; still needed when user turns font-lock-mode *on* (from initial off): +(autoload 'noweb-font-lock-mode "noweb-font-lock-mode") ; Variables -(defvar ess-noweb-use-font-lock window-system +(defvar ess-noweb-use-font-lock font-lock-mode "Set to t if you want to use font-locking in ESS noweb buffers.") ;; this helps with XEmacs barfing, sigh... -- 2.11.4.GIT