unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: backup files on mounted filesystems
Date: Tue, 16 Apr 2013 19:15:45 +0300	[thread overview]
Message-ID: <83ip3m4fke.fsf@gnu.org> (raw)
In-Reply-To: <17B7398A-A42E-427B-98F4-F644E5F6359A@manchester.ac.uk>

> From: Michael Bane <michael.bane@manchester.ac.uk>
> Date: Tue, 16 Apr 2013 15:34:22 +0100
> Cc: help-gnu-emacs@gnu.org
> 
> > "M-x load-library RET files.el RET", then instrument
> > normal-backup-enable-predicate with Edebug, edit file in work/, type
> > "C-x C-s", and step through that function to see what's going on.
> 
> Hi Eli and emac-ers
> 
> Sorry but I've no idea what Edebug is nor the instrumentation steps? 
> NB I'm using the "-nw" version of emacs on a Mac

Edebug works in the -nw session as well.

Edebug is described in the ELisp manual.

After "M-x load-library" as above, visit the file file.el, search for
the normal-backup-enable-predicate function, and with cursor somewhere
inside that function, type "M-x edebug-defun RET".  Then edit the file
in your work/ directory and save it.  When you save it, the debugger
will kick in, and you can step through normal-backup-enable-predicate
by pressing SPC.  Watch the control flow and the results of evaluating
each Lisp form that are displayed in the echo area.



  reply	other threads:[~2013-04-16 16:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-12 12:29 backup files on mounted filesystems Michael Bane
2013-04-12 14:57 ` Eli Zaretskii
2013-04-12 16:12   ` Michael Bane
2013-04-12 17:41     ` Eli Zaretskii
     [not found]       ` <6DED36A28A9D17448D476BCDD077928E012F6D5EA2@MBXP07.ds.man.ac.uk>
     [not found]         ` <83mwt38wm0.fsf@gnu.org>
2013-04-16 14:34           ` Michael Bane
2013-04-16 16:15             ` Eli Zaretskii [this message]
2013-04-12 16:58 ` Stefan Monnier

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=83ip3m4fke.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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).