diff options
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/enriched.el | 3 | ||||
-rw-r--r-- | lisp/textmodes/flyspell.el | 2 | ||||
-rw-r--r-- | lisp/textmodes/table.el | 19 | ||||
-rw-r--r-- | lisp/textmodes/tex-mode.el | 2 |
4 files changed, 11 insertions, 15 deletions
diff --git a/lisp/textmodes/enriched.el b/lisp/textmodes/enriched.el index 935be06812f..26f22a9a4a7 100644 --- a/lisp/textmodes/enriched.el +++ b/lisp/textmodes/enriched.el @@ -325,8 +325,7 @@ the region, and the START and END of each region." ;;;###autoload (defun enriched-encode (from to orig-buf) (if enriched-verbose (message "Enriched: encoding document...")) - (let ((inhibit-read-only t) - (inhibit-point-motion-hooks t)) + (let ((inhibit-read-only t)) (save-restriction (narrow-to-region from to) (delete-to-left-margin) diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 774e7ac7377..a66b72cfd06 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -1032,7 +1032,6 @@ Mostly we check word delimiters." (defun flyspell-word-search-backward (word bound &optional ignore-case) (save-excursion (let* ((r '()) - (inhibit-point-motion-hooks t) (flyspell-not-casechars (flyspell-get-not-casechars)) (bound (if (and bound (> bound (point-min))) @@ -1066,7 +1065,6 @@ Mostly we check word delimiters." (defun flyspell-word-search-forward (word bound) (save-excursion (let* ((r '()) - (inhibit-point-motion-hooks t) (flyspell-not-casechars (flyspell-get-not-casechars)) (bound (if (and bound (< bound (point-max))) diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index fc06c4c0da1..964f94228b6 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el @@ -5221,16 +5221,15 @@ instead of the current buffer and returns the OBJECT." "Point has entered a cell. Refresh the menu bar." ;; Avoid calling point-motion-hooks recursively. - (let ((inhibit-point-motion-hooks t)) - (force-mode-line-update) - (pcase dir - ('left - (setq table-mode-indicator nil) - (run-hooks 'table-point-left-cell-hook)) - ('entered - (setq table-mode-indicator t) - (table--warn-incompatibility) - (run-hooks 'table-point-entered-cell-hook))))) + (force-mode-line-update) + (pcase dir + ('left + (setq table-mode-indicator nil) + (run-hooks 'table-point-left-cell-hook)) + ('entered + (setq table-mode-indicator t) + (table--warn-incompatibility) + (run-hooks 'table-point-entered-cell-hook)))) (defun table--warn-incompatibility () "If called from interactive operation warn the know incompatibilities. diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index bb8ea0d942c..ca0312d8fb0 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1039,7 +1039,7 @@ says which mode to use." ;; have files annotated with -*- LaTeX -*- (e.g. because they received ;; them from someone using AUCTeX). ;; FIXME: Turn them into autoloads so that AUCTeX can override them -;; with it's own autoloads? Or maybe rely on `major-mode-remap-alist'? +;; with its own autoloads? Or maybe rely on `major-mode-remap-alist'? ;;;###autoload (defalias 'TeX-mode #'tex-mode) ;;;###autoload (defalias 'plain-TeX-mode #'plain-tex-mode) ;;;###autoload (defalias 'LaTeX-mode #'latex-mode) |