From: Icarus Sparry <usenet@icarus.freeuk.com>
To: help-gnu-emacs@gnu.org
Subject: Re: An instructive example of trace-function and some example of debugging
Date: 13 Jun 2010 15:07:41 GMT [thread overview]
Message-ID: <4c14f43d$0$22172$742ec2ed@news.sonic.net> (raw)
In-Reply-To: d48c2b9e-0853-448e-9992-d71e87fcccd0@j4g2000yqh.googlegroups.com
On Sat, 12 Jun 2010 10:43:46 -0700, bolega wrote:
> On Jun 10, 1:27 pm, bolega <gnuist...@gmail.com> wrote:
>> An instructive example of trace-function and some example of debugging,
>> for example, some of the error that pops up in lower window of emacs
>> and how to read/interpret it. Alternatively, a link to some page or
>> elisp manual but I am sure an expert here would have a superior
>> instruction as many replies here have shown.
>>
>> Thanks
>> Bolega
>>
>> trace-function is an interactive autoloaded Lisp function in `trace'.
>> [Arg list not available until function definition is loaded.]
>>
>> Traces FUNCTION with trace output going to BUFFER. For every call of
>> FUNCTION Lisp-style trace messages that display argument
>> and return values will be inserted into BUFFER. This function generates
>> the
>> trace advice for FUNCTION and activates it together with any other
>> advice
>> there might be!! The trace BUFFER will popup whenever FUNCTION is
>> called.
>> Do not use this to trace functions that switch buffers or do any other
>> display oriented stuff, use `trace-function-background' instead.
>
> let me widen the newsgroups as there was no reply to this one in the
> first one.
>
> Sometimes, in emacs, error takes places and the mode gets nested inside
> many brackets.
>
> [(((.lisp...)))]
>
> above line recalling from memory
>
> what does it mean ? C-g does not get out of it.
>
> What to do ?
If you are seeing [[[lisp]]] then you are in a "recursive edit".
This is not an error, it is a feature! The most common way to get into it
is if you are doing a query-replace (M-% with standard bindings), and
type control-r. This allows you to make some edits and then continue the
query-replace.
The standard key binding to abort out of recursive edit is C-] (the [..]
in the mode line is supposed to help you remember this key sequence).
next prev parent reply other threads:[~2010-06-13 15:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-10 20:27 [REQ] An instructive example of trace-function and some example of debugging bolega
2010-06-12 17:42 ` bolega
[not found] ` <d48c2b9e-0853-448e-9992-d71e87fcccd0@j4g2000yqh.googlegroups.com>
2010-06-13 15:07 ` Icarus Sparry [this message]
2010-06-13 20:31 ` bolega
2010-06-14 7:14 ` Icarus Sparry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='4c14f43d$0$22172$742ec2ed@news.sonic.net' \
--to=usenet@icarus.freeuk.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).