]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-embedded-find-bounds): Set formula bound on line with formula.
authorJay Belanger <jay.p.belanger@gmail.com>
Tue, 1 Feb 2005 03:57:08 +0000 (03:57 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Tue, 1 Feb 2005 03:57:08 +0000 (03:57 +0000)
lisp/calc/calc-embed.el

index 080d48f2062c87a1b50b7f03b1e2e981c0b666a7..4c6311c9a5bd89fbaffc378779b9e37397299fcc 100644 (file)
@@ -417,6 +417,8 @@ With any prefix argument, marks only the formula itself."
         (forward-char -1))
     (setq calc-embed-outer-top (point))
     (goto-char (match-end 0))
+    (if (looking-at "[ \t]*$")
+        (end-of-line))
     (if (eq (following-char) ?\n)
        (forward-char 1))
     (or (bolp)