From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Friedrich Dominicus Newsgroups: gmane.emacs.help Subject: Re: Is there any way to tell M-x tetris to save scores outside of /tmp? Date: 23 Apr 2003 07:40:29 +0200 Organization: Q Software Solutions GmbH Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87k7dl3h6a.fsf@fbigm.here> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051076678 22922 80.91.224.249 (23 Apr 2003 05:44:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2003 05:44:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 07:44:36 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198D3b-0005xZ-00 for ; Wed, 23 Apr 2003 07:44:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198CzZ-0005F7-05 for gnu-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2003 01:40:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-X-Trace: news.t-online.com 1051076079 06 8529 jI13EpVTSPYpCF 030423 05:34:39 Original-X-Complaints-To: abuse@t-online.com X-ID: ZpMs0iZAZeTTk0yDHMtMMr3x1obHRYXyqonWW8Bwxteb8urAWlplwS User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Native Windows TTY Support) Original-Xref: shelby.stanford.edu gnu.emacs.help:112195 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8694 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8694 "Daniel R. Anderson" writes: > Hi, > > Every once in a while I use M-x tetris to help me let off some steam, > but scores are stored in /tmp and /tmp is emtied every reboot. Is there > any way to specify another file, so that scores stick around longer then > 1 reboot? (Granted, the time between reboots may be several weeks, but > it's still dissapointing to boot up and see no tetris scores. ) Well as I understand you use Emacs regularly. And you do not know how to find a special file on it? Ok this is what I've done C-h a tetris a window with this name comes up moved the cursor on it typed F5 which runs find-symbol-at-point here. Tetris is a functions so find-function-at-point would have been fine too a buffer with tetris.el has been opened. run C-s score type it again and found this: (defvar tetris-score-file "/tmp/tetris-scores" ;; anybody with a well-connected server want to host this? ;(defvar tetris-score-file "/anonymous@ftp.pgt.com:/pub/cgw/tetris-scores" "File for holding high scores") Well, how much easier could one find things? The answer is (setq tetrix-score-file "path_which_persists") Regards Friedrich