aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-05-29 06:14:19 +0000
committerMartin Rudalics2007-05-29 06:14:19 +0000
commit250495a7193b1494d5a5d488d4134768709a5fb7 (patch)
tree731d1c0f39d8ea8650893a93b4771e974a205b2e
parente8f6c0ba907b16261b91688fd11afacb925b7fe6 (diff)
downloademacs-250495a7193b1494d5a5d488d4134768709a5fb7.tar.gz
emacs-250495a7193b1494d5a5d488d4134768709a5fb7.zip
(table--point-entered-cell-function)
(table--point-left-cell-function): Bind `inhibit-point-motion-hooks' to t.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/table.el26
2 files changed, 21 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2aa045826f5..b8f8423ea74 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-05-29 Martin Rudalics <rudalics@gmx.at>
2
3 * textmodes/table.el (table--point-entered-cell-function)
4 (table--point-left-cell-function): Bind
5 `inhibit-point-motion-hooks' to t.
6
12007-05-29 Nikolaj Schumacher <n_schumacher@web.de> (tiny change) 72007-05-29 Nikolaj Schumacher <n_schumacher@web.de> (tiny change)
2 8
3 * emacs-lisp/rx.el (rx): Doc fix. 9 * emacs-lisp/rx.el (rx): Doc fix.
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el
index c0a85eeb68c..69c3c60f912 100644
--- a/lisp/textmodes/table.el
+++ b/lisp/textmodes/table.el
@@ -5333,21 +5333,25 @@ instead of the current buffer and returns the OBJECT."
5333(defun table--point-entered-cell-function (&optional old-point new-point) 5333(defun table--point-entered-cell-function (&optional old-point new-point)
5334 "Point has entered a cell. 5334 "Point has entered a cell.
5335Refresh the menu bar." 5335Refresh the menu bar."
5336 (unless table-cell-entered-state 5336 ;; Avoid calling point-motion-hooks recursively.
5337 (setq table-cell-entered-state t) 5337 (let ((inhibit-point-motion-hooks t))
5338 (setq table-mode-indicator t) 5338 (unless table-cell-entered-state
5339 (force-mode-line-update) 5339 (setq table-cell-entered-state t)
5340 (table--warn-incompatibility) 5340 (setq table-mode-indicator t)
5341 (run-hooks 'table-point-entered-cell-hook))) 5341 (force-mode-line-update)
5342 (table--warn-incompatibility)
5343 (run-hooks 'table-point-entered-cell-hook))))
5342 5344
5343(defun table--point-left-cell-function (&optional old-point new-point) 5345(defun table--point-left-cell-function (&optional old-point new-point)
5344 "Point has left a cell. 5346 "Point has left a cell.
5345Refresh the menu bar." 5347Refresh the menu bar."
5346 (when table-cell-entered-state 5348 ;; Avoid calling point-motion-hooks recursively.
5347 (setq table-cell-entered-state nil) 5349 (let ((inhibit-point-motion-hooks t))
5348 (setq table-mode-indicator nil) 5350 (when table-cell-entered-state
5349 (force-mode-line-update) 5351 (setq table-cell-entered-state nil)
5350 (run-hooks 'table-point-left-cell-hook))) 5352 (setq table-mode-indicator nil)
5353 (force-mode-line-update)
5354 (run-hooks 'table-point-left-cell-hook))))
5351 5355
5352(defun table--warn-incompatibility () 5356(defun table--warn-incompatibility ()
5353 "If called from interactive operation warn the know incompatibilities. 5357 "If called from interactive operation warn the know incompatibilities.