emacs/lisp/emacs-lisp
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
..
advice.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
autoload.el Speed up byte-compilation and autoload generation by avoiding mode-hooks 2015-04-12 03:57:59 +01:00
avl-tree.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
backquote.el * lisp/emacs-lisp/backquote.el: Fix bug with unoptimized exp. 2015-01-30 16:00:29 -05:00
benchmark.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
bindat.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
byte-opt.el * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Don't try to 2015-03-06 23:35:04 -05:00
byte-run.el * etc/TODO: Remove obsolete entries. 2015-03-25 14:28:25 -04:00
bytecomp.el * lisp/emacs-lisp/bytecomp.el: Silence noninteractive compilations 2015-04-12 13:45:30 +01:00
cconv.el Add (:documentation <form>) for dynamically-generated docstrings 2015-02-05 14:28:16 -05:00
chart.el Shrink EIEIO object header. Move generics to eieio-generic.el. 2015-01-08 16:03:04 -05:00
check-declare.el Spelling fixes 2015-03-03 15:10:40 -08:00
checkdoc.el emacs-lisp/checkdoc.el: Don't complain about args starting with _. 2015-03-25 17:48:38 +00:00
cl-extra.el Fix seq-subseq and cl-subseq for bad bounding indices 2015-01-18 14:04:31 +08:00
cl-generic.el * cl-generic.el (cl-generic-generalizers): Clean up after braindamage 2015-03-18 10:49:55 -04:00
cl-indent.el Support indenting backquote substitutions in cl-indent 2015-03-15 00:17:14 -07:00
cl-lib.el cl-lib.el: Partial revert of "2015-04-05 Rationalize c[ad]+r" 2015-04-10 01:50:22 -04:00
cl-macs.el Support debug declarations in pcase macros 2015-04-12 16:26:52 +02:00
cl-preloaded.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
cl-seq.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
cl.el cl-lib.el: Partial revert of "2015-04-05 Rationalize c[ad]+r" 2015-04-10 01:50:22 -04:00
copyright.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
crm.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
cursor-sensor.el Deprecate intangible' and point-entered' properties 2015-04-13 15:51:15 -04:00
debug.el Merge from origin/emacs-24 2015-03-23 10:17:21 -07:00
derived.el lisp/emacs-lisp/derived.el (define-derived-mode): Declare indent 3. 2015-01-27 10:48:40 +01:00
disass.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
easy-mmode.el emacs-lisp/easy-mmode.el: Clarify mode switch messages 2015-02-17 22:16:22 -02:00
easymenu.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
edebug.el edebug.el: Disambiguate vector specifications 2015-04-12 16:26:51 +02:00
eieio-base.el Let jit-lock know the result of font-lock-extend-region-functions. 2015-03-30 21:33:20 -04:00
eieio-compat.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
eieio-core.el (eieio-copy-parents-into-subclass): Fix inheritance of initargs 2015-04-08 17:23:50 -04:00
eieio-custom.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
eieio-datadebug.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
eieio-opt.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
eieio-speedbar.el * lisp/emacs-lisp/eieio*.el: Fix up warnings and improve compatibility 2015-01-21 14:39:06 -05:00
eieio.el Support debug declarations in pcase macros 2015-04-12 16:26:52 +02:00
eldoc.el eldoc: modify eldoc-documentation-function' using add-function' 2015-01-20 15:04:15 +01:00
elint.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
elp.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ert-x.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ert.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ewoc.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
find-func.el (find-function-regexp): Don't match `defgroup' 2015-01-25 02:20:01 +02:00
float-sup.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
generator.el Spelling fixes 2015-03-03 15:10:40 -08:00
generic.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
gv.el * lisp/progmodes/gud.el: Use lexical-binding. 2015-03-03 14:23:49 -05:00
helper.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
inline.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
lisp-mnt.el * lisp/emacs-lisp/lisp-mnt.el (lm-version): Don't burp in a non-file buffer. 2015-04-02 09:59:47 -04:00
lisp-mode.el Fix previous commit (again) 2015-03-23 01:54:42 -07:00
lisp.el Push mark before goto-char in jump-to-register and check-parens 2015-02-18 16:36:24 -02:00
macroexp.el Add classes as run-time descriptors of cl-structs. 2015-03-18 10:31:07 -04:00
map-ynp.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
nadvice.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
package-x.el emacs-lisp/package-x.el: Create valid tar files 2015-02-17 22:08:51 -02:00
package.el * lisp/emacs-lisp/package.el: Improve transaction y-or-n prompt 2015-04-12 16:16:06 +01:00
pcase.el * lisp/emacs-lisp/pcase.el (pcase-dolist): Autoload as well. 2015-04-13 14:46:58 -04:00
pp.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
re-builder.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
regexp-opt.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
regi.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ring.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
rx.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
seq.el * lisp/emacs-lisp/seq.el: Documentation improvements 2015-03-25 09:21:14 +01:00
shadow.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
smie.el Merge from origin/emacs-24 2015-03-29 14:14:15 -07:00
subr-x.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
syntax.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
tabulated-list.el Fix problems caused by calling 'recenter' in auto-revert (Bug#20122) 2015-03-21 12:01:27 +02:00
tcover-ses.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
tcover-unsafep.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
testcover.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
timer.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
tq.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
trace.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
unsafep.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
warnings.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00