emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dockerfile-mode a690935648 055/104: Make no attempt to sup


From: ELPA Syncer
Subject: [nongnu] elpa/dockerfile-mode a690935648 055/104: Make no attempt to support antiquated Emacsen < 24
Date: Sat, 29 Jan 2022 07:58:34 -0500 (EST)

branch: elpa/dockerfile-mode
commit a690935648df49cda0cbd2b6e88d25cbd620752e
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Make no attempt to support antiquated Emacsen < 24
---
 dockerfile-mode.el | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dockerfile-mode.el b/dockerfile-mode.el
index 2c30a465f6..678be1a14c 100644
--- a/dockerfile-mode.el
+++ b/dockerfile-mode.el
@@ -1,6 +1,7 @@
 ;;; dockerfile-mode.el --- Major mode for editing Docker's Dockerfiles
 
 ;; Copyright (c) 2013 Spotify AB
+;; Package-Requires: ((emacs "24"))
 ;;
 ;; Licensed under the Apache License, Version 2.0 (the "License"); you may not
 ;; use this file except in compliance with the License. You may obtain a copy 
of
@@ -142,12 +143,8 @@ file name. Otherwise, uses Emacs' standard conversion 
function."
        "*docker-build-output*")
     (print "docker-image-name must be a string, consider surrounding it with 
double quotes")))
 
-;; Handle emacs < 24, which does not have prog-mode
-(defalias 'dockerfile-parent-mode
-  (if (fboundp 'prog-mode) 'prog-mode 'fundamental-mode))
-
 ;;;###autoload
-(define-derived-mode dockerfile-mode dockerfile-parent-mode "Dockerfile"
+(define-derived-mode dockerfile-mode prog-mode "Dockerfile"
   "A major mode to edit Dockerfiles.
 \\{dockerfile-mode-map}
 "



reply via email to

[Prev in Thread] Current Thread [Next in Thread]