From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "chris.danx" Newsgroups: gmane.emacs.help Subject: buffers Date: Sat, 25 Jan 2003 02:04:24 +0000 Organization: ntl Cablemodem News Service Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <_emY9.2066$6U3.12590@newsfep4-gui.server.ntli.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1043460294 12544 80.91.224.249 (25 Jan 2003 02:04:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 25 Jan 2003 02:04:54 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18cFgi-0003GB-00 for ; Sat, 25 Jan 2003 03:04:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18cFhu-00034o-00 for gnu-help-gnu-emacs@m.gmane.org; Fri, 24 Jan 2003 21:06:06 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!newspeer1-gui.server.ntli.net!ntli.net!newsfep4-gui.server.ntli.net.POSTED!53ab2750!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 80.4.70.148 Original-X-Complaints-To: abuse@ntlworld.com Original-X-Trace: newsfep4-gui.server.ntli.net 1043460154 80.4.70.148 (Sat, 25 Jan 2003 02:02:34 GMT) Original-NNTP-Posting-Date: Sat, 25 Jan 2003 02:02:34 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:109430 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5951 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5951 Hi, I found some code to switch between buffers in the google archives of this group, but on some emacs it doesn't work as expected or rather it does but it goes to "hidden buffers" that don't show up in others. At home (emacs 21.1.1 on mandrake) it works fine, going to/from any buffers open in order but at uni (running rh 7.2 - no emacs version number sorry) some buffers are selected which contain lots of symbols and err, other junk - it's probably not junk but it's incomprehensible to me. I don't know off hand what these buffers are, only that they don't show up at home when cycling through the entire buffer list. Is there any way to prevent certain buffers from being selected when you cycle through buffers? Are their "hidden buffers" in emacs? The code is ;switch between buffers (defalias 'switch-to-next-buffer 'bury-buffer) (defun switch-to-previous-buffer () "Switches to previous buffer" (interactive) (switch-to-buffer (nth (- (length (buffer-list)) 1) (buffer-list))) ) (global-set-key "\C-c\j" 'switch-to-previous-buffer) (global-set-key "\C-c\k" 'switch-to-next-buffer) Cheers, Chris