unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: auctex 11.83 fills paragraph incorrectly
       [not found]     ` <87irmjwxzi.fsf@neutrino.caeruleus.net>
@ 2006-06-29 19:59       ` David Kastrup
  2006-06-30 22:08         ` [Bug-AUCTeX] " Ralf Angeli
  0 siblings, 1 reply; 2+ messages in thread
From: David Kastrup @ 2006-06-29 19:59 UTC (permalink / raw)
  Cc: bug-auctex, emacs-devel

Ralf Angeli <angeli@caeruleus.net> writes:

> * David Kastrup (2006-06-29) writes:
>
>> Given the latest TeX-doc reports, we maybe should consider pushing out
>> 11.84 soon.  That could clear the ground for some of your pending
>> larger changes.
>
> 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?

Followup to emacs-devel.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bug-AUCTeX] auctex 11.83 fills paragraph incorrectly
  2006-06-29 19:59       ` auctex 11.83 fills paragraph incorrectly David Kastrup
@ 2006-06-30 22:08         ` Ralf Angeli
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Angeli @ 2006-06-30 22:08 UTC (permalink / raw)
  Cc: emacs-devel

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

> Ralf Angeli <angeli@caeruleus.net> 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.

-- 
Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-30 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <44A1C889.4010905@brown.edu>
     [not found] ` <87y7vfx0e1.fsf@neutrino.caeruleus.net>
     [not found]   ` <85bqsb3idt.fsf@lola.goethe.zz>
     [not found]     ` <87irmjwxzi.fsf@neutrino.caeruleus.net>
2006-06-29 19:59       ` auctex 11.83 fills paragraph incorrectly David Kastrup
2006-06-30 22:08         ` [Bug-AUCTeX] " Ralf Angeli

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).