]> git.eshelyaron.com Git - emacs.git/commitdiff
Delete some Emacs 19/21 compat code
authorStefan Kangas <stefankangas@gmail.com>
Sun, 20 Aug 2023 12:29:27 +0000 (14:29 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 20 Aug 2023 16:39:51 +0000 (18:39 +0200)
* lisp/erc/erc-goodies.el (erc-occur):
* lisp/net/newst-plainview.el (newsticker--buffer-redraw): Delete
Emacs 21 compat code.
* lisp/progmodes/sql.el (sql-accumulate-and-indent): Delete Emacs
19 compat code.

lisp/erc/erc-goodies.el
lisp/net/newst-plainview.el
lisp/progmodes/sql.el

index d9ededa8e6867b71083cb71e8f9ea7046f2a8e57..b37855cbecc3d17be6a180cac216ebec41b3aaf8 100644 (file)
@@ -800,9 +800,7 @@ servers.  If called from a program, PROC specifies the server process."
    (list (read-string "Search for: ")
          (if current-prefix-arg
              nil erc-server-process)))
-  (if (fboundp 'multi-occur)
-      (multi-occur (erc-buffer-list nil proc) string)
-    (error "`multi-occur' is not defined as a function")))
+  (multi-occur (erc-buffer-list nil proc) string))
 
 (provide 'erc-goodies)
 
index b284ca84bfc836d41e6b4b0a4fb8fa0e7d173d98..55fa19cbf2a22b0619aaa573bea69de7ceef1063 100644 (file)
@@ -1175,9 +1175,7 @@ The mode-line is changed accordingly."
 
 (defun newsticker--buffer-redraw ()
   "Redraw the newsticker window."
-  (if (fboundp 'force-window-update)
-      (force-window-update (current-buffer))
-    (redraw-frame))
+  (force-window-update (current-buffer))
   (run-hooks 'newsticker-buffer-change-hook)
   (sit-for 0))
 
index 279285b93263a2d1be616dcfbade94d2ef7777af..61c8525b77aeb00a61cd0c0b40274a1793a6183e 100644 (file)
@@ -3096,9 +3096,7 @@ displayed."
 (defun sql-accumulate-and-indent ()
   "Continue SQL statement on the next line."
   (interactive)
-  (if (fboundp 'comint-accumulate)
-      (comint-accumulate)
-    (newline))
+  (comint-accumulate)
   (indent-according-to-mode))
 
 (defun sql-help-list-products (indent freep)