all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roger Mason <rmason@esd.mun.ca>
Subject: Re: calc-embedded-activate
Date: Wed, 14 Jan 2004 07:50:01 -0330	[thread overview]
Message-ID: <y65y8sasroe.fsf@minnie.esd.mun.ca> (raw)
In-Reply-To: <87smij32wn.fsf@truman.edu> (Jay Belanger's message of "Tue, 13 Jan 2004 16:22:00 -0600")

Hello,

Jay Belanger <belanger@truman.edu> writes:

> Roger Mason <rmason@esd.mun.ca> writes:
>
> ...
>> %Embed 
>> % $f := 2$
>> % $g := 2$
>> % $foo := 5$
>> % $f + g => $
> ...
>> The key combination `C-u 1 M-# a' leads to the following
>> backtrace:
>>
>> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
>
> It looks like a bug with calc-embed, which perhaps can be fixed by
> commenting out the lines
>     (if (looking-at calc-embedded-open-formula)
>         (goto-char (match-end 1)))
> from the definition of calc-do-embed-activate in calc-embed.el.
> (It works for me.)
>

( lines snipped )

Thanks for your response.

I discovered later that terminating the %Embed % $...$  group with
another %Embed cures the problem.  I'm not sure if this is consistent
with your analysis or not.  The terminating %Embed is not part of the
regex in calc-do-embedded-activate, indeed that regex pertains only to
the announcement of a group of formulae, so the `correct' behaviour could
be fortuitous.  Commenting out the ofending lines is cleaner, I'll try
it here and report back.

Having got `M-# a' to work, albeit by trial and error, I have been
trying to update all the fomulae in the buffer using `C-u 1 M-# u'.
This command fails silently: nothing happens and there is no error
signalled.  `M-u' works as described in the manual, so I assume the
bug (if it is a bug and not my stupidity) is in the code that steps
through the buffer finding active formulae.  I presume the best way to
proceed is to improve my aquaintance with the lisp debugger, but if
anyone has any suggestions I'd be grateful to receive them.

Thanks,

Roger Mason

  reply	other threads:[~2004-01-14 11:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.557.1074026001.928.help-gnu-emacs@gnu.org>
2004-01-13 22:22 ` calc-embedded-activate Jay Belanger
2004-01-14 11:20   ` Roger Mason [this message]
     [not found]   ` <mailman.618.1074079249.928.help-gnu-emacs@gnu.org>
2004-01-14 18:27     ` calc-embedded-activate Jay Belanger
2004-01-14 18:40   ` calc-embedded-activate Jay Belanger
2004-01-13 16:33 calc-embedded-activate Roger Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y65y8sasroe.fsf@minnie.esd.mun.ca \
    --to=rmason@esd.mun.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.