* [romain@orebokech.com: Incorrect handling of exponent text in tex-mode]
@ 2006-06-17 19:55 Richard Stallman
2006-06-17 21:11 ` Ralf Angeli
0 siblings, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2006-06-17 19:55 UTC (permalink / raw)
Would someone please DTRT and ack?
------- Start of forwarded message -------
To: emacs-pretest-bug@gnu.org
From: Romain Francoise <romain@orebokech.com>
Date: Sat, 17 Jun 2006 15:45:26 +0200
Organization: orebokech dot com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Cc: Vincent Lefevre <vincent@vinc17.org>
Subject: Incorrect handling of exponent text in tex-mode
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed
version=3.0.4
Emacs 22 has a new feature to display exponent text with an exponent
font in TeX-mode, but it doesn't work right: in the following line,
"{-9}$ blah.}" is displayed in exponent instead of just "{-9}".
\foo{blah $10^{-9}$ blah.}
There is no such bug in Emacs 21 since the text is shown using a regular
font.
In GNU Emacs 22.0.50.21 (i686-pc-linux-gnu, GTK+ Version 2.8.18)
of 2006-06-17 on pacem
X server distributor `The X.Org Foundation', version 11.0.70000000
configured using `configure '--with-gtk' 'CFLAGS=-O0 -g -Wno-pointer-sign''
(This was reported as http://bugs.debian.org/365026)
Thanks,
- --
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
| ever free! --Bryan W. Procter
_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [romain@orebokech.com: Incorrect handling of exponent text in tex-mode]
2006-06-17 19:55 [romain@orebokech.com: Incorrect handling of exponent text in tex-mode] Richard Stallman
@ 2006-06-17 21:11 ` Ralf Angeli
2006-06-17 21:53 ` Romain Francoise
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Angeli @ 2006-06-17 21:11 UTC (permalink / raw)
Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 799 bytes --]
* Richard Stallman (2006-06-17) writes:
> Would someone please DTRT and ack?
>
> From: Romain Francoise <romain@orebokech.com>
> Subject: Incorrect handling of exponent text in tex-mode
> To: emacs-pretest-bug@gnu.org
> Cc: Vincent Lefevre <vincent@vinc17.org>
> Date: Sat, 17 Jun 2006 15:45:26 +0200
> Organization: orebokech dot com
>
> Emacs 22 has a new feature to display exponent text with an exponent
> font in TeX-mode, but it doesn't work right: in the following line,
> "{-9}$ blah.}" is displayed in exponent instead of just "{-9}".
>
> \foo{blah $10^{-9}$ blah.}
That should fix it:
2006-06-17 Ralf Angeli <angeli@caeruleus.net>
* textmodes/tex-mode.el (tex-font-lock-match-suscript): Remove
superfluent part of regexp for brace matching which is handled by
`scan-lists' call.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 486 bytes --]
--- tex-mode.el 27 Apr 2006 23:18:58 +0200 1.182
+++ tex-mode.el 17 Jun 2006 23:04:41 +0200
@@ -597,7 +597,7 @@
(defun tex-font-lock-match-suscript (limit)
"Match subscript and superscript patterns up to LIMIT."
(when (re-search-forward "[_^] *\\([^\n\\{}]\\|\
-\\\\\\([a-zA-Z@]+\\|[^ \t\n]\\)\\|{[^\\{]*}\\|\\({\\)\\)" limit t)
+\\\\\\([a-zA-Z@]+\\|[^ \t\n]\\)\\|\\({\\)\\)" limit t)
(when (match-end 3)
(let ((beg (match-beginning 3))
(end (save-restriction
[-- Attachment #3: Type: text/plain, Size: 10 bytes --]
--
Ralf
[-- Attachment #4: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [romain@orebokech.com: Incorrect handling of exponent text in tex-mode]
2006-06-17 21:11 ` Ralf Angeli
@ 2006-06-17 21:53 ` Romain Francoise
2006-06-18 7:05 ` Ralf Angeli
0 siblings, 1 reply; 5+ messages in thread
From: Romain Francoise @ 2006-06-17 21:53 UTC (permalink / raw)
Cc: rms, emacs-devel
Ralf Angeli <angeli@caeruleus.net> writes:
> That should fix it:
> 2006-06-17 Ralf Angeli <angeli@caeruleus.net>
> * textmodes/tex-mode.el (tex-font-lock-match-suscript): Remove
> superfluent part of regexp for brace matching which is handled by
> `scan-lists' call.
This patch works fine, thanks! Want me to install it?
--
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
| ever free! --Bryan W. Procter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [romain@orebokech.com: Incorrect handling of exponent text in tex-mode]
2006-06-17 21:53 ` Romain Francoise
@ 2006-06-18 7:05 ` Ralf Angeli
2006-06-18 8:22 ` Romain Francoise
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Angeli @ 2006-06-18 7:05 UTC (permalink / raw)
Cc: rms, emacs-devel
* Romain Francoise (2006-06-17) writes:
> Ralf Angeli <angeli@caeruleus.net> writes:
>
>> That should fix it:
>
>> 2006-06-17 Ralf Angeli <angeli@caeruleus.net>
>
>> * textmodes/tex-mode.el (tex-font-lock-match-suscript): Remove
>> superfluent part of regexp for brace matching which is handled by
>> `scan-lists' call.
>
> This patch works fine, thanks! Want me to install it?
Yes, please. We have been using the proposed regexp in AUCTeX for the
same purpose for several months now without a problem.
BTW, you don't need to mark the change log entry with "tiny change".
I signed papers for Emacs. But I have to inform the copyright clerk
that my email address changed. I will do this right away.
--
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [romain@orebokech.com: Incorrect handling of exponent text in tex-mode]
2006-06-18 7:05 ` Ralf Angeli
@ 2006-06-18 8:22 ` Romain Francoise
0 siblings, 0 replies; 5+ messages in thread
From: Romain Francoise @ 2006-06-18 8:22 UTC (permalink / raw)
Cc: rms, emacs-devel
Ralf Angeli <angeli@caeruleus.net> writes:
> Yes, please. We have been using the proposed regexp in AUCTeX for the
> same purpose for several months now without a problem.
Ok, installed. Thanks again!
> BTW, you don't need to mark the change log entry with "tiny change".
> I signed papers for Emacs.
Yep, I had checked beforehand.
> But I have to inform the copyright clerk that my email address
> changed.
Also, the copyright assignments file lists you as ``Ralph Angeli'' for
the Emacs assignment and ``Ralf Angeli'' for the AUCTeX assignment. I
don't know if that's a mistake or if both names are correct, but having
just one would probably be a good thing.
--
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
| ever free! --Bryan W. Procter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-06-18 8:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-17 19:55 [romain@orebokech.com: Incorrect handling of exponent text in tex-mode] Richard Stallman
2006-06-17 21:11 ` Ralf Angeli
2006-06-17 21:53 ` Romain Francoise
2006-06-18 7:05 ` Ralf Angeli
2006-06-18 8:22 ` Romain Francoise
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.