unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
[parent not found: <mailman.3041.1095368970.1998.bug-gnu-emacs@gnu.org>]
* RE: split-string bug in CVS tip of Emacs
@ 2004-09-16 21:03 Peter Milliken
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Milliken @ 2004-09-16 21:03 UTC (permalink / raw)
  Cc: bug-gnu-emacs, 'rms@gnu.org'

Miles, thanks again for the reference.

Just read the thread - there seems to have been some attempt at representing
the "third party package" people such as myself but it seemed to devolve to
"well, we'll be nice guys and send them a patch" - which is pretty
irrelevant in my opinion :-) How did "you" (not you personally Miles, but
"you" the developers list) intend to get the patch to any users of my
package? Of course they wouldn't necessarily have taken up the next release
of Emacs and so the "bug" would have been a time bomb waiting to explode in
each users face as they attempted to use the (now) broken functionality.
Unfortunately I don't maintain a registry of users that I can "push" the
change too.

The problem entered the Emacs development stream sometime between 21.1 and
21.3 - but I wrote this (broken now) portion of code for 21.3 (maybe even
21.2 - I can't remember exactly).

I can fix it myself (the original code was very fuzzy anyway - but often
when you are coding off the top of your head then you do what works and
worry about doing it "properly" later - if there is a later!)

I don't see any easy answer - a personal preference would have been to
modify split-string so it was Emacs/XEmacs independent i.e. it didn't break
my code! :-) But then you could potentially end up with code that said if
XEmacs then else if Emacs then etc - not nice :-)

Is there some list somewhere that I can subscribe to that talks *only* about
proposed changes to existing Elisp definitions? So I can be aware earlier of
something like this? (I am only involved now with the CVS tip because I was
desparate to gain subversion compatibility - otherwise I would have been
blissfully unaware of the issue until the next version of Emacs was released
and users of my package came complaining). I am already subscribed to the
developer list - but that has way too much traffic about fixes etc for me to
filter/read for Elisp definition changes such as this one. 

I wonder whether there is any other "gotcha's" waiting around the corner for
me in this next version of Emacs............. To quote an advertisement
running here in NSW - "not happy Jan, not happy at all!" :-) But that's
life, you get what you pay for....

Peter

> -----Original Message-----
> From: Miles Bader [mailto:miles@gnu.org]
> Sent: Thursday, September 16, 2004 10:32 PM
> To: Peter Milliken
> Cc: 'rms@gnu.org'; bug-gnu-emacs@gnu.org
> Subject: Re: split-string bug in CVS tip of Emacs
> 
> 
> Peter Milliken <PeterM@resmed.com.au> writes:
> > Just out of curiosity, is there any particular reason for 
> breaking backward
> > compatibility like this?
> 
> My vaaaaague memory is that it was for compatibility with xemacs.
> The new definition _does_ omit null entries by default when a 
> nil split
> regexp (=> whitespace) is used, and I think it was judged that this
> would cover the great bulk of compatibility problems.
> 
> Hmmm, google reveals this:
> 
>    http://lists.gnu.org/archive/html/emacs-devel/2003-04/msg00472.html
> 
> It's a very long thread, and probably covers most questions 
> you'd have.
> 
> -Miles
> -- 
> I'm beginning to think that life is just one long Yoko Ono 
> album; no rhyme
> or reason, just a lot of incoherent shrieks and then it's 
> over.  --Ian Wolff
> 


Warning:  Copyright ResMed.  Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those
materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.
 
This communication is confidential and may contain legally privileged information.
By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal
privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on  +61 2 9886 5000 Sydney, Australia.

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <mailman.2905.1095284055.1998.bug-gnu-emacs@gnu.org>]
* RE: split-string bug in CVS tip of Emacs
@ 2004-09-15 21:28 Peter Milliken
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Milliken @ 2004-09-15 21:28 UTC (permalink / raw)
  Cc: bug-gnu-emacs

Just out of curiosity, is there any particular reason for breaking backward
compatibility like this?

I am going to have to code around the changed behaviour now so my
application can maintain backward compatibility with earlier versions of
Emacs.

> -----Original Message-----
> From: Richard Stallman [mailto:rms@gnu.org]
> Sent: Wednesday, September 15, 2004 7:32 PM
> To: Peter Milliken
> Cc: bug-gnu-emacs@gnu.org
> Subject: Re: split-string bug in CVS tip of Emacs
> 
> 
> split-string's behavior has been changed, and the manual has been
> updated too in the development sources.
> 


Warning:  Copyright ResMed.  Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those
materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.
 
This communication is confidential and may contain legally privileged information.
By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal
privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on  +61 2 9886 5000 Sydney, Australia.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* split-string bug in CVS tip of Emacs
@ 2004-09-14 20:55 Luc Teirlinck
  0 siblings, 0 replies; 8+ messages in thread
From: Luc Teirlinck @ 2004-09-14 20:55 UTC (permalink / raw)


Stefan Monnier wrote:

    It may be that the part of the manual hasn't been updated yet.

It has been updated with respect to `split-string'.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* split-string bug in CVS tip of Emacs
@ 2004-09-14  0:09 Peter Milliken
  2004-09-15  9:32 ` Richard Stallman
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Milliken @ 2004-09-14  0:09 UTC (permalink / raw)


I have taken to downloading the nightly tarball of the Emacs CVS repository
(I cannot download via CVS itself due to firewall restrictions). I have
noticed that some Elisp I use/wrote is failing when running using the CVS
tip versus the 21.3 release. I tracked the problem behaviour to split-string
in subr.el

The Elisp Manual (21-2.8) states (in part):

     When there is a match adjacent to the beginning or end of the
     string, this does not cause a null string to appear at the
     beginning or end of the list:

          (split-string "out to moo" "o+")
          => ("ut t" " m")

But using the CVS tip of Emacs I am getting this:

          (split-string "out to moo" "o+")
          => ("" "ut t" " m" "")

              ^
              |- this leading null string should not be there according to
Elisp 21-2.8 manual.


Is this a deliberate change to the behaviour of Emacs or is it a bug? i.e. I
was unable to "locate" the current Elisp manual in the repository - lack of
knowing what to search for I guess :-), so I was unable to check the latest
requirements on split-string.

Thanks
Peter

Peter Milliken
Software Engineer
ResMed
Phone: +61 2 9886-5059
Fax:   +61 2 9878-5564 


Warning:  Copyright ResMed.  Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those
materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.
 
This communication is confidential and may contain legally privileged information.
By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal
privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on  +61 2 9886 5000 Sydney, Australia.

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

end of thread, other threads:[~2004-09-17 17:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2630.1095120950.1998.bug-gnu-emacs@gnu.org>
2004-09-14 19:59 ` split-string bug in CVS tip of Emacs Stefan Monnier
     [not found] <mailman.3041.1095368970.1998.bug-gnu-emacs@gnu.org>
2004-09-17 17:55 ` Stefan Monnier
2004-09-16 21:03 Peter Milliken
     [not found] <mailman.2905.1095284055.1998.bug-gnu-emacs@gnu.org>
2004-09-16 12:32 ` Miles Bader
  -- strict thread matches above, loose matches on Subject: below --
2004-09-15 21:28 Peter Milliken
2004-09-14 20:55 Luc Teirlinck
2004-09-14  0:09 Peter Milliken
2004-09-15  9:32 ` Richard Stallman

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