GNU bug report logs - #27436
26.0.50; cc-defs requires cl instead of cl-lib in master

Previous Next

Packages: emacs, cc-mode;

Reported by: Alex <agrambot <at> gmail.com>

Date: Wed, 21 Jun 2017 06:05:01 UTC

Severity: normal

Found in version 26.0.50

Done: Alex <agrambot <at> gmail.com>

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 27436 in the body.
You can then email your comments to 27436 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#27436; Package emacs. (Wed, 21 Jun 2017 06:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex <agrambot <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 21 Jun 2017 06:05:01 GMT) Full text and rfc822 format available.

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

From: Alex <agrambot <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; cc-defs requires cl instead of cl-lib in master
Date: Wed, 21 Jun 2017 00:04:12 -0600
cc-defs has this condition to check whether or not to include cl-lib:

======================================
(and (fboundp 'mapcan)
     (subrp (symbol-function 'mapcan)))
======================================

As of 466ee1b3ea, Emacs now has a built in mapcan, so the above returns
true.

Other code in cc-defs.el uses (featurep 'xemacs). Is there a reason why
it can't be used here?




Added indication that bug 27436 blocks24655 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 21 Jun 2017 18:50:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#27436; Package emacs,cc-mode. (Sun, 25 Jun 2017 14:15:03 GMT) Full text and rfc822 format available.

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

From: Alan Mackenzie <acm <at> muc.de>
To: Alex <agrambot <at> gmail.com>
Cc: 27436 <at> debbugs.gnu.org
Subject: Re: bug#27436: 26.0.50; cc-defs requires cl instead of cl-lib in
 master
Date: Sun, 25 Jun 2017 14:13:01 +0000
Hello, Alex.

On Wed, Jun 21, 2017 at 00:04:12 -0600, Alex wrote:
> cc-defs has this condition to check whether or not to include cl-lib:

> ======================================
> (and (fboundp 'mapcan)
>      (subrp (symbol-function 'mapcan)))
> ======================================

> As of 466ee1b3ea, Emacs now has a built in mapcan, so the above returns
> true.

Yes.  Thanks for taking the trouble to report this bug.

I've committed a fix to master.  I'd be grateful if you would confirm it
fixes the problem properly, or tell me what's not quite right.

> Other code in cc-defs.el uses (featurep 'xemacs). Is there a reason why
> it can't be used here?

CC Mode has always favoured testing features rather than version numbers
and the the base (X)Emacs, so that if a tested feature becomes or ceases
to be available, CC Mode should pick that up automatically.  That is
illustrated by the current case, just that here the actual test used was
suboptimal.  Hopefully it is now OK.

-- 
Alan Mackenzie (Nuremberg, Germany).




Reply sent to Alex <agrambot <at> gmail.com>:
You have taken responsibility. (Sun, 25 Jun 2017 19:53:02 GMT) Full text and rfc822 format available.

Notification sent to Alex <agrambot <at> gmail.com>:
bug acknowledged by developer. (Sun, 25 Jun 2017 19:53:02 GMT) Full text and rfc822 format available.

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

From: Alex <agrambot <at> gmail.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 27436-done <at> debbugs.gnu.org
Subject: Re: bug#27436: 26.0.50;
 cc-defs requires cl instead of cl-lib in master
Date: Sun, 25 Jun 2017 13:51:31 -0600
Alan Mackenzie <acm <at> muc.de> writes:

> Hello, Alex.
>
> On Wed, Jun 21, 2017 at 00:04:12 -0600, Alex wrote:
>> cc-defs has this condition to check whether or not to include cl-lib:
>
>> ======================================
>> (and (fboundp 'mapcan)
>>      (subrp (symbol-function 'mapcan)))
>> ======================================
>
>> As of 466ee1b3ea, Emacs now has a built in mapcan, so the above returns
>> true.
>
> Yes.  Thanks for taking the trouble to report this bug.
>
> I've committed a fix to master.  I'd be grateful if you would confirm it
> fixes the problem properly, or tell me what's not quite right.
>
>> Other code in cc-defs.el uses (featurep 'xemacs). Is there a reason why
>> it can't be used here?
>
> CC Mode has always favoured testing features rather than version numbers
> and the the base (X)Emacs, so that if a tested feature becomes or ceases
> to be available, CC Mode should pick that up automatically.  That is
> illustrated by the current case, just that here the actual test used was
> suboptimal.  Hopefully it is now OK.

Hello, Alan.

Thanks for the explanation and fix; I can confirm that the problem is
fixed in master. I'll close this bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 24 Jul 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 336 days ago.

Previous Next


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