emacs/doc
Phil Sainty faf43bcab1 * lisp/emacs-lisp/trace.el: Allow trace context args to be forms
This lifts the restriction of context arguments needing to be
functions, when calling trace functions from lisp code.

(trace--read-extra-args, trace-entry-message, trace-entry-message):
Move the output formatting already used for interactive context into
the trace-*-message functions for use in non-interactive cases as
well.  Previously it was necessary for context functions to format
their output in a trace-aware manner, making a custom wrapper function
necessary to obtain well-formatted output even when the desired
context had an existing function.

(trace-function-internal, trace-make-advice): Move the generation of
an 'empty' context function into `trace-make-advice', which now takes
care of generating a function for any non-function context.

(trace-make-context): New function returning a context function for
an expression argument; extracted from `trace--read-extra-args'.
(trace--read-extra-args, trace-make-advice): Call it.

* doc/lispref/debugging.texi: Update documentation.
2022-08-13 00:36:49 +12:00
..
emacs ; Fix typos in the manual 2022-07-13 09:58:14 +03:00
lispintro Change current-time back to list form 2022-04-28 12:54:06 -07:00
lispref * lisp/emacs-lisp/trace.el: Allow trace context args to be forms 2022-08-13 00:36:49 +12:00
man Merge from origin/emacs-28 2022-06-13 06:55:57 +02:00
misc ; Fix typos 2022-07-14 12:52:32 +02:00