[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: write-region bug ?

From: Stefan Monnier
Subject: Re: write-region bug ?
Date: Sun, 05 Jan 2020 12:37:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> I don't think we must imagine a specific scenario to justify
> NON-removal of an old feature, just because someone became confused by
> the doc string.  But since you asked...

I'm not suggesting breaking old code, but declaring such use as
non-supported (e.g. mention it in the docstring) and maybe even emit
a warning.

>   (write-region 1 1024 "foo")
>   (write-region "\nEnd-of-foo\n." nil "foo" t t)

Which is just as naturally written:

    (write-region 1 1024 "foo" nil t)
    (write-region "\nEnd-of-foo\n." nil "foo" t)

-- Stefan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]