diff options
| -rw-r--r-- | lisp/progmodes/inf-lisp.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/inf-lisp.el b/lisp/progmodes/inf-lisp.el index 3476a7f635b..dafb89a5b65 100644 --- a/lisp/progmodes/inf-lisp.el +++ b/lisp/progmodes/inf-lisp.el | |||
| @@ -345,8 +345,11 @@ The actually processing is done by `do-string' and `do-region' | |||
| 345 | which determine whether the code is compiled before evaluation. | 345 | which determine whether the code is compiled before evaluation. |
| 346 | DEFVAR forms reset the variables to the init values." | 346 | DEFVAR forms reset the variables to the init values." |
| 347 | (save-excursion | 347 | (save-excursion |
| 348 | (end-of-defun) | 348 | ;; Find the end of the defun this way to avoid having the region |
| 349 | (skip-chars-backward " \t\n\r\f") ; Makes allegro happy | 349 | ;; possibly end with a comment (it there'a a comment after the |
| 350 | ;; final parenthesis). | ||
| 351 | (beginning-of-defun) | ||
| 352 | (forward-sexp) | ||
| 350 | (let ((end (point)) (case-fold-search t)) | 353 | (let ((end (point)) (case-fold-search t)) |
| 351 | (beginning-of-defun) | 354 | (beginning-of-defun) |
| 352 | (if (looking-at "(defvar") | 355 | (if (looking-at "(defvar") |