all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: defconst in life.el
Date: Sun, 14 Nov 2004 12:40:33 -0600 (CST)	[thread overview]
Message-ID: <200411141840.iAEIeXG24252@raven.dms.auburn.edu> (raw)

I believe all uses of defconst in life.el are wrong.  Most are changed
in functions in life.el itself and produce compiler warnings.  Unless
there are objections, I will install the following patch.  My previous
message to the author could not be delivered, which probably means
that the file is no longer maintained.

===File ~/life.el-diff======================================
*** life.el	02 Sep 2003 07:51:42 -0500	1.20
--- life.el	14 Nov 2004 10:24:04 -0600	
***************
*** 1,6 ****
  ;;; life.el --- John Horton Conway's `Life' game for GNU Emacs
  
! ;; Copyright (C) 1988, 2001 Free Software Foundation, Inc.
  
  ;; Author: Kyle Jones <kyleuunet.uu.net>
  ;; Keywords: games
--- 1,6 ----
  ;;; life.el --- John Horton Conway's `Life' game for GNU Emacs
  
! ;; Copyright (C) 1988, 2001, 2004 Free Software Foundation, Inc.
  
  ;; Author: Kyle Jones <kyleuunet.uu.net>
  ;; Keywords: games
***************
*** 30,36 ****
  
  ;;; Code:
  
! (defconst life-patterns
    [("@@@" " @@" "@@@")
     ("@@@ @@@" "@@  @@ " "@@@ @@@")
     ("@@@ @@@" "@@   @@" "@@@ @@@")
--- 30,36 ----
  
  ;;; Code:
  
! (defvar life-patterns
    [("@@@" " @@" "@@@")
     ("@@@ @@@" "@@  @@ " "@@@ @@@")
     ("@@@ @@@" "@@   @@" "@@@ @@@")
***************
*** 80,95 ****
  
  ;; list of numbers that tell how many characters to move to get to
  ;; each of a cell's eight neighbors.
! (defconst life-neighbor-deltas nil)
  
  ;; window display always starts here.  Easier to deal with than
  ;; (scroll-up) and (scroll-down) when trying to center the display.
! (defconst life-window-start nil)
  
  ;; For mode line
! (defconst life-current-generation nil)
  ;; Sadly, mode-line-format won't display numbers.
! (defconst life-generation-string nil)
  
  (defvar life-initialized nil
    "Non-nil if `life' has been run at least once.")
--- 80,95 ----
  
  ;; list of numbers that tell how many characters to move to get to
  ;; each of a cell's eight neighbors.
! (defvar life-neighbor-deltas nil)
  
  ;; window display always starts here.  Easier to deal with than
  ;; (scroll-up) and (scroll-down) when trying to center the display.
! (defvar life-window-start nil)
  
  ;; For mode line
! (defvar life-current-generation nil)
  ;; Sadly, mode-line-format won't display numbers.
! (defvar life-generation-string nil)
  
  (defvar life-initialized nil
    "Non-nil if `life' has been run at least once.")
============================================================

             reply	other threads:[~2004-11-14 18:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-14 18:40 Luc Teirlinck [this message]
2004-11-14 21:02 ` defconst in life.el Stefan Monnier
2004-11-14 21:39   ` Luc Teirlinck
2004-11-14 21:42     ` Luc Teirlinck
2004-11-14 22:32     ` Thien-Thi Nguyen
2004-11-14 22:51       ` Luc Teirlinck
2004-11-17  1:48         ` Kenichi Handa
2004-11-23  2:34           ` Luc Teirlinck
2004-11-19 17:52       ` Juri Linkov
2004-11-19 18:47         ` Thien-Thi Nguyen
2004-11-15 14:00 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200411141840.iAEIeXG24252@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.