From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: B. T. Raven Newsgroups: gmane.emacs.help Subject: how to get around deprecated function Date: 28 Apr 2015 15:59:04 -0700 Organization: NewsGuy - Unlimited Usenet $23.95 Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430263783 8868 80.91.229.3 (28 Apr 2015 23:29:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2015 23:29:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 01:29:43 2015 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 1YnEwg-0003vK-8Y for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 01:29:42 +0200 Original-Received: from localhost ([::1]:36191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnEwf-00065R-K5 for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 19:29:41 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!drn Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: a761.newsdawg.com User-Agent: Direct Read News 5.60 X-Received-Bytes: 1047 X-Received-Body-CRC: 4070686774 Original-Xref: usenet.stanford.edu gnu.emacs.help:211771 X-Mailman-Approved-At: Tue, 28 Apr 2015 19:29:18 -0400 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:104054 Archived-At: This was posted by mistake to the gnus group: > >Hello: > >I am constantly losing short pieces of text left in *scratch* and I wrote this >interactive function: > >(defun save-scratchtemp ();; M-x scr > (interactive) > (switch-to-buffer "*scratch*") > (mark-whole-buffer) > (setq start (point) end (mark)) > (append-to-file start end "c:/mydocu~1/scratchtemp.txt") >) > >It "works" but according to the docs mark-whole-buffer shouldn't be used this >way.Is there an understandable (to me) right way of doing this or doing >something else that can be invoked as easily? > >Thanks, > >Ed >