mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Delete obsolete variable font-lock-maximum-size
* lisp/font-lock.el (font-lock-maximum-size): Delete variable obsolete since 24.1. (font-lock-initial-fontify): * lisp/mail/rmail.el (rmail-variables): * lisp/mh-e/mh-mime.el (mh-small-show-buffer-p): Don't use above deleted variable. * lisp/font-core.el (font-lock-mode): * lisp/font-lock.el: * lisp/info.el: Don't mention above deleted variable.
This commit is contained in:
parent
5f8922b9e2
commit
76ca5f5ece
6 changed files with 10 additions and 53 deletions
|
|
@ -47,9 +47,9 @@
|
|||
;;
|
||||
;; Fontification for a particular mode may be available in a number of levels
|
||||
;; of decoration. The higher the level, the more decoration, but the more time
|
||||
;; it takes to fontify. See the variable `font-lock-maximum-decoration', and
|
||||
;; also the variable `font-lock-maximum-size'. Support modes for Font Lock
|
||||
;; mode can be used to speed up Font Lock mode. See `font-lock-support-mode'.
|
||||
;; it takes to fontify. See the variable `font-lock-maximum-decoration'.
|
||||
;; Support modes for Font Lock mode can be used to speed up Font Lock
|
||||
;; mode. See `font-lock-support-mode'.
|
||||
|
||||
;;;; How Font Lock mode fontifies:
|
||||
|
||||
|
|
@ -228,32 +228,6 @@
|
|||
|
||||
;; User variables.
|
||||
|
||||
(defcustom font-lock-maximum-size 256000
|
||||
"Maximum buffer size for unsupported buffer fontification.
|
||||
When `font-lock-support-mode' is nil, only buffers smaller than
|
||||
this are fontified. This variable has no effect if a Font Lock
|
||||
support mode (usually `jit-lock-mode') is enabled.
|
||||
|
||||
If nil, means size is irrelevant.
|
||||
If a list, each element should be a cons pair of the form (MAJOR-MODE . SIZE),
|
||||
where MAJOR-MODE is a symbol or t (meaning the default). For example:
|
||||
((c-mode . 256000) (c++-mode . 256000) (rmail-mode . 1048576))
|
||||
means that the maximum size is 250K for buffers in C or C++ modes, one megabyte
|
||||
for buffers in Rmail mode, and size is irrelevant otherwise."
|
||||
:type '(choice (const :tag "none" nil)
|
||||
(integer :tag "size")
|
||||
(repeat :menu-tag "mode specific" :tag "mode specific"
|
||||
:value ((t . nil))
|
||||
(cons :tag "Instance"
|
||||
(radio :tag "Mode"
|
||||
(const :tag "all" t)
|
||||
(symbol :tag "name"))
|
||||
(radio :tag "Size"
|
||||
(const :tag "none" nil)
|
||||
(integer :tag "size")))))
|
||||
:group 'font-lock)
|
||||
(make-obsolete-variable 'font-lock-maximum-size nil "24.1")
|
||||
|
||||
(defcustom font-lock-maximum-decoration t
|
||||
"Maximum decoration level for fontification.
|
||||
If nil, use the default decoration (typically the minimum available).
|
||||
|
|
@ -695,15 +669,9 @@ be enabled."
|
|||
;; The first fontification after turning the mode on. This must
|
||||
;; only be called after the mode hooks have been run.
|
||||
(when (and font-lock-mode
|
||||
(font-lock-specified-p t))
|
||||
(let ((max-size (font-lock-value-in-major-mode font-lock-maximum-size)))
|
||||
(cond (font-lock-fontified
|
||||
nil)
|
||||
((or (null max-size) (> max-size (buffer-size)))
|
||||
(with-no-warnings (font-lock-fontify-buffer)))
|
||||
(font-lock-verbose
|
||||
(message "Fontifying %s...buffer size greater than font-lock-maximum-size"
|
||||
(buffer-name)))))))
|
||||
(font-lock-specified-p t)
|
||||
(not font-lock-fontified))
|
||||
(with-no-warnings (font-lock-fontify-buffer))))
|
||||
|
||||
(defun font-lock-mode-internal (arg)
|
||||
;; Turn on Font Lock mode.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue