From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: This code won't match buffer names. Why not? Date: Sat, 29 Aug 2009 15:06:15 +0200 Organization: Organization?!? Message-ID: <87y6p24vnc.fsf@lola.goethe.zz> References: <30670a65-7226-4950-b43a-adb2890eec1c@i18g2000pro.googlegroups.com> <87hbw0odr7.fsf@in-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251553247 14832 80.91.229.12 (29 Aug 2009 13:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2009 13:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 29 15:40:40 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MhOAa-0007Be-1P for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 15:40:40 +0200 Original-Received: from localhost ([127.0.0.1]:46659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhOAZ-0003dY-C1 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 09:40:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:mGAI8hjMGm+aI4wHqEeMaJTXw6A= Original-Lines: 16 Original-NNTP-Posting-Date: 29 Aug 2009 15:06:15 CEST Original-NNTP-Posting-Host: 9feb148c.newsspool2.arcor-online.net Original-X-Trace: DXC=C; ?jcVo^E; mJ00P1S40fZgA9EHlD; 3Ycb4Fo<]lROoRa^YC2XCjHcbi]>CD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67637 Archived-At: Benjamin Andresen writes: > The rewritten code would be better written like this: > > (global-set-key (kbd "") > '(lambda () > (interactive) > (next-buffer) > (while (member (buffer-name (current-buffer)) > '("*scratch*" "*Messages*" "*Whitespace Errors*")) > (next-buffer)))) What if only *scratch* is left? -- David Kastrup