|
8 | 8 | ;; URL: http://github.com/clojure-emacs/inf-clojure |
9 | 9 | ;; Keywords: processes, comint, clojure |
10 | 10 | ;; Version: 3.3.0-snapshot |
11 | | -;; Package-Requires: ((emacs "27.1") (clojure-mode "5.11")) |
| 11 | +;; Package-Requires: ((emacs "28.1") (clojure-mode "5.11")) |
12 | 12 |
|
13 | 13 | ;; This file is not part of GNU Emacs. |
14 | 14 |
|
@@ -1004,12 +1004,16 @@ of forms." |
1004 | 1004 | (while (not (eobp)) |
1005 | 1005 | (while (looking-at "\n") |
1006 | 1006 | (delete-char 1)) |
| 1007 | + ;; NOTE: There is no special API for that in |
| 1008 | + ;; `clojure-ts-mode', so probably for now lets keep this |
| 1009 | + ;; `clojure-mode' function. |
1007 | 1010 | (unless (eobp) |
1008 | | - ;; NOTE: There is no special API for that in |
1009 | | - ;; `clojure-ts-mode', so probably for now lets keep this |
1010 | | - ;; `clojure-mode' function. |
1011 | | - (clojure-forward-logical-sexp) |
1012 | | - (forward-char))) |
| 1011 | + (clojure-forward-logical-sexp)) |
| 1012 | + (unless (eobp) |
| 1013 | + (forward-char) |
| 1014 | + ;; Remove an empty line at the end of the buffer. |
| 1015 | + (when (eobp) |
| 1016 | + (delete-char -1)))) |
1013 | 1017 | (buffer-substring-no-properties (point-min) (point-max)))) |
1014 | 1018 | (scan-error str))) |
1015 | 1019 |
|
@@ -1503,7 +1507,7 @@ evaluating \\[inf-clojure-completion-form] at the REPL." |
1503 | 1507 | (funcall inf-clojure-completions-fn |
1504 | 1508 | (inf-clojure--process-response completion-expr proc "(" ")")))))) |
1505 | 1509 |
|
1506 | | -(defconst inf-clojure-clojure-expr-break-chars "^[] \"'`><,;|&{()[@\\^]" |
| 1510 | +(defconst inf-clojure-clojure-expr-break-chars "^][ \"'`><,;|&{()@\\^" |
1507 | 1511 | "Regexp are hard. |
1508 | 1512 |
|
1509 | 1513 | This regex has been built in order to match the first of the |
|
0 commit comments