[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I want an unsaveable buffer

From: Michael Heerdegen
Subject: Re: I want an unsaveable buffer
Date: Mon, 04 Aug 2014 20:37:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Doug Lewan <address@hidden> writes:

> Does anyone know of a natural approach to this?

Maybe the following approach would be simpler:

  - 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

  - define a minor-mode that binds [remap save-buffer] to
    `my-save-buffer-maybe' (or use just `global-set-key')


reply via email to

[Prev in Thread] Current Thread [Next in Thread]