[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
calc-embedded
From: |
Jay Belanger |
Subject: |
calc-embedded |
Date: |
Wed, 14 Jan 2004 23:30:16 -0600 |
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the address@hidden mailing list.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
There seems to be a couple problems with calc-embedded.
1) First of all, if a document begins with, say,
\documentclass{article}
and calc-embedded (M-# e) is called, the line gets replaced by
calcFunc#documentclass(article)
2) Next, if the file contains a line like
% $a + b => $
then calling `calc-embedded-activate' gives the error
calc-embedded-activate: Wrong type argument: integer-or-marker-p, nil
The problem, I think, is that when `calc-do-embedded-activate' is
called, it will search for "=> " and then be looking at the dollar
sign. Then next line in `calc-do-embedded-activate' is
(if (looking-at calc-embedded-open-formula)
(goto-char (match-end 1)))
(where `calc-embedded-open-formula' is
"\\`\\|^\n\\|\\$\\$?\\|\\\\\\[\\|^\\\\begin.*\n\\|address@hidden|^\\.EQ.*\n\\|\\\\(\\|^%\n\\|^\\.\\\\\"\n".)
In the above case, where the dollar sign matches
`calc-embedded-open-formula' (or any time
`calc-embedded-open-formula' is matched) `(match-end 1)' will always
be nil, so (goto-char (match-end 1)) gives the above error.
If the lines
(if (looking-at calc-embedded-open-formula)
(goto-char (match-end 1)))
are commented out, then it seems to work fine.
Jay Belanger
In GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2004-01-03 on vh213602
configured using `configure '--host=i686-pc-linux-gnu' '--prefix=/usr'
'--libexecdir=/usr/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png'
'--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'CC=gcc'
'host_alias=i686-pc-linux-gnu''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
display-time-mode: t
iswitchb-mode: t
show-paren-mode: t
auto-compression-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
column-number-mode: t
line-number-mode: t
Recent input:
<return> C-x b C-s <return> M-x r e p <tab> o <tab>
r <tab> c a l <tab> <return> E m b e d <backspace>
<backspace> <backspace> <backspace> <backspace> c a
l c - e m b e d SPC <left> d e d SPC a c t i v e <backspace>
a <backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> - a c t i v a t e SPC g i v
e s SPC e r r o r <return> C-x k <return> y M-x r e
p o <tab> r <tab> e m <tab> b <tab> <return>
Recent messages:
Making completion list... [2 times]
Loading calc-misc...done
Loading reporter...done
Parsing /home/belanger/.mailrc... done
Formatting bug report buffer...
Mark set
Please enter your report. Type C-c C-c to send, C-c C-k to abort.
Buffer *mail* modified; kill anyway? (y or n)
Making completion list...
Loading emacsbug...done
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- calc-embedded,
Jay Belanger <=