comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Fontifying large buffers in idlwave?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Fontifying large buffers in idlwave? [message #23544] Thu, 01 February 2001 00:55
dominik is currently offline  dominik
Messages: 47
Registered: June 2000
Member
>>>> > "TC" == Todd Clements <mole6e23@hotmail.com> writes:

TC> Hi all... Any of you idlwave users (or programmers) out there
TC> know how to set up xemacs to fontify a large buffer? I have some
TC> IDL code that is > 250K in size (not my own code, otherwise I'd
TC> break it up...) that I'd like to be able to fontify, but emacs
TC> says "buffer too big".

In .emacs, use this:

(setq font-lock-maximum-size 1000000)

The number is a buffer size in bytes (not lines). You can also use

(setq font-lock-maximum-size nil)

to remove any size limit.

- Carsten

--
Carsten Dominik <dominik@astro.uva.nl> \ _ /
Sterrenkundig Instituut "Anton Pannekoek" |X| _
Kruislaan 403; NL-1098 SJ Amsterdam /| |\ _ _ _/ \
phone +31 (20) 525-7477; FAX +31 (20) 525-7484 __|o|___/ ~~ \___/ ~~~
Re: Fontifying large buffers in idlwave? [message #23548 is a reply to message #23544] Wed, 31 January 2001 15:10 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Todd Clements (mole6e23@hotmail.com) writes:

> When can I expect my book? ;>

Uh, I thought you were going to give them to those
guys who wrote those huge program files. :-)

Cheers,

David

P.S. Let's just say that even if you don't like objects,
you *have* to like a nice object-oriented programming
style.

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Fontifying large buffers in idlwave? [message #23549 is a reply to message #23548] Wed, 31 January 2001 14:44 Go to previous message
Todd Clements is currently offline  Todd Clements
Messages: 23
Registered: January 2001
Junior Member
davidf@dfanning.com (David Fanning) wrote:

> Todd Clements (mole6e23@hotmail.com) writes:
>
>> I have some IDL code that is > 250K in
>> size (not my own code, otherwise I'd break it up...)
>
> Todd, let me know. I have gift certificates for
> my book. :-)

In your .emacs file:

(custom-set-variables
'(font-lock-maximum-size (* 512 1024)))

Where you can set any random maximum you want by changing that 512 (the
defult is 256, i.e. 256*1024 = 256K).

Works on my xemacs.

When can I expect my book? ;>

Todd
Re: Fontifying large buffers in idlwave? [message #23551 is a reply to message #23549] Wed, 31 January 2001 10:42 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Todd Clements (mole6e23@hotmail.com) writes:

> I have some IDL code that is > 250K in
> size (not my own code, otherwise I'd break it up...)

Todd, let me know. I have gift certificates for
my book. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: objects in loop
Next Topic: data types

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:56:14 PDT 2025

Total time taken to generate the page: 0.00428 seconds