From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11298: Scratch buffer (Summary of Xah's proposals, as I see it) Date: Tue, 24 Apr 2012 14:42:10 -0400 Message-ID: References: <81397xm657.fsf@gmail.com> <81397tiao3.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335293004 30175 80.91.229.3 (24 Apr 2012 18:43:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2012 18:43:24 +0000 (UTC) Cc: 11298@debbugs.gnu.org To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 24 20:43:22 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 1SMkhu-00086O-I9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Apr 2012 20:43:22 +0200 Original-Received: from localhost ([::1]:58220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMkht-0001th-WF for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Apr 2012 14:43:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMkhr-0001tI-Ku for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 14:43:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMkhm-0002Y7-QT for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 14:43:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMkhm-0002Xr-Mc for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 14:43:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SMkiY-0004it-Bx for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 14:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Apr 2012 18:44:02 +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.133529298418077 (code B ref 11298); Tue, 24 Apr 2012 18:44:02 +0000 Original-Received: (at 11298) by debbugs.gnu.org; 24 Apr 2012 18:43:04 +0000 Original-Received: from localhost ([127.0.0.1]:51095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMkhb-0004hW-UW for submit@debbugs.gnu.org; Tue, 24 Apr 2012 14:43:04 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:60366) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMkhY-0004h6-C5 for 11298@debbugs.gnu.org; Tue, 24 Apr 2012 14:43:01 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3OIgBHK011334; Tue, 24 Apr 2012 14:42:11 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 183A3B4018; Tue, 24 Apr 2012 14:42:11 -0400 (EDT) In-Reply-To: <81397tiao3.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 24 Apr 2012 17:50:12 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4202=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4202> : streams <749801> : uri <1103156> 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:59462 Archived-At: > 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. Other than "to do like others do", what would be the advantage? I see a bunch of disadvantages, starting with the choice of major-mode, the location of auto-save files, the VC state, etc... IOW, I think this is a case where the Emacs way is "objectively" superior, so I'd need pretty compelling evidence to add support for such "new file buffer whose file doesn't have a name yet". OTOH, I'd be happy to rename "Visit New File" to something like "New" (while keeping the behavior of requesting a file name) if that can help. > 2. There could be mutliple user-created scratch buffers and they could > be created in multiple programming lang modes, depending on user's > needs. While I can see users appreciating this feature, I think it'd be good enough to offer it via a package that users could elect to use. I.e. I'd be happy to accept patches needed to allow writing such a package, but as for having such a feature by default, I think it's over-engineering. In my mind, the *scratch* used to be a kind of slash screen, and it only exists now aside from the actual splash screen for historical reasons. So I think the best solution is to try and hide/eliminate the *scratch* buffer. Stefan