]> code.delx.au - gnu-emacs/commitdiff
(eval-expression-print-format): Avoid warning about edebug-active.
authorRichard M. Stallman <rms@gnu.org>
Thu, 10 Feb 2005 06:47:58 +0000 (06:47 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 10 Feb 2005 06:47:58 +0000 (06:47 +0000)
lisp/simple.el

index 03a91fb4db057017118d6bebabdf2fe265f987f8..3f3c41422a10febcb9839ca5c31d4de83836fa0c 100644 (file)
@@ -902,7 +902,7 @@ display the result of expression evaluation."
                (eq this-command last-command)
                (if (boundp 'edebug-active) edebug-active)))
       (let ((char-string
-             (if (or (and (boundp 'edebug-active) edebug-active)
+             (if (or (if (boundp 'edebug-active) edebug-active)
                      (memq this-command '(eval-last-sexp eval-print-last-sexp)))
                  (prin1-char value))))
         (if char-string
@@ -4674,7 +4674,8 @@ of the differing parts is, by contrast, slightly highlighted."
                               (point-min)
                               'mouse-face))
               (element-common-end
-               (+ (or element-start nil) common-string-length))
+               (and element-start
+                    (+ (or element-start nil) common-string-length)))
               (maxp (point-max)))
          (while (and element-start (< element-common-end maxp))
            (when (and (get-char-property element-start 'mouse-face)