From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: erase-buffer Date: Tue, 11 May 2004 17:44:14 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87brkv3txd.fsf@mail.jurta.org> References: <20040429.150303.42778779.wl@gnu.org> <200404300142.KAA01027@etlken.m17n.org> <87u0z1puxa.fsf@mail.jurta.org> <200404301326.WAA02744@etlken.m17n.org> <8765bga5tt.fsf@mail.jurta.org> <200405020157.KAA07108@etlken.m17n.org> <200405060505.OAA21188@etlken.m17n.org> <200405061310.WAA22378@etlken.m17n.org> <200405101213.VAA04125@etlken.m17n.org> <87ekpsuzqa.fsf-monnier+emacs@gnu.org> <877jvjnl4g.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084287755 24788 80.91.224.253 (11 May 2004 15:02:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 May 2004 15:02:35 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, handa@m17n.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 11 17:02:23 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNYlz-00054z-00 for ; Tue, 11 May 2004 17:02:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNYly-0006YF-00 for ; Tue, 11 May 2004 17:02:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNYbl-0003Rg-CE for emacs-devel@quimby.gnus.org; Tue, 11 May 2004 10:51:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNYal-00038x-MZ for emacs-devel@gnu.org; Tue, 11 May 2004 10:50:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNYaC-0002yN-OW for emacs-devel@gnu.org; Tue, 11 May 2004 10:50:45 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNYaC-0002vg-7G; Tue, 11 May 2004 10:50:12 -0400 Original-Received: from mail.jurta.org (80-235-44-143-dsl.mus.estpak.ee [80.235.44.143]) by spoon.dreamhost.com (Postfix) with ESMTP id 33A6213D821; Tue, 11 May 2004 07:50:04 -0700 (PDT) Original-To: Stefan Monnier In-Reply-To: <877jvjnl4g.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "11 May 2004 09:39:22 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23148 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23148 Stefan Monnier writes: > So my question is: why is erase-buffer a command? > I didn't know it was a command until 5 days ago, it is not bound to any > key, and I can't think of any circumstance where a user might want to say > M-x erase-buffer RET. Actually the only case I can think of is when the > user knows what he's doing; and allowing the M-x erase-buffer to work in > Custom buffers would then still make perfect sense (even if we don't fix > the lingering overlays). I never used erase-buffer as a command, but as I can see erase-buffer is a disabled command with `disable' property put on its symbol. So as a command it is already safe not to be executed thoughtlessly. PS: I also think that it should remove the current buffer completely with all its overlays. -- Juri Linkov http://www.jurta.org/emacs/