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: RE: I want an unsaveable buffer Date: Mon, 4 Aug 2014 21:41:34 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9892B0FAF5@DAKIYA1.pegasus.local> References: <155DEC68569B714B86C2C7075F5EDA9892B0FA07@DAKIYA1.pegasus.local> <87ha1sf6df.fsf@web.de> 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 1407188523 19915 80.91.229.3 (4 Aug 2014 21:42:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2014 21:42:03 +0000 (UTC) To: Michael Heerdegen , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 04 23:41:55 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 1XEQ0v-0000yL-P5 for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 23:41:53 +0200 Original-Received: from localhost ([::1]:55077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEQ0v-0005l1-AU for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 17:41:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEQ0g-0005kR-UI for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 17:41:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEQ0c-0007hs-GV for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 17:41:38 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:50737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEQ0c-0007hb-CK for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 17:41:34 -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 17:41:34 -0400 Thread-Topic: I want an unsaveable buffer Thread-Index: Ac+v+35LHSww/yjYQ0GmmhfGFA6CnwAF9BrZAAZhRhA= In-Reply-To: <87ha1sf6df.fsf@web.de> 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:99082 Archived-At: Very reasonable. Thanks. ,Doug Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 Hazmat condition: There's some emacs on the floor. > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > Behalf Of Michael Heerdegen > Sent: Monday, 2014 August 04 14:38 > To: help-gnu-emacs@gnu.org > Subject: Re: I want an unsaveable buffer >=20 > Doug Lewan writes: >=20 > > Does anyone know of a natural approach to this? >=20 > Maybe the following approach would be simpler: >=20 > - define a command `my-save-buffer-maybe' that calls > `buffer-file-name', and does `save-buffer' when it returns a file, > but does nothing when it returns nil >=20 > - define a minor-mode that binds [remap save-buffer] to > `my-save-buffer-maybe' (or use just `global-set-key') >=20 > Michael. >=20