unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: passing commands to ediff-directories from the elisp function
Date: Tue, 27 Sep 2005 14:58:03 -0600	[thread overview]
Message-ID: <dhcbot$ueh$1@sea.gmane.org> (raw)
In-Reply-To: <433937fec7e1d@wp.pl>

mak kwak wrote:
 > I trying to write a method that will run ediff-directories comand for
 > my two directories, then will mark all equal files for hiding (=h) and
 > will hide them (x).
 >
 > I did the following:
 > (defun compare-my-dirs (dir1 dir2)
 > "compares two directories"
 > (ediff-directories dir1 dir2)
 > (switch-to-buffer "*Ediff Session Group Panel*") ;; success, switches 
to that buffer.
 > (insert "=h") ;; !!!! neither does not mark equal files for hiding..
 > (insert "x")) ;; !!!! ..nor hides them.
 >
 > My question is, how can I pass my commands to *`Ediff Session Group
 > Panel*' from elisp function ?

`=h' and `x' are not commands, they are key sequences that are bound to
commands:

,----[ C-h k = h ]
| = h runs the command ediff-meta-mark-equal-files
|    which is an interactive compiled Lisp function in `ediff-mult'.
| (ediff-meta-mark-equal-files)
|
| Run though the session list and mark identical files.
| This is used only for sessions that involve 2 or 3 files at the same time.
`----

,----[ C-h k x ]
|x runs the command ediff-hide-marked-sessions
|   which is an interactive compiled Lisp function in `ediff-mult'.
|(ediff-hide-marked-sessions UNHIDE)
|
|Hide marked sessions.  With prefix arg, unhide.
`----

So:

(ediff-meta-mark-equal-files)
(ediff-hide-marked-sessions nil)

-- 
Kevin Rodgers

  parent reply	other threads:[~2005-09-27 20:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-27 12:15 passing commands to ediff-directories from the elisp function mak kwak
2005-09-27 17:31 ` Kevin Rodgers
2005-09-27 20:58 ` Kevin Rodgers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-09-28 11:45 mak kwak

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='dhcbot$ueh$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /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).