[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/jinja2-mode 556ed3b80b 03/57: Remove messages
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/jinja2-mode 556ed3b80b 03/57: Remove messages |
Date: |
Mon, 17 Jan 2022 05:58:22 -0500 (EST) |
branch: elpa/jinja2-mode
commit 556ed3b80bc046af8c2261dbacc27e616925dfa9
Author: Florian Mounier <florian.mounier@kozea.fr>
Commit: Florian Mounier <florian.mounier@kozea.fr>
Remove messages
---
jinja2.el | 43 ++++++++++++++++++++++++++++++++++++-------
1 file changed, 36 insertions(+), 7 deletions(-)
diff --git a/jinja2.el b/jinja2.el
index 8c44718880..806e51f41e 100644
--- a/jinja2.el
+++ b/jinja2.el
@@ -1,3 +1,29 @@
+;; Jinja2 mode for emacs
+;; Copyright (C) 2011 Florian Mounier aka paradoxxxzero
+
+;; This program is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;; Author: Florian Mounier aka paradoxxxzero
+;; Description :
+;; This is an emacs major mode for jinja2 with:
+;; syntax highlighting
+;; sgml/html integration
+;; indentation (working with sgml)
+;; more to come
+
+;; This file comes from http://github.com/paradoxxxzero/jinja2-mode
+
(require 'sgml-mode)
(defvar jinja2-mode-hook nil)
@@ -158,40 +184,43 @@
(if (looking-at (concat "^[ \t]*{% *.*?{% *end" (regexp-opt
jinja2-font-lock-indenting-keywords)))
(progn
(setq cur-indent (current-indentation))
- (message (format "Jinja_No1] jinja : %d sgml : %d"
cur-indent html-indentation )))
+ ;; (message (format "Jinja_No1] jinja : %d sgml : %d"
cur-indent html-indentation ))
+ )
(if (looking-at (concat "^[ \t]*{% *" (regexp-opt
jinja2-font-lock-indenting-keywords)))
(setq cur-indent (current-indentation))
(setq cur-indent (- (current-indentation) indent-width)))
- (message (format "Jinja_end1] jinja : %d sgml : %d" cur-indent
html-indentation )))
+ ;; (message (format "Jinja_end1] jinja : %d sgml : %d" cur-indent
html-indentation ))
+ )
)
(if (< cur-indent 0)
(setq cur-indent 0)))
(if (looking-at "^[ \t]*</") ; Assume sgml end block trust sgml
(progn
(setq cur-indent html-indentation)
- (message (format "SGML_?1] jinja : %d sgml : %d" cur-indent
html-indentation )))
+ ;; (message (format "SGML_?1] jinja : %d sgml : %d" cur-indent
html-indentation ))
+ )
(save-excursion
(while not-indented
(forward-line -1)
(if (looking-at "^[ \t]*{% *end") ; Don't indent after end
(progn
(setq cur-indent (current-indentation))
- (message (format "Jinja_end2] jinja : %d sgml : %d"
cur-indent html-indentation ))
+ ;; (message (format "Jinja_end2] jinja : %d sgml : %d"
cur-indent html-indentation ))
(setq not-indented nil))
(if (looking-at (concat "^[ \t]*{% *.*?{% *end" (regexp-opt
jinja2-font-lock-indenting-keywords)))
(progn
(setq cur-indent (current-indentation))
- (message (format "Jinja_No] jinja : %d sgml : %d"
cur-indent html-indentation ))
+ ;; (message (format "Jinja_No] jinja : %d sgml : %d"
cur-indent html-indentation ))
(setq not-indented nil))
(if (looking-at (concat "^[ \t]*{% *" (regexp-opt
jinja2-font-lock-indenting-keywords))) ; Check start tag
(progn
(setq cur-indent (+ (current-indentation) indent-width))
- (message (format "Jinja_open] jinja : %d sgml : %d"
cur-indent html-indentation ))
+ ;; (message (format "Jinja_open] jinja : %d sgml : %d"
cur-indent html-indentation ))
(setq not-indented nil))
(if (looking-at "^[ \t]*<") ; Assume sgml block trust sgml
(progn
(setq cur-indent html-indentation)
- (message (format "SGML_?] jinja : %d sgml : %d"
cur-indent html-indentation ))
+ ;; (message (format "SGML_?] jinja : %d sgml : %d"
cur-indent html-indentation ))
(setq not-indented nil))
(if (bobp) ; We don't know
(setq not-indented nil))))))))))
- [nongnu] elpa/jinja2-mode 0200889436 11/57: Add elc .gitignore, (continued)
- [nongnu] elpa/jinja2-mode 0200889436 11/57: Add elc .gitignore, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode d75353d070 18/57: indent by default with sgml indent setting, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode f91984ab79 43/57: Merge pull request #11 from akheron/patch-1, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode fddbfce7a3 07/57: Add tag closure, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode c262cace36 16/57: Add missing autoload, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode bc7365c60a 29/57: Forgot a dash, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode a9e7220486 48/57: add j2 extension, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode 29b492f175 49/57: Merge pull request #14 from mmckinst/j2_extension, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode 4540f99a3e 53/57: Merge pull request #19 from daviderestivo/master, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode cfaa7bbe7b 44/57: v0.2, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode 556ed3b80b 03/57: Remove messages,
ELPA Syncer <=
- [nongnu] elpa/jinja2-mode 9a87875833 05/57: Handle elif, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode 5a16074830 04/57: Capitalization of mode, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode fc3fd64758 10/57: Remove debug message, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode 06771de3e8 22/57: Merge pull request #2 from amirouche/HEAD, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode ecd19a40b7 55/57: Merge pull request #20 from sdwolfz/indent-on-save, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode bc0a925b9a 52/57: Add 'make-it-local flag to after-save-hook, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode eda4eedd49 08/57: Add keyword specific closure, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode 6ac5cf29fb 42/57: Derive from html-mode instead of sgml-mode, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode f72c9d74ae 39/57: Fix indentation + disable ' as string quote syntax, fixes #7, ELPA Syncer, 2022/01/17
- [nongnu] elpa/jinja2-mode 4fc7d6deb9 38/57: Merge branch 'master' of github.com:paradoxxxzero/jinja2-mode, ELPA Syncer, 2022/01/17