[slime-cvs] CVS update: slime/slime.el
Helmut Eller
heller at common-lisp.net
Fri Jun 10 17:51:33 UTC 2005
Update of /project/slime/cvsroot/slime
In directory common-lisp.net:/tmp/cvs-serv25737
Modified Files:
slime.el
Log Message:
(slime-with-xref-buffer): Gensym package too, to avoid problems when
switching to buffers with -*- package: ... -*- file variables. From
Antonio Menezes Leitao.
(slime-property-bounds): Use the prop argument instead of the
hardcoded 'slime-repl-old-output. From Andras Simon.
Date: Fri Jun 10 19:51:33 2005
Author: heller
Index: slime/slime.el
diff -u slime/slime.el:1.506 slime/slime.el:1.507
--- slime/slime.el:1.506 Fri Jun 3 22:00:11 2005
+++ slime/slime.el Fri Jun 10 19:51:32 2005
@@ -3202,13 +3202,14 @@
;; forward one char to avoid doing the wrong thing if
;; we're at the beginning of the old input. -luke
;; (18/Jun/2004)
- (unless (not (get-text-property (point) 'slime-repl-old-output))
- ;alanr unless we are sitting right after it May 19, 2005
+ (unless (not (get-text-property (point) prop))
+ ;; alanr unless we are sitting right after it May 19, 2005
(ignore-errors (forward-char)))
(previous-single-char-property-change (point) prop)))
(end (save-excursion
- (if (get-text-property (point) 'slime-repl-old-output)
- (progn (goto-char (next-single-char-property-change (point) prop))
+ (if (get-text-property (point) prop)
+ (progn (goto-char (next-single-char-property-change
+ (point) prop))
(skip-chars-backward "\n \t\r" beg)
(point))
(point)))))
@@ -3923,7 +3924,6 @@
(funcall predicate)))
(buffer-list)))
-
;;;;; Merging together compiler notes in the same location.
@@ -6306,14 +6306,12 @@
(defmacro* slime-with-xref-buffer ((package ref-type symbol) &body body)
"Execute BODY in a xref buffer, then show that buffer."
- (let ((type (gensym))
- (sym (gensym)))
- `(let ((,type ,ref-type)
- (,sym ,symbol))
+ (let ((type (gensym)) (sym (gensym)) (pkg (gensym)))
+ `(let ((,type ,ref-type) (,sym ,symbol) (,pgk ,package))
(with-current-buffer (get-buffer-create
(format "*XREF[%s: %s]*" ,type ,sym))
(prog2 (progn
- (slime-init-xref-buffer ,package ,type ,sym)
+ (slime-init-xref-buffer ,pgk ,type ,sym)
(make-local-variable 'slime-xref-saved-window-configuration)
(setq slime-xref-saved-window-configuration
(current-window-configuration)))
More information about the slime-cvs
mailing list