1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Delete redundant declarations of 'electric' variables

* lisp/progmodes/js.el (electric-layout-rules):
* lisp/progmodes/octave.el (electric-layout-rules):
* lisp/progmodes/python.el (electric-indent-inhibit):
* lisp/textmodes/rst.el (electric-indent-inhibit): Delete redundant
declarations; 'electric' is preloaded since Emacs 24.4.
This commit is contained in:
Stefan Kangas 2024-09-21 14:44:06 +02:00
parent 3cad879c9d
commit dac1a48240
4 changed files with 0 additions and 6 deletions

View File

@ -62,7 +62,6 @@
(require 'rx))
(defvar ido-cur-list)
(defvar electric-layout-rules)
(declare-function ido-mode "ido" (&optional arg))
(declare-function treesit-parser-create "treesit.c")
(declare-function treesit-induce-sparse-tree "treesit.c")

View File

@ -536,8 +536,6 @@ Non-nil means always go to the next Octave code line after sending."
(put-text-property (match-beginning 1) (match-end 1)
'syntax-table (string-to-syntax "\"'")))))
(defvar electric-layout-rules)
;; FIXME: cc-mode.el also adds an entry for .m files, mapping them to
;; objc-mode. We here rely on the fact that loaddefs.el is filled in
;; alphabetical order, so cc-mode.el comes before octave-mode.el, which lets

View File

@ -7050,7 +7050,6 @@ Add import for undefined name `%s' (empty to skip): "
(eq (char-after) last-command-event))
(save-excursion (insert (make-string 2 last-command-event)))))
(defvar electric-indent-inhibit)
(defvar prettify-symbols-alist)
(defvar python--installed-grep-hook nil)

View File

@ -1323,8 +1323,6 @@ The hook for `text-mode' is run before this one."
;; Pull in variable definitions silencing byte-compiler.
(require 'newcomment)
(defvar electric-indent-inhibit)
;; Use rst-mode for *.rst and *.rest files. Many ReStructured-Text files
;; use *.txt, but this is too generic to be set as a default.
;;;###autoload (add-to-list 'auto-mode-alist (purecopy '("\\.re?st\\'" . rst-mode)))