From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#11298: Scratch buffer (Summary of Xah's proposals, as I see it) Date: Tue, 24 Apr 2012 17:50:12 +0530 Message-ID: <81397tiao3.fsf@gmail.com> References: <81397xm657.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335270093 24998 80.91.229.3 (24 Apr 2012 12:21:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2012 12:21:33 +0000 (UTC) To: 11298@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 24 14:21:32 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SMekN-0008CZ-El for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Apr 2012 14:21:31 +0200 Original-Received: from localhost ([::1]:50870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMekJ-0001UP-OH for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Apr 2012 08:21:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMekD-0001TM-Ej for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 08:21:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMek7-000568-Im for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 08:21:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMek7-000563-Bv for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 08:21:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SMekr-00043c-PG for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 08:22:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <81397xm657.fsf@gmail.com> Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Apr 2012 12:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11298-submit@debbugs.gnu.org id=B11298.133527008415545 (code B ref 11298); Tue, 24 Apr 2012 12:22:01 +0000 Original-Received: (at 11298) by debbugs.gnu.org; 24 Apr 2012 12:21:24 +0000 Original-Received: from localhost ([127.0.0.1]:50239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMekD-00042c-WE for submit@debbugs.gnu.org; Tue, 24 Apr 2012 08:21:23 -0400 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:53574) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMekB-00042O-4l for 11298@debbugs.gnu.org; Tue, 24 Apr 2012 08:21:20 -0400 Original-Received: by pbbrp16 with SMTP id rp16so22115pbb.3 for <11298@debbugs.gnu.org>; Tue, 24 Apr 2012 05:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=cGUqiqCivJ0gKl6iws177qn+uojVvMtQo2c0kBPKihY=; b=iI6oFfObxyd/UdLBQQ2OMUZyc40ymPiwfBTg9o/fTa/gfNF6c0whdOZ4lwd2wAT+Aw M8drDSSBns6BaPHn1/SuA9p6rS6/vvZHicB2lausZuUCkP1mIaIy++dYserMFcm1fLoB byv2OdQJvorj5vVFuzT95F2vYu8rqw4z5YE3ZYfxT0qGLWamrXx3nBMX2ujfibQFhzzb azLY0NfKqn1/mHEff5fNeaWa/oCCTRsdRyxy+pkOfpPzO3HrSAph1HbEn/umBdw3P06/ vv2r03s94XMnHIUx1V7sIatXE4xVMAXZwxd9+1L5EITV7Btvd32tVfszsqw4L6mBwnHa 8U0w== Original-Received: by 10.68.224.195 with SMTP id re3mr3503395pbc.90.1335270025619; Tue, 24 Apr 2012 05:20:25 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.242.146.126]) by mx.google.com with ESMTPS id qq1sm11495880pbc.18.2012.04.24.05.20.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 05:20:24 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (windows-nt) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59439 Archived-At: Let me rephrase ideas in Xah's post - http://lists.gnu.org/archive/html/help-gnu-emacs/2012-04/msg00260.html. The recommendations involve, 1. "Menu->File->Visit New File" should be changed to "File->New". This will create an 'Untitled N' buffer. This will mark the buffer as `potentially-file-visiting'. Specifically it will not ask for the name of the file. 2. Introduce "File->Save as" will mark a `potentially-file-visiting' buffer as a `real-file-visiting-buffer'. 3. `potentially-file-visiting-buffer' should be queried for save on exit. Speaking of scratch buffer, -------------------------- Emacs has a notion of buffers that are *not* and *never will be (?)* file-visiting. Their only purpose is to do THROWAWAY work ("use and throw") with an understanding that Emacs will promise /not/ to annoy the user with "Should I save this THROWAWAY work? It seems valuable to me even though you think otherwise". (Hmm, I like the way Emacs gives primacy to throwaway work.) 1. It is useful to have scratch buffers. Though most users will have no use for it. 2. There could be mutliple user-created scratch buffers and they could be created in multiple programming lang modes, depending on user's needs. I think, -------- If Emacs *deduces* file-visitedness based on the name of the buffer, I think much of the problem could be elegantly dealt with. 1. C-x b => Create "Untitled N". It is potentially-file-visiting. Such buffers always queried on exit. 2. C-u C-x b => Creates "*throway-%s*". Note that the default offered to the user names the buffer specially with leading and trailing asterisks, These are non-file-visiting buffers.