File 2274-Remove-redundant-function-prog-mode.patch of Package erlang
From ce0e5bd0f6f43eaf8851d9f36f42efd19e2dd5f0 Mon Sep 17 00:00:00 2001
From: Bozhidar Batsov <bozhidar@batsov.com>
Date: Thu, 15 Dec 2016 09:46:07 +0200
Subject: [PATCH 04/15] Remove redundant function prog-mode
---
lib/tools/emacs/erlang.el | 4 ----
1 file changed, 4 deletions(-)
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index 5558366b6..2a534ab75 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -1372,10 +1372,6 @@ replaced by `erlang-etags-tags-completion-table'.")
(called-interactively-p 'interactive)
(funcall (symbol-function 'interactive-p))))
-(unless (fboundp 'prog-mode)
- (defun prog-mode ()
- (use-local-map (make-keymap))))
-
;;;###autoload
(define-derived-mode erlang-mode prog-mode "Erlang"
"Major mode for editing Erlang source files in Emacs.
--
2.11.1