Commit 5cc59a37 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

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.
parent 15562805
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* 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 <cyd@gnu.org> 2012-02-06 Chong Yidong <cyd@gnu.org>
* simple.el (list-processes--refresh): Delete exited processes * simple.el (list-processes--refresh): Delete exited processes
......
...@@ -1155,7 +1155,8 @@ Note that the style variables are always made local to the buffer." ...@@ -1155,7 +1155,8 @@ Note that the style variables are always made local to the buffer."
;; `c-set-fl-decl-start' for the detailed functionality. ;; `c-set-fl-decl-start' for the detailed functionality.
(cons (c-set-fl-decl-start beg) end)) (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'") "Standard value of `font-lock-fontify-region-function'")
(defun c-font-lock-fontify-region (beg end &optional verbose) (defun c-font-lock-fontify-region (beg end &optional verbose)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment