1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -08:00
emacs/lisp/emacs-lisp
Mattias Engdegård 73e75e18d1 Warn about misplaced or duplicated function/macro declarations
Doc strings, `declare` and `interactive` forms must appear in that
order and at most once each.  Complain if they don't, instead of
silently ignoring the problem (bug#55905).

* lisp/emacs-lisp/byte-run.el (byte-run--parse-body)
(byte-run--parse-declarations): New.
(defmacro, defun): Check for declaration well-formedness as
described above.  Clarify doc strings.  Refactor some common code.
* test/lisp/emacs-lisp/bytecomp-resources/fun-attr-warn.el:
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-fun-attr-warn):
New test.
2022-06-17 17:25:29 +02:00
..
advice.el Use advice--cd*r where applicable 2022-04-26 17:36:13 -04:00
autoload.el Move two more variables from autoload.el to loaddefs-gen.el 2022-06-05 20:32:01 +02:00
avl-tree.el
backquote.el
backtrace.el
benchmark.el
bindat.el bindat (strz): Write null terminator after variable length string 2022-06-16 09:55:49 +03:00
byte-opt.el Simplify byte-compiler assuming cconv normalisations 2022-06-14 20:19:59 +02:00
byte-run.el Warn about misplaced or duplicated function/macro declarations 2022-06-17 17:25:29 +02:00
bytecomp.el Simplify byte-compiler assuming cconv normalisations 2022-06-14 20:19:59 +02:00
cconv.el Run cconv for dynbound code as well 2022-06-14 20:19:59 +02:00
chart.el Remove some XEmacs compat code for display-graphic-p 2022-05-15 01:10:11 +02:00
check-declare.el Make 'check-declare-directory' more portable 2022-05-14 19:08:55 +03:00
checkdoc.el Make checkdoc-file-comments-engine match more ;;;### forms 2022-06-02 19:14:00 +02:00
cl-extra.el Add a comment about cl-concatenate 2022-04-13 06:11:51 +02:00
cl-generic.el cl-generic.el: Upcase formal args in C-h o 2022-04-25 15:41:21 -04:00
cl-indent.el
cl-lib.el Clarify cl-incf/decf doc strings 2022-04-21 15:11:33 +02:00
cl-macs.el Recognize processes as a CL type again 2022-06-11 19:21:55 +03:00
cl-preloaded.el cl-typep: Emit warning when using a type not known to be a type 2022-06-06 00:04:00 -04:00
cl-print.el nadvice.el: Use OClosures 2022-04-26 17:36:13 -04:00
cl-seq.el
comp-cstr.el ; Fix two mail addresses 2022-05-16 09:54:15 +02:00
comp.el Fix native-comp of trampolines after previous change 2022-05-28 12:32:01 +02:00
copyright.el
crm.el * lisp/emacs-lisp/crm.el: Set completion-list-insert-choice-function. 2022-05-05 21:15:51 +03:00
cursor-sensor.el
debug-early.el debug-early: Print bytecode in a more manageable way 2022-04-29 22:18:09 -04:00
debug.el Leave the contents on the *Backtrace* buffer on `q' 2022-06-14 14:38:05 +02:00
derived.el
disass.el
easy-mmode.el Move buffer-local-set-state to subr because it's used at runtime 2022-05-06 16:09:38 +02:00
easymenu.el
edebug.el Don't have edebug bug out if C-x is rebound 2022-05-25 03:52:16 +02:00
eieio-base.el
eieio-core.el cl-typep: Emit warning when using a type not known to be a type 2022-06-06 00:04:00 -04:00
eieio-custom.el
eieio-datadebug.el
eieio-opt.el
eieio-speedbar.el
eieio.el cl-typep: Emit warning when using a type not known to be a type 2022-06-06 00:04:00 -04:00
eldoc.el Allow non-interactive use of eldoc-doc-buffer 2022-05-09 12:51:24 +01:00
elint.el
elp.el
ert-x.el Factor out test configuration for remote files 2022-06-08 12:06:56 +02:00
ert.el Fix ert-run-tests-batch-and-exit doc string typo 2022-05-25 03:25:30 +02:00
ewoc.el
faceup.el Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
find-func.el * lisp/emacs-lisp/find-func.el (find-function-advised-original): Simplify 2022-06-11 23:50:35 -04:00
float-sup.el
generate-lisp-file.el Rename generate-file to generate-lisp-file 2022-06-05 17:48:39 +02:00
generator.el
generic.el
gv.el
helper.el
hierarchy.el
inline.el
let-alist.el
lisp-mnt.el
lisp-mode.el Fix warnings introduced by the lisp-mode-autoload-regexp change 2022-06-04 13:50:07 +02:00
lisp.el ; * lisp/emacs-lisp/lisp.el (raise-sexp): Doc fix. (Bug#55788) 2022-06-06 17:10:21 +03:00
loaddefs-gen.el Fix ;;;###autoload scanning from (some) packages 2022-06-15 14:05:17 +02:00
macroexp.el Normalise setq during macro-expansion 2022-06-14 20:19:59 +02:00
map-ynp.el Clarify read-answer-short/use-short-answers action 2022-04-07 13:37:16 +02:00
map.el Mention caveats in the map-delete doc string 2022-04-26 15:34:26 +02:00
memory-report.el Make memory-report not bug out with symbols with positions 2022-05-26 13:04:50 +02:00
multisession.el
nadvice.el CL types: Accept both byte-code-function and compiled-function 2022-04-29 15:29:35 -04:00
oclosure.el * lisp/emacs-lisp/oclosure.el (oclosure-define): Fix empty case 2022-05-08 10:33:49 -04:00
package-x.el
package.el Make package-recompile delete all .elc files first 2022-06-16 14:25:47 +02:00
pcase.el Further doc string quoting fixes 2022-04-22 17:16:42 +02:00
pp.el pp--insert-lisp: Don't bug out on certain forms at beginning of buffer 2022-05-28 18:39:43 +02:00
radix-tree.el
range.el
re-builder.el
regexp-opt.el
regi.el
ring.el
rmc.el
rx.el
seq.el
shadow.el Make load-path-shadows-mode a special mode 2022-04-30 20:34:35 +02:00
shortdoc.el Extend file-expand-wildcards to allow regexps 2022-06-05 14:08:31 +02:00
shorthands.el
smie.el * lisp/emacs-lisp/smie.el (smie-auto-fill): Fix bug#19342 2022-05-06 11:09:58 -04:00
subr-x.el ; Re-fix last change in doc of 'with-buffer-unmodified-if-unchanged'. 2022-05-04 14:53:34 +02:00
syntax.el Clarify syntax-ppss doc string 2022-06-05 22:37:32 +02:00
tabulated-list.el Add new minor mode `header-line-indent-mode' 2022-05-13 21:24:12 +02:00
tcover-ses.el
testcover.el
text-property-search.el Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
thunk.el
timer-list.el Make list-times not include zero elements 2022-04-13 15:31:34 +02:00
timer.el
tq.el
trace.el
unsafep.el
vtable.el Don't make a header if the user hasn't specified columns in vtable 2022-04-23 14:47:55 +02:00
warnings.el