From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bhenz@Lexmark.com Newsgroups: gmane.emacs.help Subject: problems with ediff-startup-hooks Date: Mon, 27 Feb 2006 09:38:53 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1666957907==" X-Trace: sea.gmane.org 1141178970 19072 80.91.229.2 (1 Mar 2006 02:09:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2006 02:09:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 01 03:09:28 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FEGmL-0005SY-7g for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Mar 2006 03:09:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FEGmK-0007QB-DA for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Feb 2006 21:09:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FDjae-0003uZ-76 for help-gnu-emacs@gnu.org; Mon, 27 Feb 2006 09:43:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FDjWv-0002cd-91 for help-gnu-emacs@gnu.org; Mon, 27 Feb 2006 09:43:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDjWl-0002bh-6v for help-gnu-emacs@gnu.org; Mon, 27 Feb 2006 09:39:11 -0500 Original-Received: from [192.146.101.72] (helo=sw3.lexmark.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FDjXQ-00059y-Oq for help-gnu-emacs@gnu.org; Mon, 27 Feb 2006 09:39:48 -0500 Original-To: help-gnu-emacs@gnu.org X-Mailer: Lotus Notes Release 5.0.12 February 13, 2003 X-MIMETrack: Serialize by Router on smtp5b/Lex/Lexmark(Release 6.5.4FP1 | June 19, 2005) at 02/27/2006 09:38:54, Serialize complete at 02/27/2006 09:38:54 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33415 Archived-At: This is a multipart message in MIME format. --===============1666957907== Content-Type: multipart/alternative; boundary="=_alternative 0050C55F85257122_=" This is a multipart message in MIME format. --=_alternative 0050C55F85257122_= Content-Type: text/plain; charset="us-ascii" Hi all, I running emacs 21.4.1. I'm trying to do some fancy ediff stuff. Actually not terribly fancy, I just want to invoke it from the command line with parmeters similar to "diff", specifically using the -L option to give more descriptive names to the buffers. Currently I can ediff two files by doing the following... emacs --eval='(progn (setq ediff-diff-options "-wbB") (ediff-files "file1" "file2"))' Maybe there's an easier/better way? ANYWAY, The path I'm currently on requires me to hook into the "ediff-startup-hooks" with the following code in my .emacs file... (require 'ediff) ;; Get rid of the annoying little (separate) ediff window and ;; turn it into a 3rd pane in the main emacs window. (setq ediff-window-setup-function 'ediff-setup-windows-plain) ;; Put files side-by-side ;(setq ediff-split-window-function 'split-window-horizontally) (defun my-ediff-startup-hooks () (set-buffer ediff-buffer-A) (rename-buffer "bobA") (set-buffer ediff-buffer-B) (rename-buffer "bobB") ) (add-hook 'ediff-startup-hooks 'my-ediff-startup-hooks) OK, so this is just baby-step code because clearly "bobA" and "bobB" are not useful, but I can't even get THIS to work! I even tried inserting a line I knew would fail in the defined function (something like (undefined_bob_qwerty)) and I never got a complaint when I fired up a new instance of ediff. (but I know it was picking up my changes to .emacs because if I made a syntax error then it would warn me about that.) What am I doing wrong? Thanks, Bob --=_alternative 0050C55F85257122_= Content-Type: text/html; charset="us-ascii"
Hi all,

I running emacs 21.4.1. I'm trying to do some fancy ediff stuff.

Actually not terribly fancy, I just want to invoke it from the command line with parmeters similar to "diff", specifically using the -L option to give more descriptive names to the buffers. Currently I can ediff two files by doing the following...

emacs --eval='(progn (setq ediff-diff-options "-wbB") (ediff-files "file1" "file2"))'

Maybe there's an easier/better way?

ANYWAY,

The path I'm currently on requires me to hook into the "ediff-startup-hooks" with the following code in my .emacs file...

(require 'ediff)

;; Get rid of the annoying little (separate) ediff window and
;; turn it into a 3rd pane in the main emacs window.
(setq ediff-window-setup-function 'ediff-setup-windows-plain)

;; Put files side-by-side
;(setq ediff-split-window-function 'split-window-horizontally)

(defun my-ediff-startup-hooks ()
    (set-buffer ediff-buffer-A)
    (rename-buffer "bobA")
    (set-buffer ediff-buffer-B)
    (rename-buffer "bobB")
)

(add-hook 'ediff-startup-hooks 'my-ediff-startup-hooks)

OK, so this is just baby-step code because clearly "bobA" and "bobB" are not useful, but I can't even get THIS to work! I even tried inserting a line I knew would fail in the defined function (something like (undefined_bob_qwerty)) and I never got a complaint when I fired up a new instance of ediff.

(but I know it was picking up my changes to .emacs because if I made a syntax error then it would warn me about that.)

What am I doing wrong?

Thanks,
Bob --=_alternative 0050C55F85257122_=-- --===============1666957907== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1666957907==--