From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: I want an unsaveable buffer Date: Mon, 4 Aug 2014 15:48:11 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9892B0FA07@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1407167324 12719 80.91.229.3 (4 Aug 2014 15:48:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2014 15:48:44 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 04 17:48:37 2014 Return-path: Envelope-to: geh-help-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 1XEKV2-0008Pl-KV for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 17:48:36 +0200 Original-Received: from localhost ([::1]:53118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEKV2-0000in-7k for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 11:48:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEKUl-0000do-29 for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 11:48:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEKUe-00031w-Tn for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 11:48:19 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:25627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEKUe-00031b-QO for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 11:48:12 -0400 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.02.0247.003; Mon, 4 Aug 2014 11:48:12 -0400 Thread-Topic: I want an unsaveable buffer Thread-Index: Ac+v+35LHSww/yjYQ0GmmhfGFA6Cnw== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99076 Archived-At: I work in *scratch* a lot, /and/ I save (C-xC-s) very frequently just as a = matter of habit. The consequence is that I find myself typing to the "File = to save in:" prompt when I just want to continue working. Turning off or remapping C-xC-s in *scratch* is easy enough, but the obviou= sly useful generalization is to turn saving off in any new buffer not assoc= iated with a regular file. (Writing buffer contents would remain, but you a= lready have to think when you want that.) The natural route is to write a hook for buffer creation. The only hook I c= an find for that is buffer-list-update-hook which is also run on renaming, = deletion, etc. I can imagine grabbing the output of (backtrace) to look at = how the hook was called, but that no longer feels natural to me. Does anyone know of a natural approach to this? Thanks. ,Doug Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 Hazmat condition: There's some emacs on the floor.