From 093c1795d258fec1ffccecd5d400da255898d7eb Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Fri, 8 Jul 2016 11:31:06 +0900 Subject: [PATCH 1/3] Fix unused variable name for byte-compile warning --- puml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puml-mode.el b/puml-mode.el index 06b74d2..2f51d5a 100644 --- a/puml-mode.el +++ b/puml-mode.el @@ -213,7 +213,7 @@ default output type for new buffers." (process-send-region ps (point-min) (point-max)) (process-send-eof ps) (set-process-sentinel ps - (lambda (ps event) + (lambda (_ps event) (unless (equal event "finished\n") (error "PUML Preview failed: %s" event)) (cond From dca9fa42b6942da2769658753f182f59d98f0d4a Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Fri, 8 Jul 2016 11:32:08 +0900 Subject: [PATCH 2/3] Add autoload cookie to auto-mode-alist setting --- puml-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/puml-mode.el b/puml-mode.el index 2f51d5a..ff7d429 100644 --- a/puml-mode.el +++ b/puml-mode.el @@ -282,6 +282,7 @@ default output type for new buffers." (all-completions meat puml-plantuml-kwdList))) (message "Making completion list...%s" "done"))))) +;;;###autoload (add-to-list 'auto-mode-alist '("\\.pum$" . puml-mode)) ;;;###autoload From beb8900b107d66ac87e7f37c3ed8e5050109be57 Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Fri, 8 Jul 2016 14:09:40 +0900 Subject: [PATCH 3/3] Specify minimum Emacs version This is for using prog-mode and lexical-binding. --- puml-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/puml-mode.el b/puml-mode.el index ff7d429..a94e38a 100644 --- a/puml-mode.el +++ b/puml-mode.el @@ -7,6 +7,7 @@ ;; Maintainer: Carlo Sciolla (skuro) ;; Keywords: uml plantuml ascii ;; Version: 0.6.5 +;; Package-Requires: ((emacs "24")) ;; You can redistribute this program and/or modify it under the terms ;; of the GNU General Public License as published by the Free Software