Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed problem in newlisp.el with incf not being found so C-x C-e work…

…s once you start newlisp with newlisp-visit-interpreter; see also README changes
  • Loading branch information...
commit ff0b8a13c2d9cfa1d6b7cada75c85a6c9829f186 1 parent 9706d25
Nicholas E. May (on Enterprise) authored
Showing with 5 additions and 2 deletions.
  1. +3 −0  README
  2. +2 −2 newlisp.el
View
3  README
@@ -13,3 +13,6 @@ The following elisp code in my .emacs or init.el works for me.
(add-to-list 'auto-mode-alist '("\\.lsp$" . newlisp-mode))
;(autoload 'newlisp "newlisp" "Major mode for newlisp files" t)
(eval-after-load "speedbar" '(speedbar-add-supported-extension ".lsp"))
+
+; Another way to use C-x C-e to eval stuff and doesn't jump to next function
+;(define-key newlisp-mode-map [(control x) (control e)] 'newlisp-evaluate-prev-sexp)
View
4 newlisp.el
@@ -531,8 +531,8 @@ Then, put cursor in other window."
(let ((openers 1) (closers 0))
(while (and (not (eobp)) (> openers closers))
(cond
- ((eq (following-char) ?\() (incf openers))
- ((eq (following-char) ?\)) (incf closers)))
+ ((eq (following-char) ?\() (setq openers (+ 1 openers)))
+ ((eq (following-char) ?\)) (setq closers (+ 1 closers))))
(forward-char 1))))
(defun newlisp-select-list ()
Please sign in to comment.
Something went wrong with that request. Please try again.