emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: switch-to-buffer incompatible behavior with Emacs 21


From: Nick Roberts
Subject: Re: switch-to-buffer incompatible behavior with Emacs 21
Date: Fri, 25 Aug 2006 08:43:25 +1200

 > >> The comment suggests that this patch will create a problems.  Perhaps the
 > >> patch below solves them.
 > > I think the problem is just an oversight in the following change:
 > 
 > > 2003-07-15  Stefan Monnier  <address@hidden>
 > 
 > >    * buffer.c (Fswitch_to_buffer): Don't signal an error when switching
 > >    to the same buffer in a dedicated window.
 > 
 > > Your patch looks good to me.
 > 
 > Agreed.

OK, I've installed this change.  I notice that sometimes Fcar and Fcdr
are used instead of XCAR and XCDR eg.

this change:

      if (NILP (norecord)  && !EQ (buffer, XCDR (XCAR (Vbuffer_alist))))

in window.c:

                  w->buffer = Fcdr (Fcar (Vbuffer_alist));

When is it ever better to use the latter?


-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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