1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
emacs/lisp/erc
Stefan Monnier 84e0b7dad6 Deprecate intangible' and point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.

* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.

* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it.  Use cursor-intangible rather
than point-entered to make the prompt intangible.

* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.

* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.

* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'.  Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook.  Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.

* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec.  Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.

* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.

* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.

* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.

* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.

* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only.  Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.

* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
..
ChangeLog.01 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.02 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.03 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.04 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.05 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.06 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.07 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.08 Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.09 Rename ChangeLogs for gitlog-to-changelog 2015-04-07 00:00:06 -07:00
erc-autoaway.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-backend.el erc-backend.el: Give hook-name a default value of nil and add-to-list unconditionally. Fixes debbugs:19363 2015-01-14 16:55:44 -05:00
erc-button.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-capab.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-compat.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-dcc.el Don't downcase system diagnostics' first letters 2015-01-21 20:29:42 -08:00
erc-desktop-notifications.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-ezbounce.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-fill.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-goodies.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-ibuffer.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-identd.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-imenu.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-join.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-lang.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-list.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-log.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-match.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-menu.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-netsplit.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-networks.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-notify.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-page.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-pcomplete.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-replace.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-ring.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-services.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-sound.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-speedbar.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-spelling.el * lisp/textmodes/flyspell.el (flyspell-word): Defvar. 2015-02-13 22:45:18 -05:00
erc-stamp.el Deprecate intangible' and point-entered' properties 2015-04-13 15:51:15 -04:00
erc-track.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-truncate.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc-xdcc.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
erc.el * lisp/erc/erc.el (erc-switch-to-buffer): Fix last change. 2015-03-25 08:53:44 -04:00