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: Max Mikhanosha
Subject: Re: switch-to-buffer incompatible behavior with Emacs 21
Date: Fri, 25 Aug 2006 11:08:37 -0400
User-agent: Wanderlust/2.15.3 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.0.51 (x86_64-unknown-linux-gnu) MULE/5.0 (SAKAKI)

At Fri, 25 Aug 2006 03:44:17 -0400,
Richard Stallman wrote:
> 
> I think this fix is more correct.  Does it give good results?

Yes works fine with below patch also. I did not realized tho point of
the first "if" statement in the function was to fix a bug further
down, instead I thought it was a speed optimization hence my patch
that just bypassed it to fix buffer order. Should have read the
comments more carefully. 

Regards,
  Max

> 
> 
> *** buffer.c  22 Aug 2006 10:59:44 -0400      1.507
> --- buffer.c  24 Aug 2006 10:35:16 -0400      
> ***************
> *** 1684,1692 ****
>     char *err;
>   
>     if (EQ (buffer, Fwindow_buffer (selected_window)))
> !     /* Basically a NOP.  Avoid signalling an error if the selected window
> !        is dedicated, or a minibuffer, ...  */
> !     return Fset_buffer (buffer);
>   
>     err = no_switch_window (selected_window);
>     if (err) error (err);
> --- 1684,1699 ----
>     char *err;
>   
>     if (EQ (buffer, Fwindow_buffer (selected_window)))
> !     {
> !       /* Basically a NOP.  Avoid signalling an error in the case where
> !      the selected window is dedicated, or a minibuffer.  */
> ! 
> !       /* But do put this buffer at the front of the buffer list,
> !      unless that has been inhibited.  */
> !       if (NILP (norecord))
> !     record_buffer (buffer);
> !       return Fset_buffer (buffer);
> !     }
>   
>     err = no_switch_window (selected_window);
>     if (err) error (err);





reply via email to

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