From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Grant Rettke Newsgroups: gmane.emacs.help Subject: Re: I want an unsaveable buffer Date: Mon, 4 Aug 2014 12:12:52 -0500 Message-ID: References: <155DEC68569B714B86C2C7075F5EDA9892B0FA07@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1407172398 15081 80.91.229.3 (4 Aug 2014 17:13:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2014 17:13:18 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Doug Lewan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 04 19:13:11 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 1XELoq-0007rn-Ey for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 19:13:08 +0200 Original-Received: from localhost ([::1]:53764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XELop-0003wE-VM for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 13:13:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XELod-0003vw-EJ for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 13:12:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XELoc-0000sF-Bz for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 13:12:55 -0400 Original-Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:45298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XELoc-0000s9-6y for help-gnu-emacs@gnu.org; Mon, 04 Aug 2014 13:12:54 -0400 Original-Received: by mail-ob0-f175.google.com with SMTP id wp18so4691688obc.20 for ; Mon, 04 Aug 2014 10:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=IAR2J///KqnX2iOL8f30VNpNRlkEMCmYyPkUTBhZVjk=; b=XocGy/0saO58rISEc4zirKIRNlssx5bGTOSzvTQPkPbK8iz5mlEXuHFyPLS7b+i91K gPdp6u1OB/LrYdwH77lLGXHF7BDJtbzhkBiaFRBr5V2ONQZYOOMa37wiWuk4/0WdKHUe jdYGE4Td90xT5STzggE5UeVNlI8JcLoadk5iBiYdZf+2dcozZiT9iC30IA9p735AKWQP TWiJ2Wc0s0xaptJoXrJOZ7JF8d7IbZ9jtEqq98SMEUHdOWVQyyu9U5yaNzhGMtyaSEb2 mqTamjqqYda1i/ir3vrikjlQUHJe8S5bGU52ViZ4y9lRXz8gJYkCqOeG9atEhyxaBRy8 HhHw== X-Received: by 10.182.44.169 with SMTP id f9mr34744637obm.18.1407172372967; Mon, 04 Aug 2014 10:12:52 -0700 (PDT) Original-Received: by 10.182.77.39 with HTTP; Mon, 4 Aug 2014 10:12:52 -0700 (PDT) In-Reply-To: <155DEC68569B714B86C2C7075F5EDA9892B0FA07@DAKIYA1.pegasus.local> X-Google-Sender-Auth: ZatMTaZZ4LgGsRnMfKjdGhiaiCo X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22f 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:99077 Archived-At: Totally understood and now I want to tell you on real-auto-save because I too am a recovering C-x C-s addict. I add a hook to any buffer that needs it and forget about worrying about saving all the time. Grant Rettke | ACM, ASA, FSF, IEEE, SIAM gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Mon, Aug 4, 2014 at 10:48 AM, Doug Lewan wr= ote: > 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 "Fil= e 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 obvi= ously useful generalization is to turn saving off in any new buffer not ass= ociated with a regular file. (Writing buffer contents would remain, but you= already have to think when you want that.) > > The natural route is to write a hook for buffer creation. The only hook I= can 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 a= t 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. > > >