[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r107149: Allow calling C fontificatio
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r107149: Allow calling C fontification while rendering MIME parts |
Date: |
Mon, 06 Feb 2012 23:08:41 +0100 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 107149
committer: Lars Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Mon 2012-02-06 23:08:41 +0100
message:
Allow calling C fontification while rendering MIME parts
* progmodes/cc-mode.el
(c-standard-font-lock-fontify-region-function): Set the default at
load time, too, so that `font-lock-fontify-buffer' can be called
without setting up the entire mode first. This fixes a bug in
`mm-inline-text' with C MIME parts.
modified:
lisp/ChangeLog
lisp/progmodes/cc-mode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2012-02-06 14:40:10 +0000
+++ b/lisp/ChangeLog 2012-02-06 22:08:41 +0000
@@ -1,3 +1,11 @@
+2012-02-06 Lars Ingebrigtsen <address@hidden>
+
+ * progmodes/cc-mode.el
+ (c-standard-font-lock-fontify-region-function): Set the default at
+ load time, too, so that `font-lock-fontify-buffer' can be called
+ without setting up the entire mode first. This fixes a bug in
+ `mm-inline-text' with C MIME parts.
+
2012-02-06 Chong Yidong <address@hidden>
* simple.el (list-processes--refresh): Delete exited processes
=== modified file 'lisp/progmodes/cc-mode.el'
--- a/lisp/progmodes/cc-mode.el 2012-01-19 07:21:25 +0000
+++ b/lisp/progmodes/cc-mode.el 2012-02-06 22:08:41 +0000
@@ -1155,7 +1155,8 @@
;; `c-set-fl-decl-start' for the detailed functionality.
(cons (c-set-fl-decl-start beg) end))
-(defvar c-standard-font-lock-fontify-region-function nil
+(defvar c-standard-font-lock-fontify-region-function
+ (default-value 'font-lock-fontify-region-function)
"Standard value of `font-lock-fontify-region-function'")
(defun c-font-lock-fontify-region (beg end &optional verbose)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r107149: Allow calling C fontification while rendering MIME parts,
Lars Ingebrigtsen <=