mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
(table--point-entered-cell-function)
(table--point-left-cell-function): Bind `inhibit-point-motion-hooks' to t.
This commit is contained in:
parent
e8f6c0ba90
commit
250495a719
2 changed files with 21 additions and 11 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2007-05-29 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* textmodes/table.el (table--point-entered-cell-function)
|
||||
(table--point-left-cell-function): Bind
|
||||
`inhibit-point-motion-hooks' to t.
|
||||
|
||||
2007-05-29 Nikolaj Schumacher <n_schumacher@web.de> (tiny change)
|
||||
|
||||
* emacs-lisp/rx.el (rx): Doc fix.
|
||||
|
|
|
|||
|
|
@ -5333,21 +5333,25 @@ instead of the current buffer and returns the OBJECT."
|
|||
(defun table--point-entered-cell-function (&optional old-point new-point)
|
||||
"Point has entered a cell.
|
||||
Refresh the menu bar."
|
||||
(unless table-cell-entered-state
|
||||
(setq table-cell-entered-state t)
|
||||
(setq table-mode-indicator t)
|
||||
(force-mode-line-update)
|
||||
(table--warn-incompatibility)
|
||||
(run-hooks 'table-point-entered-cell-hook)))
|
||||
;; Avoid calling point-motion-hooks recursively.
|
||||
(let ((inhibit-point-motion-hooks t))
|
||||
(unless table-cell-entered-state
|
||||
(setq table-cell-entered-state t)
|
||||
(setq table-mode-indicator t)
|
||||
(force-mode-line-update)
|
||||
(table--warn-incompatibility)
|
||||
(run-hooks 'table-point-entered-cell-hook))))
|
||||
|
||||
(defun table--point-left-cell-function (&optional old-point new-point)
|
||||
"Point has left a cell.
|
||||
Refresh the menu bar."
|
||||
(when table-cell-entered-state
|
||||
(setq table-cell-entered-state nil)
|
||||
(setq table-mode-indicator nil)
|
||||
(force-mode-line-update)
|
||||
(run-hooks 'table-point-left-cell-hook)))
|
||||
;; Avoid calling point-motion-hooks recursively.
|
||||
(let ((inhibit-point-motion-hooks t))
|
||||
(when table-cell-entered-state
|
||||
(setq table-cell-entered-state nil)
|
||||
(setq table-mode-indicator nil)
|
||||
(force-mode-line-update)
|
||||
(run-hooks 'table-point-left-cell-hook))))
|
||||
|
||||
(defun table--warn-incompatibility ()
|
||||
"If called from interactive operation warn the know incompatibilities.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue