From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 24383@debbugs.gnu.org
Subject: bug#24383: 25.1.50; Deprecation/internalization of `read-from-whole-string'
Date: Sat, 06 Feb 2021 13:37:51 +0100 [thread overview]
Message-ID: <87im759xsw.fsf@gnus.org> (raw)
In-Reply-To: <c431e14e-6557-4394-8835-358e20635725@default> (Drew Adams's message of "Tue, 6 Sep 2016 09:52:12 -0700 (PDT)")
Drew Adams <drew.adams@oracle.com> writes:
> What's the rationale behind the demotion of `read-from-whole-string'
> and its replacement by "internal" function
> `thing-at-point--read-from-whole-string'?
>
> "This is an internal thingatpt function and should not be used."
>
> Should not be used? Really? Why?
"Should not be used" is perhaps over-stating the case, but it's an
internal thingatpt function with a name that didn't reflect that, so
renaming it is appropriate.
> Based on this (seemingly gratuitous) change, existing user code now
> has to fiddle, to be usable in more than one Emacs version (versions
> 0 to 24.5 vs version 25.1).
>
> (if (fboundp 'read-from-whole-string)
> (read-from-whole-string strg)
> (thing-at-point--read-from-whole-string strg))
It's up to you whether you want to use internal Emacs functions, of
course.
Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-02-06 12:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-06 16:52 bug#24383: 25.1.50; Deprecation/internalization of `read-from-whole-string' Drew Adams
2019-11-08 3:38 ` Stefan Kangas
2021-02-06 12:37 ` Lars Ingebrigtsen [this message]
2021-02-06 18:52 ` bug#24383: [External] : " Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im759xsw.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=24383@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).