Skip to content

Commit

Permalink
Workaround for emacs asking for kill-buffer confirmation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonatan Offek committed Jan 2, 2011
1 parent 81b0486 commit 303ccc2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions etc/las3r-mode.el
Expand Up @@ -136,18 +136,20 @@ if that value is non-nil."
(interactive (list (point)))
(save-excursion
(backward-sexp)
(let ((src (buffer-substring-no-properties (point) p)))
(let* ((src (buffer-substring-no-properties (point) p))
(oldbuf (current-buffer)))
(let* ((proc (http-post "http://localhost:9876/push" `(("src" . ,(format "%s" src))) 'iso-8859-1))
(buf (process-buffer proc)))
(kill-buffer buf)))))
(switch-to-buffer oldbuf)))))

(defun las3r-eval-buffer nil
"Evaluate the code in the current buffer."
(interactive)
(let ((src (buffer-string)))
(let* ((src (buffer-string))
(oldbuf (current-buffer)))
(let* ((proc (http-post "http://localhost:9876/push" `(("src" . ,(format "%s" src))) 'iso-8859-1))
(buf (process-buffer proc)))
(kill-buffer buf))))
(switch-to-buffer oldbuf))))

(defun las3r-font-lock-def-at-point (point)
"Find the position range between the top-most def* and the
Expand Down

0 comments on commit 303ccc2

Please sign in to comment.