]> git.eshelyaron.com Git - emacs.git/commitdiff
(eval-last-sexp-1): Look for a `...'
authorGerd Moellmann <gerd@gnu.org>
Thu, 26 Jul 2001 13:34:32 +0000 (13:34 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 26 Jul 2001 13:34:32 +0000 (13:34 +0000)
before assigning text properties.  Make properties rear-nonsticky.

lisp/ChangeLog
lisp/emacs-lisp/lisp-mode.el

index cd9de63f8688fb28d884a95f197dada00881452b..de29a5ae4e8391ba9ae6b74fa01d6767db982d76 100644 (file)
@@ -1,5 +1,8 @@
 2001-07-26  Gerd Moellmann  <gerd@gnu.org>
 
+       * emacs-lisp/lisp-mode.el (eval-last-sexp-1): Look for a `...'
+       before assigning text properties.  Make properties rear-nonsticky.
+       
        * emacs-lisp/lisp-mode.el (last-sexp-print): New function.
        (eval-last-sexp-1): Give printed text a `keymap' property and bind
        <mouse-2> and <RET> in that map to a function printing the
index 093357c5b4347cf0a1c5d58dc93db279fea9a824..35dfadbe66e24b1d994d0876aabbf761883ca381 100644 (file)
@@ -390,13 +390,17 @@ With argument, print output into current buffer."
                     (set-syntax-table stab))))))
       (let ((print-length eval-expression-print-length)
            (print-level eval-expression-print-level)
-           (beg (point)))
+           (beg (point))
+           end)
        (prin1 value)
+       (setq end (point))
        (when (and (bufferp standard-output)
                   (or (not (null print-length))
-                      (not (null print-level))))
-         (let ((map (make-sparse-keymap))
-               (end (point)))
+                      (not (null print-level)))
+                  (save-excursion
+                    (goto-char beg)
+                    (search-forward "..." end t)))
+         (let ((map (make-sparse-keymap)))
            (define-key map "\C-m" 'last-sexp-print)
            (define-key map [down-mouse-2] 'mouse-set-point)
            (define-key map [mouse-2] 'last-sexp-print)
@@ -405,7 +409,10 @@ With argument, print output into current buffer."
             `(printed-value ,value 
                             mouse-face highlight 
                             keymap ,map
-                            help-echo "RET, mouse-2: print unabbreviated"))))))))
+                            help-echo "RET, mouse-2: print unabbreviated"
+                            read-nonsticky (mouse-face keymap help-echo
+                                                       printed-value)
+                            ))))))))
 
 
 (defun eval-last-sexp (eval-last-sexp-arg-internal)