emacs/lisp/emacs-lisp
Alan Mackenzie 2eb6817ba9 Add :after-hook facility to define-derived-mode.
This allow a form to be evaluated _after_ a major mode's hooks have been run.
It is needed to solve some problems in CC Mode, including bug #16759 and
bug #23476.

* lisp/emacs-lisp/derived.el (define-derived-mode): introduce the new argument
`:after-hook', and generate the requisite code for it.
(derived-mode-make-docstring): Take account of the possibility of :after-hook.

* lisp/subr.el (delayed-after-hook-forms): New variable.
(run-mode-hooks): As the last thing evaluate the forms in
delayed-after-hook-forms.

* doc/lispref/modes.texi (Derived Modes): Document :after-hook.
(Mode Hooks): Document the new feature in run-mode-hooks.

* etc/NEWS: Note the new feature.
2016-05-08 13:24:20 +00:00
..
advice.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
autoload.el ; Spelling and quoting fixes 2016-05-01 18:53:31 -07:00
avl-tree.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
backquote.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
benchmark.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
bindat.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
byte-opt.el New primitives sxhash-eq, sxhash-eql 2016-04-08 15:33:59 -07:00
byte-run.el Further define-obsolete-* doc fixups 2016-05-01 19:27:16 +02:00
bytecomp.el Merge from origin/emacs-25 2016-02-03 23:56:08 -08:00
cconv.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
chart.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
check-declare.el Revert "Use 'grep-find-program' in check-declare.el" 2016-04-21 05:06:26 +03:00
checkdoc.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
cl-extra.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cl-generic.el Avoid loading cl-lib for term/xterm.elc, eg in -Q -nw. (Bug#22669) 2016-02-16 11:49:05 -05:00
cl-indent.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cl-lib.el Make setf for frame-height/width work again 2016-02-23 15:45:08 +11:00
cl-macs.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cl-preloaded.el Fix copyright years by hand 2016-01-01 01:38:07 -08:00
cl-seq.el (cl-union): Do not ignore :test argument when lists are equal. 2016-02-23 14:38:30 +11:00
cl.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
copyright.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
crm.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cursor-sensor.el Autoload cursor-sensor-inhibit (bug#23406) 2016-04-30 23:36:47 +08:00
debug.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
derived.el Add :after-hook facility to define-derived-mode. 2016-05-08 13:24:20 +00:00
disass.el Teach M-x disassemble a default argument. 2016-03-31 19:34:05 -04:00
easy-mmode.el Wrap the auto-generated doc string 2016-05-01 19:27:09 +02:00
easymenu.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
edebug.el * lisp/emacs-lisp/edebug.el (edebug-sit-on-break): Give it a version number. 2016-05-07 17:10:36 +00:00
eieio-base.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
eieio-compat.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
eieio-core.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
eieio-custom.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
eieio-datadebug.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
eieio-opt.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
eieio-speedbar.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
eieio.el Merge from origin/emacs-25 2016-05-01 18:09:29 -07:00
eldoc.el global-eldoc-mode doc fix 2016-05-01 19:27:17 +02:00
elint.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
elp.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ert-x.el Spelling fixes 2016-04-03 23:17:09 -07:00
ert.el * lisp/emacs-lisp/ert.el (ert--results-move): Change error to user-error 2016-01-25 08:55:17 +00:00
ewoc.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
find-func.el Allow finding libraries loaded manually outside the load-path 2016-05-01 18:38:07 +02:00
float-sup.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
generator.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
generic.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
gv.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
helper.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
inline.el Document 'define-inline' 2016-01-16 15:30:47 +02:00
let-alist.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
lisp-mnt.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
lisp-mode.el Don't consider colons to be paragraphs starting chars in strings 2016-04-28 12:05:15 +02:00
lisp.el Doc fix for insert-pair-alist 2016-05-01 19:27:12 +02:00
macroexp.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
map-ynp.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
map.el Fix map-put and map-delete for alists (Bug#23105) 2016-03-25 15:11:23 +01:00
nadvice.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
package-x.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
package.el Explictly explain that package-initialize loads the packages 2016-05-01 19:27:12 +02:00
pcase.el Quoting fixes in doc strings and diagnostics 2016-02-03 17:20:17 -08:00
pp.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
re-builder.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
regexp-opt.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
regi.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ring.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
rx.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
seq.el * lisp/emacs-lisp/seq.el: Load cl-lib, not cl-extra. 2016-04-07 16:24:25 -04:00
shadow.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
smie.el * lisp/emacs-lisp/smie.el (smie-indent-keyword): Don't burp in strings 2016-03-16 22:55:56 -04:00
subr-x.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
syntax.el Merge from origin/emacs-25 2016-05-01 18:14:23 -07:00
tabulated-list.el * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Redundant line 2016-01-25 09:48:33 +00:00
tcover-ses.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
tcover-unsafep.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
testcover.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
thunk.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
timer-list.el Make the revert command in timer-list-mode work 2016-03-01 16:06:42 +11:00
timer.el add-timeout doc fix 2016-05-01 19:27:14 +02:00
tq.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
trace.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
unsafep.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
warnings.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00