[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] auctex 11.83 fills paragraph incorrectly

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] auctex 11.83 fills paragraph incorrectly
Date: Sat, 01 Jul 2006 00:08:38 +0200

* David Kastrup (2006-06-29) writes:

> Ralf Angeli <address@hidden> writes:
>> If Emacs Lisp just supported pass-by-reference, then I could get
>> easily get rid of some duplicated font locking code.  Oh well, I'll
>> find another way.
> Emacs Lisp supports quite a number of ways of passing by reference.
> Cons cells are passed as pointers, arrays are passed by reference, and
> symbols can easily be passed by reference, too.  Quote them at the
> point of call, and use `set' instead of `setq' on them.
> What are you trying to achieve?

There is some duplicated code in the new font locking code I'd like to
move into its own function.  The code manipulates at least one
variable local to the function it is currently used in.  Instead of
defining a global variable for it, it would be nice to pass a
reference to the new function containing the now duplicated code.  The
new function would then manipulate the value of the variable in the
original function.  It's not a big deal, I'll probably just define the
variable globally.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]