diff options
author | Rudolf <omouse@mouse.om> | 2009-11-27 03:44:57 +0800 |
---|---|---|
committer | Chris Done <chrisdone@gmail.com> | 2010-01-24 21:19:49 +0800 |
commit | eb430680b4ce3334615b03bc35b128d77ce64303 (patch) | |
tree | 0d6c649f41765602e740c5a411dd4c9ddbcc80c9 /zencoding-mode.el | |
parent | 6a87bd12f8d07e1d0f4ab363a3bb23b0494b5a1b (diff) | |
download | emmet-mode-eb430680b4ce3334615b03bc35b128d77ce64303.tar.lz emmet-mode-eb430680b4ce3334615b03bc35b128d77ce64303.tar.xz emmet-mode-eb430680b4ce3334615b03bc35b128d77ce64303.zip |
Removed unnecessary comments at the end of the file
Diffstat (limited to 'zencoding-mode.el')
-rw-r--r-- | zencoding-mode.el | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/zencoding-mode.el b/zencoding-mode.el index 57e2992..0953a68 100644 --- a/zencoding-mode.el +++ b/zencoding-mode.el @@ -714,88 +714,5 @@ accept it or skip it." (when show (overlay-put zencoding-preview-output 'after-string (concat show "\n"))))) -;; a+bc - -;;;;;;;;;; -;; Chris's version - -;; (defvar zencoding-realtime-preview-keymap -;; (let ((map (make-sparse-keymap))) -;; (define-key map "\C-c\C-c" 'zencoding-delete-overlay-pair) - -;; map) -;; "Keymap used in zencoding realtime preview overlays.") - -;; ;;;###autoload -;; (defun zencoding-realtime-preview-of-region (beg end) -;; "Construct a real-time preview for the region BEG to END." -;; (interactive "r") -;; (let ((beg2) -;; (end2)) -;; (save-excursion -;; (goto-char beg) -;; (forward-line) -;; (setq beg2 (point) -;; end2 (point)) -;; (insert "\n")) -;; (let ((input-and-output (zencoding-make-overlay-pair beg end beg2 end2))) -;; (zencoding-handle-overlay-change (car input-and-output) nil nil nil))) -;; ) - -;; (defun zencoding-make-overlay-pair (beg1 end1 beg2 end2) -;; "Construct an input and an output overlay for BEG1 END1 and BEG2 END2" -;; (let ((input (make-overlay beg1 end1 nil t t)) -;; (output (make-overlay beg2 end2))) -;; ;; Setup input overlay -;; (overlay-put input 'face '(:underline t)) -;; (overlay-put input 'modification-hooks -;; (list #'zencoding-handle-overlay-change)) -;; (overlay-put input 'output output) -;; (overlay-put input 'keymap zencoding-realtime-preview-keymap) -;; ;; Setup output overlay -;; (overlay-put output 'face '(:overline t)) -;; (overlay-put output 'intangible t) -;; (overlay-put output 'input input) -;; ;; Return the overlays. -;; (list input output)) -;; ) - -;; (defun zencoding-delete-overlay-pair (&optional one) -;; "Delete a pair of input and output overlays based on ONE." -;; (interactive) ;; Since called from keymap -;; (unless one -;; (let ((overlays (overlays-at (point)))) -;; (while (and overlays -;; (not (or (overlay-get (car overlays) 'input) -;; (overlay-get (car overlays) 'output)))) -;; (setq overlays (cdr overlays))) -;; (setq one (car overlays)))) -;; (when one -;; (let ((other (or (overlay-get one 'input) -;; (overlay-get one 'output)))) -;; (delete-overlay one) -;; (delete-overlay other))) -;; ) - -;; (defun zencoding-handle-overlay-change (input del beg end &optional old) -;; "Update preview after overlay change." -;; (let* ((output (overlay-get input 'output)) -;; (start (overlay-start output)) -;; (string (buffer-substring-no-properties -;; (overlay-start input) -;; (overlay-end input))) -;; (ast (car (zencoding-expr string))) -;; (markup (when (not (eq ast 'error)) -;; (zencoding-transform ast)))) -;; (save-excursion -;; (delete-region start (overlay-end output)) -;; (goto-char start) -;; (if markup -;; (insert markup) -;; (insert (propertize "error" 'face 'font-lock-error-face))) -;; (move-overlay output start (point)))) -;; ) (provide 'zencoding-mode) - -;;; zencoding-mode.el ends here |