GNU bug report logs - #18203
24.4.50; `ffap-url-p' should NOT be a defsubst

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 5 Aug 2014 20:23:01 UTC

Severity: wishlist

Tags: fixed

Found in version 24.4.50

Fixed in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18203 in the body.
You can then email your comments to 18203 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18203; Package emacs. (Tue, 05 Aug 2014 20:23:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 05 Aug 2014 20:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50; `ffap-url-p' should NOT be a defsubst
Date: Tue, 5 Aug 2014 13:21:34 -0700 (PDT)
There is NO reason for this to be a defsubst.  There is no reason for
users not to take advantage of this function generally.

In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-06-28 on ODIEONE
Bzr revision: 117431 rgm <at> gnu.org-20140628015517-eku6hj8mpgcvfnso
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/snapshot/trunk
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
 LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include''




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18203; Package emacs. (Fri, 25 Dec 2015 19:45:02 GMT) Full text and rfc822 format available.

Message #8 received at 18203 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 18203 <at> debbugs.gnu.org
Subject: Re: bug#18203: 24.4.50; `ffap-url-p' should NOT be a defsubst
Date: Fri, 25 Dec 2015 20:44:15 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

> There is NO reason for this to be a defsubst.  There is no reason for
> users not to take advantage of this function generally.

I changed it to a defun, but I don't know what you mean by "There is no
reason for users not to take advantage of this function generally.".
You can use a defsubst just as you would a defun.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 25 Dec 2015 19:45:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.2, send any further explanations to 18203 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 25 Dec 2015 19:45:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18203; Package emacs. (Fri, 25 Dec 2015 22:45:02 GMT) Full text and rfc822 format available.

Message #15 received at 18203 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 18203 <at> debbugs.gnu.org
Subject: RE: bug#18203: 24.4.50; `ffap-url-p' should NOT be a defsubst
Date: Fri, 25 Dec 2015 14:44:16 -0800 (PST)
> > There is NO reason for this to be a defsubst.  There is no reason for
> > users not to take advantage of this function generally.
> 
> I changed it to a defun,

Thank you.

> but I don't know what you mean by "There is no
> reason for users not to take advantage of this function generally.".
> You can use a defsubst just as you would a defun.

No, you cannot.

If existing code invokes a defsubst and you have only the compiled
version of that code, then you have no access to the function
defined by that defsubst.  The function _does not exist_ at runtime.
You cannot advise it or debug it, and redefining it has no effect.

Taking advantage of the function _"generally"_ includes having it
available at runtime - it requires its existence _as a function_.

`defsubst's are almost a misfeature nowadays.  In any case, they
be used should rarely, and only with good justification.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 23 Jan 2016 12:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:06 GMT) Full text and rfc822 format available.

bug Marked as fixed in versions 26.1. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:06 GMT) Full text and rfc822 format available.

bug No longer marked as fixed in versions 25.2. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:06 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 01 Jan 2017 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 230 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.