[Top][All Lists]

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

Re: Include buffer-move.el

From: Davis Herring
Subject: Re: Include buffer-move.el
Date: Wed, 15 Aug 2007 08:20:45 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-6.el3.2lanl

>> It's a rather important detail, since with the original rules it is
>> impossible to swap two neighbouring squares, partitioning all possible
>> arrangements into two distinct sets with no way to transform between
>> them.
> Why would you have games if you could not cheat? Anyway, just add a
> buffer named "empty" and only allow switching with that one.

The best thing about Emacs is how it directly supports so many useful
user-interaction modes.  Here, for instance, we can have a 15-mode (Lisp
allows symbols to begin with digits -- take that, "real" languages!) for
the empty space that supports C-S-u/l/d/r to exchange the empty space with
an adjacent tile.

Some users (probably closet vi users who don't understand that point is
really between buffers, not in a particular buffer) will complain that you
ought to be able to slide a number tile -into- the empty space without
having to move to the empty space and slide it the other direction, but
clearly all moves just shove the empty space around so you can put select
that buffer and go to town.


This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during

reply via email to

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