]> code.delx.au - gnu-emacs/commitdiff
Quick temporary hack to fix curcell refreshing.
authorVincent Belaïche <vincentb1@users.sourceforge.net>
Wed, 30 Dec 2015 10:57:29 +0000 (11:57 +0100)
committerVincent Belaïche <vincentb1@users.sourceforge.net>
Wed, 30 Dec 2015 16:41:03 +0000 (17:41 +0100)
The problem was caused by change: 2015-04-13 Deprecate `intangible'
and `point-entered' properties. The problem is that this change has
removed the (setq ses--curcell t) setting in the ses-command-hook
function.

* ses.el (ses-check-curcell): replace `(eq ses--curcell t)' by just `t' as
a condition to call function `ses-set-curcell'. Comment this as a quick
temporary hack to make it work, as I don't know yet whether a definite
correction would be to make the ses-set-curcell at every ses-check-curcell,
or to revert to the previous approach, ie marking ses--curcell as out-of-date
at every potentially cursor motion command.

lisp/ses.el

index ec1359bbbcbe3ce57fb14545f4caf9927dd27a69..7347eb8f5fdcc7d9bcf461c7fae36eb190c4c3e7 100644 (file)
@@ -1117,7 +1117,11 @@ region, or nil if cursor is not at a cell."
 The end marker is appropriate if some argument is 'end.
 A range is appropriate if some argument is 'range.
 A single cell is appropriate unless some argument is 'needrange."
-  (if (eq ses--curcell t)
+  (if t;; Vincent B.:
+      ;; previously (eq ses--curcell t)
+      ;; this is a quick hack to temporary fix the bug implied by changes made by Stefan in
+      ;; http://git.savannah.gnu.org/cgit/emacs.git/commit/lisp/ses.el?id=84e0b7dad6f1a8e53261f9b96f5a9080fea681a4
+      ;;-------------------------------------------------------------------------
       ;; curcell recalculation was postponed, but user typed ahead.
       (ses-set-curcell))
   (cond