]> git.eshelyaron.com Git - emacs.git/commitdiff
; Delete redundant defvars; font-lock is preloaded
authorStefan Kangas <stefankangas@gmail.com>
Thu, 24 Aug 2023 23:40:20 +0000 (01:40 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 25 Aug 2023 21:54:51 +0000 (23:54 +0200)
20 files changed:
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/pp.el
lisp/gnus/gnus-cite.el
lisp/gnus/mm-view.el
lisp/mail/rmail.el
lisp/org/org.el
lisp/progmodes/cperl-mode.el
lisp/progmodes/f90.el
lisp/progmodes/idlw-help.el
lisp/progmodes/idlwave.el
lisp/progmodes/sh-script.el
lisp/progmodes/sql.el
lisp/textmodes/reftex-ref.el
lisp/textmodes/reftex.el
lisp/textmodes/tex-mode.el
lisp/vc/cvs-status.el
lisp/vc/smerge-mode.el
lisp/vc/vc-git.el
lisp/vc/vc-hg.el
lisp/woman.el

index 3bf9a2f10db8b182a0ad74e59337c028acd797b0..b1fc65b09ac2d6190e675795521bf9d21a44dd37 100644 (file)
 (eval-when-compile (require 'cl-lib))
 (eval-when-compile (require 'subr-x))
 
-(defvar font-lock-comment-face)
-(defvar font-lock-doc-face)
-(defvar font-lock-keywords-case-fold-search)
-(defvar font-lock-string-face)
-
 (define-abbrev-table 'lisp-mode-abbrev-table ()
   "Abbrev table for Lisp mode.")
 
index 95ad222cc4d9136241328d49b796de65c367bd55..50e0e7d1da4164c229e8d3536c34f160d0462fa6 100644 (file)
@@ -25,7 +25,6 @@
 ;;; Code:
 
 (require 'cl-lib)
-(defvar font-lock-verbose)
 
 (defgroup pp nil
   "Pretty printer for Emacs Lisp."
index d9071491ed42911c5b369a97f01f3b6be2369cef..a3c24ea05d9f60fce0f95435db936d2b9ed4a021 100644 (file)
@@ -1117,12 +1117,6 @@ Returns nil if there is no such line before LIMIT, t otherwise."
           (setq count (1+ count)))))) ;;
   "Keywords for highlighting different levels of message citations.")
 
-(defvar font-lock-defaults-computed)
-(defvar font-lock-keywords)
-(defvar font-lock-set-defaults)
-
-(autoload 'font-lock-set-defaults "font-lock")
-
 (define-minor-mode gnus-message-citation-mode
   "Minor mode providing more font-lock support for nested citations.
 When enabled, it automatically turns on `font-lock-mode'."
index 2c4073535596fc89a70aace7a328e784530c3ab2..47d2b5f57e61f7f791c1f7d4910139d413b75310 100644 (file)
@@ -487,8 +487,6 @@ after inserting the part."
             (let ((inhibit-read-only t))
               (delete-region beg end)))))))))
 
-;; Shut up byte-compiler.
-(defvar font-lock-mode-hook)
 (defun mm-display-inline-fontify (handle &optional mode)
   "Insert HANDLE inline fontifying with MODE.
 If MODE is not set, try to find mode automatically."
index 716848dc34fb1a25438c07c65d04ec53a5573439..f76600000c98f1707174e3f49d82e323d9391db2 100644 (file)
@@ -1,7 +1,6 @@
 ;;; rmail.el --- main code of "RMAIL" mail reader for Emacs  -*- lexical-binding:t -*-
 
-;; Copyright (C) 1985-1988, 1993-1998, 2000-2023 Free Software
-;; Foundation, Inc.
+;; Copyright (C) 1985-2023 Free Software Foundation, Inc.
 
 ;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: mail
@@ -90,7 +89,6 @@
 its character representation and its display representation.")
 
 (defvar deleted-head)
-(defvar font-lock-fontified)
 (defvar mail-abbrev-syntax-table)
 (defvar mail-abbrevs)
 (defvar messages-head)
index 175e095e80672f77e5b41caaa56082c20b7ae31f..f56aa4f6f69d83dc0b157fa09b83a7e2a541ced2 100644 (file)
@@ -3760,7 +3760,6 @@ This is needed for font-lock setup.")
 (defvar calc-embedded-close-formula)
 (defvar calc-embedded-open-formula)
 (defvar calc-embedded-open-mode)
-(defvar font-lock-unfontify-region-function)
 (defvar org-agenda-tags-todo-honor-ignore-options)
 (defvar remember-data-file)
 (defvar texmathp-why)
index 75ea81d55a4b55ff0b25a0b66f29d3bac54fd8d2..98943ebda3fedc3b2166f21149830c95adad6789 100644 (file)
@@ -8834,8 +8834,6 @@ start with default arguments, then refine the slowdown regions."
       (message "to %s:%6s,%7s" l delta tot))
     tot))
 
-(defvar font-lock-cache-position)
-
 (defun cperl-emulate-lazy-lock (&optional window-size)
   "Emulate `lazy-lock' without `condition-case', so `debug-on-error' works.
 Start fontifying the buffer from the start (or end) using the given
index deccc75b1563f880f89082ed5705522fcce45f34..815c73522815fc11f061ea856878cf65c37eca31 100644 (file)
 ;; 3. Labels for "else" statements (F2003)?
 
 (defvar comment-auto-fill-only-comments)
-(defvar font-lock-keywords)
 
 ;; User options
 
index 2d08714b7cf78eb54fc0e9f74255e6f4efa3ae50..a57a0c32ac78b886b97bd53fca80683a3c39704f 100644 (file)
@@ -1141,7 +1141,6 @@ When DING is non-nil, ring the bell as well."
          (goto-char pos)
          (recenter 0)))))
 
-(defvar font-lock-verbose)
 (defvar idlwave-mode-syntax-table)
 (defvar idlwave-font-lock-defaults)
 (defun idlwave-help-fontify ()
index 7bdaa6b1b6f21c5a54a89285f62f45159f8bca3b..3c00046a26a370034ddfa9c47f539f6bb1cc457e 100644 (file)
@@ -5335,7 +5335,6 @@ directories and save the routine info.
        (idlwave-path-alist-remove-flag dir-entry 'user)))
     (idlwave-scan-user-lib-files path-alist)))
 
-(defvar font-lock-mode)
 (defun idlwave-scan-user-lib-files (path-alist)
   ;; Scan the PRO files in PATH-ALIST and store the info in the user catalog
   (let* ((idlwave-scanning-lib t)
index cfc108789220c4cc3b921022163bb40622d70032..ed4ea8e3618e80fafa9d8c2dc86c93a4a051dbb9 100644 (file)
@@ -1,7 +1,6 @@
 ;;; sh-script.el --- shell-script editing commands for Emacs  -*- lexical-binding:t -*-
 
-;; Copyright (C) 1993-1997, 1999, 2001-2023 Free Software Foundation,
-;; Inc.
+;; Copyright (C) 1993-2023 Free Software Foundation, Inc.
 
 ;; Author: Daniel Pfeiffer <occitan@esperanto.org>
 ;; Old-Version: 2.0f
 (autoload 'shell-command-completion "shell")
 (autoload 'shell-environment-variable-completion "shell")
 
-(defvar font-lock-comment-face)
-(defvar font-lock-set-defaults)
-(defvar font-lock-string-face)
-
 
 (defgroup sh nil
   "Shell programming utilities."
index 25eaab060c5b2e49dee1492a0c6eba59fd9e3855..004ae50ef5029e20166b5af2455602029033a8c3 100644 (file)
 (require 'view)
 (eval-when-compile (require 'subr-x))   ; string-empty-p
 
-(defvar font-lock-keyword-face)
-(defvar font-lock-set-defaults)
-(defvar font-lock-string-face)
-
 ;;; Allow customization
 
 (defgroup SQL nil
index d0a44eca17c4b39ee7145e739a7cd0b66f798406..64cf3fa4bbbd4ecd5b726fd4dabf2cbf55fc058a 100644 (file)
@@ -781,7 +781,6 @@ When called with 2 \\[universal-argument] prefix args, disable magic word recogn
         (funcall errorf "Label %s not found" label))
       found)))
 
-(defvar font-lock-mode)
 (defun reftex-show-entry (beg-hlt end-hlt)
   ;; Show entry if point is hidden
   (let* ((n (/ (window-height) 2))
index 22efb52774005e74c9150942c0885896562b98b6..ae3ae1a198d5d4567474132ef962f2694c0f511a 100644 (file)
@@ -250,9 +250,6 @@ on the menu bar.
 (defvar LaTeX-label-function)
 (defvar tex-main-file)
 (defvar outline-minor-mode)
-(defvar font-lock-mode)
-(defvar font-lock-keywords)
-(defvar font-lock-fontify-region-function)
 
 ;;; =========================================================================
 ;;;
@@ -2035,7 +2032,6 @@ IGNORE-WORDS List of words which should be removed from the string."
                 ;; Test of we use the font-lock version of x-symbol
                 (and (featurep 'x-symbol-tex) (not (boundp 'x-symbol-mode)))))))
 
-(defvar font-lock-defaults-computed)
 (defun reftex-fontify-select-label-buffer (parent-buffer)
   ;; Fontify the `*RefTeX Select*' buffer.  Buffer is temporarily renamed to
   ;; start with none-SPC char, because Font-Lock otherwise refuses operation.
index 294c9792f39c5b86c5ec92cf174e2997a55f3695..41c4a6a137319f8bb5c42b449969be0c707fe45a 100644 (file)
@@ -1,7 +1,6 @@
 ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands  -*- lexical-binding:t -*-
 
-;; Copyright (C) 1985-1986, 1989, 1992, 1994-1999, 2001-2023 Free
-;; Software Foundation, Inc.
+;; Copyright (C) 1985-2023 Free Software Foundation, Inc.
 
 ;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: tex
@@ -33,9 +32,6 @@
   (require 'cl-lib)
   (require 'skeleton))
 
-(defvar font-lock-comment-face)
-(defvar font-lock-doc-face)
-
 (require 'shell)
 (require 'compile)
 
index 30296573796fa6e07e4da40624c1f2131835069f..7532a059d3b9eff28af51fb3e3ee58deaa11e8cf 100644 (file)
@@ -352,7 +352,6 @@ the list is a three-string list TAG, KIND, REV."
        (delete-region pt (point)))
       tags)))
 
-(defvar font-lock-mode)
 ;; (defun cvs-refontify (beg end)
 ;;   (when font-lock-mode
 ;;     (font-lock-fontify-region (1- beg) (1+ end))))
index c39a9cc2f224d5ba2835fa5a5bba50f06621233b..7847a6c7670fb7ff1be3b1e5a2232f2021724ac2 100644 (file)
@@ -255,10 +255,6 @@ Can be nil if the style is undecided, or else:
 - `diff3-E'
 - `diff3-A'")
 
-;; Compiler pacifiers
-(defvar font-lock-mode)
-(defvar font-lock-keywords)
-
 ;;;;
 ;;;; Actual code
 ;;;;
index a7763360795fc0c144ad3b1809832df748179819..c689eec444b355c6f6c26eee09ec5de214f7ab67 100644 (file)
@@ -1631,7 +1631,6 @@ This requires git 1.8.4 or later, for the \"-L\" option of \"git log\"."
     map))
 
 (defvar vc-git--log-view-long-font-lock-keywords nil)
-(defvar font-lock-keywords)
 (defvar vc-git-region-history-font-lock-keywords
   '((vc-git-region-history-font-lock)))
 
index 182d76882bb96027295328b6969bbc01cdeaf64d..b62420393aa5b987d3f3691abc18797174735dc8 100644 (file)
@@ -497,7 +497,6 @@ This requires hg 4.4 or later, for the \"-L\" option of \"hg log\"."
     map))
 
 (defvar vc-hg--log-view-long-font-lock-keywords nil)
-(defvar font-lock-keywords)
 (defvar vc-hg-region-history-font-lock-keywords
   '((vc-hg-region-history-font-lock)))
 
index e4e3d176d084499bb64291d582e4e9a4168b2873..e0af72b2b66469c220464a065ac803515d472e96 100644 (file)
@@ -2081,8 +2081,6 @@ European characters."
 \f
 ;;; The main decoding driver:
 
-(defvar font-lock-mode)                        ; for the compiler
-
 (defun woman-decode-buffer ()
   "Decode a buffer in UN*X man-page source format.
 No external programs are used."