From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.devel Subject: Re: go to next unsaved buffer Date: 04 Jul 2002 14:59:29 +0800 Sender: emacs-devel-admin@gnu.org Message-ID: <87it3wger2.fsf@jidanni.org> References: <87y9cuzgzt.fsf@jidanni.org> <20020702103800.GA179@xyz> <87sn311iqf.fsf@jidanni.org> <20020703121653.GA179@xyz> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025782248 3871 127.0.0.1 (4 Jul 2002 11:30:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2002 11:30:48 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Q4oy-00010K-00 for ; Thu, 04 Jul 2002 13:30:48 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Q4uv-0006R0-00 for ; Thu, 04 Jul 2002 13:36:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Q4Ol-0006Og-00; Thu, 04 Jul 2002 07:03:43 -0400 Original-Received: from msr85.hinet.net ([168.95.4.185] helo=msr.hinet.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Q4NC-0006L2-00; Thu, 04 Jul 2002 07:02:06 -0400 Original-Received: from debian (61-227-44-97.HINET-IP.hinet.net [61.227.44.97]) by msr.hinet.net (8.9.3/8.9.3) with ESMTP id TAA14512; Thu, 4 Jul 2002 19:02:09 +0800 (CST) Original-Received: from jidanni by debian with local (Exim 3.35 #1 (Debian)) id 17Q0aP-0000vG-00; Thu, 04 Jul 2002 14:59:29 +0800 Original-To: Paul Stoeber In-Reply-To: <20020703121653.GA179@xyz> Original-Lines: 44 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5448 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5448 >>>>> "P" == Paul Stoeber writes: P> On Wed, Jul 03, 2002 at 01:30:16PM +0800, Dan Jacobson wrote: Paul> `save-some-buffers' already has this: C-r. Type C-M-c to exit from Paul> the recursive edit. >> >> It is a bug that C-h k C-x s does not mention this. P> The prompt "Save file /tmp/1? (y, n, !, ., q, C-r or C-h)" P> mentions C-r, and C-h explains it. not good enough. I want to know what I am in for before I press the key, that's only fair and square. What if all the C-s features were only learnable once one was already searching. [p.s. not talking about reading Info here, just C-h k] >> By the way I just tired what you mentioned. Seems like a great way to >> get all confused. I ended up with lots of [[[ ]]] in the modeline and >> I had to hit exit-recursive-edit several times to get out. >> idea is simpler in that you aren't under the gun of being in the >> middle of answering the question of saving each buffer. P> I've tried your idea, and it's actually more comfortable than the P> the dialog with `save-some-buffers'. P> A problem is: what is an "unsaved buffer"? i mean the kind that C-x s would ask about, with files attached. Oh, and then there's some gnus draft buffers too... P> (defun switch-to-next-unsaved-buffer () a quick test of your function seems that it does it all... hope to see it in emacs soon, along with an official keybinding. Pretty darn handy actually. uh oh, want to exclude modified *scratch* type buffers... and some users would want *shell* to be included which seems not to now... ok, this all should have customization instructions... better yet, a handy 'only-if-file-associated 'processes[-too] .... etc. predicates list... -- http://jidanni.org/ Taiwan(04)25854780