all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Ediff regression
@ 2007-06-13 18:59 Chong Yidong
  2007-06-13 20:26 ` Michael Kifer
  0 siblings, 1 reply; 8+ messages in thread
From: Chong Yidong @ 2007-06-13 18:59 UTC (permalink / raw)
  To: emacs-devel, Michael Kifer

Something in the following checkin broke patch highlighting:

2007-06-12  Michael Kifer  <kifer@cs.stonybrook.edu>
	
	* ediff-mult.el
	(ediff-meta-buffer-brief-message,ediff-meta-buffer-verbose-message):
	new variables.
	(ediff-meta-buffer-message): variable deleted.
	(ediff-verbose-help-enabled): new variable.
	(ediff-toggle-verbose-help-meta-buffer): new function.
	(ediff-redraw-directory-group-buffer): made aware of short/verbose
	message options
	
	* ediff-ptch.el (ediff-context-diff-label-regexp): better regexp.
	(ediff-fixup-patch-map): improved heuristic.

To see this, save the following diff to a file foo.patch and open it.
The body of the patch will be highlighted as though it were a header.
The problem did not exist before the checkin.

diff -c configure.in.\~1.452.\~ /home/cyd/emacs/configure.in
*** configure.in.~1.452.~	2007-06-12 13:07:07.000000000 -0400
--- configure.in	2007-06-13 13:20:27.000000000 -0400
***************
*** 1874,1880 ****
      case "${with_x_toolkit}" in
        athena | lucid ) USE_X_TOOLKIT=LUCID ;;
        motif ) USE_X_TOOLKIT=MOTIF ;;
- dnl      open-look ) USE_X_TOOLKIT=OPEN_LOOK ;;
        gtk ) with_gtk=yes
  dnl Dont set this for GTK.  A lot of tests below assumes Xt when
  dnl USE_X_TOOLKIT is set.
--- 1874,1879 ----

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

* Re: Ediff regression
  2007-06-13 18:59 Ediff regression Chong Yidong
@ 2007-06-13 20:26 ` Michael Kifer
  2007-06-13 21:05   ` Chong Yidong
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Kifer @ 2007-06-13 20:26 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel


I am not sure what does ediff have to do with patch file highlighting, but
this patch indeed broke something in ediff itself. I fixed that just now.

> Something in the following checkin broke patch highlighting:
> 
> 2007-06-12  Michael Kifer  <kifer@cs.stonybrook.edu>
> 	
> 	* ediff-mult.el
> 	(ediff-meta-buffer-brief-message,ediff-meta-buffer-verbose-message):
> 	new variables.
> 	(ediff-meta-buffer-message): variable deleted.
> 	(ediff-verbose-help-enabled): new variable.
> 	(ediff-toggle-verbose-help-meta-buffer): new function.
> 	(ediff-redraw-directory-group-buffer): made aware of short/verbose
> 	message options
> 	
> 	* ediff-ptch.el (ediff-context-diff-label-regexp): better regexp.
> 	(ediff-fixup-patch-map): improved heuristic.
> 
> To see this, save the following diff to a file foo.patch and open it.
> The body of the patch will be highlighted as though it were a header.
> The problem did not exist before the checkin.
> 
> diff -c configure.in.\~1.452.\~ /home/cyd/emacs/configure.in
> *** configure.in.~1.452.~	2007-06-12 13:07:07.000000000 -0400
> --- configure.in	2007-06-13 13:20:27.000000000 -0400
> ***************
> *** 1874,1880 ****
>       case "${with_x_toolkit}" in
>         athena | lucid ) USE_X_TOOLKIT=LUCID ;;
>         motif ) USE_X_TOOLKIT=MOTIF ;;
> - dnl      open-look ) USE_X_TOOLKIT=OPEN_LOOK ;;
>         gtk ) with_gtk=yes
>   dnl Dont set this for GTK.  A lot of tests below assumes Xt when
>   dnl USE_X_TOOLKIT is set.
> --- 1874,1879 ----
> 

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

* Re: Ediff regression
  2007-06-13 20:26 ` Michael Kifer
@ 2007-06-13 21:05   ` Chong Yidong
  2007-06-13 21:12     ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Chong Yidong @ 2007-06-13 21:05 UTC (permalink / raw)
  To: Michael Kifer; +Cc: emacs-devel

kifer@cs.sunysb.edu (Michael Kifer) writes:

>> Something in the following checkin broke patch highlighting:
>> 
>> 2007-06-12  Michael Kifer  <kifer@cs.stonybrook.edu>
>> 	
>> 	* ediff-mult.el
>>      ....
>> 	
>> 	* ediff-ptch.el (ediff-context-diff-label-regexp): better regexp.
>>      ...
>
> I am not sure what does ediff have to do with patch file highlighting, but
> this patch indeed broke something in ediff itself. I fixed that just now.

I think the error was introduced in diff-mode.el.  According to the
CVS logs, you changed diff-mode.el along with ediff during this batch
of checkins.  However, you failed to document your diff-mode.el change
in the ChangeLog.

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

* Re: Ediff regression
  2007-06-13 21:05   ` Chong Yidong
@ 2007-06-13 21:12     ` Stefan Monnier
  2007-06-14  7:48       ` Michael Kifer
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2007-06-13 21:12 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Michael Kifer, emacs-devel

> I think the error was introduced in diff-mode.el.  According to the
> CVS logs, you changed diff-mode.el along with ediff during this batch
> of checkins.  However, you failed to document your diff-mode.el change
> in the ChangeLog.

I just fixed his last change.  Thanks for bringing it up.
Michael, could you document your change in the ChangeLog?


        Stefan

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

* Re: Ediff regression
  2007-06-13 21:12     ` Stefan Monnier
@ 2007-06-14  7:48       ` Michael Kifer
  2007-06-14 14:40         ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Kifer @ 2007-06-14  7:48 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Chong Yidong, emacs-devel


> > I think the error was introduced in diff-mode.el.  According to the
> > CVS logs, you changed diff-mode.el along with ediff during this batch
> > of checkins.  However, you failed to document your diff-mode.el change
> > in the ChangeLog.
> 
> I just fixed his last change.  Thanks for bringing it up.
> Michael, could you document your change in the ChangeLog?
> 
> 
>         Stefan

Sorry, I did not touch diff-mode.el intentionally. I see that the log
points the finger in my direction, but I do not know how it happened. :-(
The expression to which you changed diff-font-lock-keywords is similar to
one in ediff, but I do not know if it is what you wanted in
diff-mode.el. It seems ok, but if you are not sure then it is better to
revert to version 1.100. Sorry for the mixup.


	--michael  

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

* Re: Ediff regression
  2007-06-14  7:48       ` Michael Kifer
@ 2007-06-14 14:40         ` Stefan Monnier
  2007-06-14 17:43           ` Michael Kifer
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2007-06-14 14:40 UTC (permalink / raw)
  To: Michael Kifer; +Cc: Chong Yidong, emacs-devel

> Sorry, I did not touch diff-mode.el intentionally. I see that the log
> points the finger in my direction, but I do not know how it happened. :-(
> The expression to which you changed diff-font-lock-keywords is similar to
> one in ediff, but I do not know if it is what you wanted in
> diff-mode.el. It seems ok, but if you are not sure then it is better to
> revert to version 1.100. Sorry for the mixup.

You changed "\\S-" into "[^\t]" which was obviously meant to be "[^ \t]".
So I fixed the obvious.  I don't have much preference between the two, so
I left "[^ \t]" there.  Maybe if you could say why you preferred "[^ \t]"
over "\\S-" in ediff, I can make up a good reason to do the same change in
diff-mode.el ;-)?


        Stefan

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

* Re: Ediff regression
  2007-06-14 14:40         ` Stefan Monnier
@ 2007-06-14 17:43           ` Michael Kifer
  2007-06-14 19:09             ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Kifer @ 2007-06-14 17:43 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Chong Yidong, emacs-devel


> > Sorry, I did not touch diff-mode.el intentionally. I see that the log
> > points the finger in my direction, but I do not know how it happened. :-(
> > The expression to which you changed diff-font-lock-keywords is similar to
> > one in ediff, but I do not know if it is what you wanted in
> > diff-mode.el. It seems ok, but if you are not sure then it is better to
> > revert to version 1.100. Sorry for the mixup.
> 
> You changed "\\S-" into "[^\t]" which was obviously meant to be "[^ \t]".
> So I fixed the obvious.  I don't have much preference between the two, so
> I left "[^ \t]" there.  Maybe if you could say why you preferred "[^ \t]"
> over "\\S-" in ediff, I can make up a good reason to do the same change in
> diff-mode.el ;-)?

It was [^ \t] in ediff from the beginning.  I changed it to [^\t] in ediff
because I wanted to take care of files that have spaces in their names. But
this was wrong and I reverted the change back to [^ \t].

I am not sure how that same change got into diff-mode.el. Maybe I did
something mechanically and did not notice.


	--michael  

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

* Re: Ediff regression
  2007-06-14 17:43           ` Michael Kifer
@ 2007-06-14 19:09             ` Stefan Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2007-06-14 19:09 UTC (permalink / raw)
  To: Michael Kifer; +Cc: Chong Yidong, emacs-devel

> It was [^ \t] in ediff from the beginning.  I changed it to [^\t] in ediff
> because I wanted to take care of files that have spaces in their names.
> But this was wrong and I reverted the change back to [^ \t].

Oh well, never mind.

> I am not sure how that same change got into diff-mode.el.  Maybe I did
> something mechanically and did not notice.

I'll leave to historians to try and figure it out, centuries from now.


        Stefan

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

end of thread, other threads:[~2007-06-14 19:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-13 18:59 Ediff regression Chong Yidong
2007-06-13 20:26 ` Michael Kifer
2007-06-13 21:05   ` Chong Yidong
2007-06-13 21:12     ` Stefan Monnier
2007-06-14  7:48       ` Michael Kifer
2007-06-14 14:40         ` Stefan Monnier
2007-06-14 17:43           ` Michael Kifer
2007-06-14 19:09             ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.