]> code.delx.au - gnu-emacs/commit
* lisp/play/landmark.el: Use lexical-binding and avoid `intangible'.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 25 Jun 2014 18:11:45 +0000 (14:11 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 25 Jun 2014 18:11:45 +0000 (14:11 -0400)
commitf51e7ac3695f7c86af9e8d9464cf7da092c6e4ce
treef5b8b02a7f0c902f715be74f5520025d6fbaaa4c
parent3f107ef79783017ce7ffe7e7477a09524bea1330
* lisp/play/landmark.el: Use lexical-binding and avoid `intangible'.
(landmark--last-pos): New var.
(landmark--intangible-chars): New const.
(landmark--intangible): New function.
(landmark-mode, landmark-move): Use it.
(landmark-mode): Remove properties.
(landmark-plot-square, landmark-point-square, landmark-goto-xy)
(landmark-cross-qtuple):
Don't worry about `intangible' any more.
(landmark-click, landmark-point-y): Same; and don't assume point-min==1.
(landmark-init-display): Don't set `intangible' and `point-entered'.
(square): Remove.  Inline it instead.
(landmark--distance): Rename from `distance'.
(landmark-calc-distance-of-robot-from): Rename from
calc-distance-of-robot-from.
(landmark-calc-smell-internal): Rename from calc-smell-internal.
lisp/ChangeLog
lisp/play/landmark.el