emacs-devel
[Top][All Lists]
Advanced

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

Re: Buffers relative order


From: Angelo Graziosi
Subject: Re: Buffers relative order
Date: Wed, 22 Jun 2011 19:49:38 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

Il 22/06/2011 14.33, martin rudalics ha scritto:
 > If there is an option I can set in my .emacs file to restore the
 > behavior Emacs has always got, I will greatly appreciate...

Let's see if the problem is really with the redefinition of
`next-buffer' and `previous-buffer'. Please, add the two following
functions two your .emacs and tell me whether the old behavior gets
restored.

Oh yes! it seems the same original behavior!

Thanks,
Angelo.


Thanks, martin


(defun next-buffer ()
"Switch to the next buffer in cyclic order."
(interactive)
(let ((buffer (current-buffer)))
(switch-to-buffer (other-buffer buffer t))
(bury-buffer buffer)))

(defun previous-buffer ()
"Switch to the previous buffer in cyclic order."
(interactive)
(switch-to-buffer (last-buffer (current-buffer) t)))




reply via email to

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