Re: Any want to test buffer-substring patches?

Hannu Koivisto <[email protected]>
Newsgroups gmane.lisp.ilisp.devel
Message-ID <[email protected]>
Kevin Rosenberg <[email protected]> writes:

> Hannu Koivisto wrote:
>> Urgh, why didn't you just use buffer-substring-no-properties in the
>> code?
>
> Because buffer-substring-no-properties is not supported by older emacs
> and xemacs versions.

If that is really an issue, then I'd do either

(unless (fboundp 'buffer-substring-no-properties)
  (defalias 'buffer-substring-no-properties 'buffer-substring))

or if the semantics of buffer-substring in those versions cause
problems to software using buffer-substring-no-properties (I don't
think so)

(unless (fboundp 'buffer-substring-no-properties)
  (defun buffer-substring-no-properties (start end)
    use-whatever-those-old-versions-support-then))

...in the compatibility code.

However, I would be interested to know which versions you found not
to support buffer-substring-no-properties.  Concerning Emacs, 19.34
supports it so the only problem could be XEmacs and I don't have
access to old versions of XEmacs, so I can't check.

-- 
Hannu
Please don't send copies of list mail


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.