unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* pcl-cvs misbehaving
@ 2005-05-25 19:01 David Abrahams
  2005-05-25 22:45 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: David Abrahams @ 2005-05-25 19:01 UTC (permalink / raw)



Symptom:

I see a file labelled "need-merge", so I do `d E' and get:

`merge' is not applicable to any of the selected files.

So I enter the file's path explicitly and get:

Retrieving revision 1.36...
Fontifying msvc.jam.1.36<2>... (regexps..........)
Retrieving revision 1.36... Done
Retrieving revision 1.37...
Fontifying msvc.jam.1.37<2>... (regexps..........)
Retrieving revision 1.37... Done
Fontifying .#msvc.jam.1.36... (regexps..........)
Retrieving revision 1.37... Done
Mark set
ediff-setup: Wrong number of arguments: (lambda (type) "A mode to do basic comment and font-lock functionality 
for files which are too small to warrant their own mode, but have
comment characters, keywords, and the like.

To define a generic-mode, use the function `define-generic-mode'.
To alter an existing generic-mode, use the `alter-generic-mode-'
convenience functions. 
Some generic modes are defined in generic-extras.el" (interactive (list (generic-read-type))) (generic-mode-with-type (intern type))), 0
Mark set

With the following stack trace:

  generic-mode()
  ediff-setup(#<buffer .#msvc.jam.1.36> "c:/DOCUME~1/dave/LOCALS~1/Temp/.#msvc.jam.1.362904VvR" #<buffer msvc.jam.1.37<3>> "c:/DOCUME~1/dave/LOCALS~1/Temp/ediff2904i5X" #<buffer msvc.jam.1.36<3>> "c:/DOCUME~1/dave/LOCALS~1/Temp/ediff2904vDe" ((lambda nil (delete-file "c:/DOCUME~1/dave/LOCALS~1/Temp/.#msvc.jam.1.362904VvR") (delete-file "c:/DOCUME~1/dave/LOCALS~1/Temp/ediff2904i5X") (if ... ...)) ediff-merge-on-startup cvs-ediff-startup-hook) ((ediff-job-name . ediff-merge-revisions-with-ancestor)) "tools/build/v2/tools/msvc.jam")
  ediff-buffers-internal(#<buffer .#msvc.jam.1.36> #<buffer msvc.jam.1.37<3>> #<buffer msvc.jam.1.36<3>> (ediff-merge-on-startup cvs-ediff-startup-hook) ediff-merge-revisions-with-ancestor "tools/build/v2/tools/msvc.jam")
  ediff-merge-buffers-with-ancestor(#<buffer .#msvc.jam.1.36> #<buffer msvc.jam.1.37<3>> #<buffer msvc.jam.1.36<3>> (cvs-ediff-startup-hook) ediff-merge-revisions-with-ancestor "tools/build/v2/tools/msvc.jam")
  cvs-ediff-merge(#<buffer .#msvc.jam.1.36> #<buffer msvc.jam.1.37<3>> #<buffer msvc.jam.1.36<3>> "tools/build/v2/tools/msvc.jam")
  #[nil "\306\304\307\310\311\312\311&^F\211^X\313H	>\204^V

Anyone have a clue for me?

Thanks!

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pcl-cvs misbehaving
  2005-05-25 19:01 pcl-cvs misbehaving David Abrahams
@ 2005-05-25 22:45 ` Stefan Monnier
  2005-05-26  0:43   ` David Abrahams
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2005-05-25 22:45 UTC (permalink / raw)
  Cc: Michael Kifer, emacs-devel

> I see a file labelled "need-merge", so I do `d E' and get:

`d E' doesn't "merge" changes, it helps resolve conflicts that appeared
during an earlier merge.  It's a common misunderstanding (i.e. a misfeature
of PCL-CVS's UI) and at least the error message should be improved.

> ediff-setup: Wrong number of arguments: (lambda (type) "A mode to do basic comment and font-lock functionality 

The problem is that ediff-setup does:

	      (insert-buffer buf)
	      (funcall (ediff-with-current-buffer buf major-mode))
	      (widen) ; merge buffer is always widened

thus assuming that the function stored in `major-mode' can be called with
no arguments.  This should indeed be the case (see the elisp manual snippet
I quoted earlier today in the context of org-mode and define-derived-mode).
So I guess the error is in generic-x.el since it sets major-mode to
`generic-mode' which is not a valid major mode function.


        Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pcl-cvs misbehaving
  2005-05-25 22:45 ` Stefan Monnier
@ 2005-05-26  0:43   ` David Abrahams
  0 siblings, 0 replies; 3+ messages in thread
From: David Abrahams @ 2005-05-26  0:43 UTC (permalink / raw)


Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I see a file labelled "need-merge", so I do `d E' and get:
>
> `d E' doesn't "merge" changes, it helps resolve conflicts that
> appeared during an earlier merge.  

Right, I knew that, but I used it anyway.

> It's a common misunderstanding (i.e. a misfeature of PCL-CVS's UI)
> and at least the error message should be improved.

I guess.  It would help a lot if the hint when you hit `d' were
changed so that instead of "imerge" it said "resolve conflicts" or
"review/resolve merge"

>> ediff-setup: Wrong number of arguments: (lambda (type) "A mode to do basic comment and font-lock functionality 
>
> The problem is that ediff-setup does:
>
> 	      (insert-buffer buf)
> 	      (funcall (ediff-with-current-buffer buf major-mode))
> 	      (widen) ; merge buffer is always widened
>
> thus assuming that the function stored in `major-mode' can be called with
> no arguments.  This should indeed be the case (see the elisp manual snippet
> I quoted earlier today in the context of org-mode and define-derived-mode).
> So I guess the error is in generic-x.el since it sets major-mode to
> `generic-mode' which is not a valid major mode function.

So, do I need to do something to report that, or are you following up,
or...?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-26  0:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-25 19:01 pcl-cvs misbehaving David Abrahams
2005-05-25 22:45 ` Stefan Monnier
2005-05-26  0:43   ` David Abrahams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).