Skip to content

Commit

Permalink
v13
Browse files Browse the repository at this point in the history
  • Loading branch information
fxbois committed Nov 4, 2015
1 parent 454ac5a commit ee276c1
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions web-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

;; Copyright 2011-2015 François-Xavier Bois

;; Version: 12.4.2
;; Version: 13.0.0
;; Author: François-Xavier Bois <fxbois AT Google Mail Service>
;; Maintainer: François-Xavier Bois
;; Created: July 2011
Expand All @@ -19,14 +19,9 @@

;; Code goes here

;;---- TODO --------------------------------------------------------------------

;; v13 : invert path and XX (web-mode-engines-alist,
;; web-mode-content-types-alist) for more consistency

;;---- CONSTS ------------------------------------------------------------------

(defconst web-mode-version "12.4.2"
(defconst web-mode-version "13.0.0"
"Web Mode version.")

;;---- GROUPS ------------------------------------------------------------------
Expand Down Expand Up @@ -6918,28 +6913,6 @@ another auto-completion with different ac-sources (e.g. ac-php)")

))

;; (defun web-mode-markup-indentation (pos)
;; (save-excursion
;; (goto-char pos)
;; (let ((offset 0) beg ret)
;; (setq beg (web-mode-markup-indentation-origin))
;; (when beg
;; (when (and (get-text-property pos 'jsx-depth)
;; (not (get-text-property beg 'jsx-depth)))
;; (setq beg (web-mode-jsx-depth-beginning-position pos)))
;; (goto-char beg)
;; (setq ret (web-mode-element-is-opened beg pos))
;; (cond
;; ((null ret)
;; (setq offset (current-indentation)))
;; ((eq ret t)
;; (setq offset (+ (current-indentation) web-mode-markup-indent-offset)))
;; (t
;; (setq offset ret))
;; ) ;cond
;; ) ;when beg
;; offset)))

(defun web-mode-markup-indentation (pos)
(let ((offset 0) beg ret)
(when (setq beg (web-mode-markup-indentation-origin pos))
Expand Down

0 comments on commit ee276c1

Please sign in to comment.