From: Joris Steyn <jorissteyn@gmail.com>
To: 18845@debbugs.gnu.org
Subject: bug#18845: 24.4; cc-mode derived modes broken because cl is used but not required
Date: Sun, 26 Oct 2014 23:02:38 +0100 [thread overview]
Message-ID: <CAAwT9LNXS2Wc0+-vOsXSxKu8WR2PTFYoP3DvyZEvAW9S3w2CVg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3517 bytes --]
cc-mode in emacs 24.4 uses the cl compatibility package at compile-time
but does not require it when used like this:
(require 'cc-mode)
(eval-when-compile
(require 'cc-langs))
; Symbol's function definition is void: set-difference
(c-lang-const c-matchers-2 c)
; Symbol's function definition is void: cl-macroexpand-all
(c-lang-defconst c-other-kwds t nil)
I observed breakage of php-mode and csharp-mode, but this affects any
derived mode that does not require cl or requires cl-lib instead of cl.
This seems to be recently fixed in trunk (revno 118032) so maybe no
further action is required and this bug report can be closed.
What would be the most appropriate way for affected derived modes to
work around this issue? Suppose I add:
(eval-when-compile
(if (and (= emacs-major-version 24) (= emacs-minor-version 4))
(require 'cl)))
would that be fine and won't there be a future 24.4 release that fixes
this issue?
In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.3)
of 2014-10-21 on bitzer.hoetzel.info
Windowing system distributor `The X.Org Foundation', version 11.0.11601000
System Description: Arch Linux
Configured using:
`configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --with-x-toolkit=gtk3 --with-xft
'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'
Important settings:
value of $LANG: C
locale-coding-system: nil
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x r e p o <tab> r <tab> <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils help-mode easymenu time-date tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
Memory information:
((conses 16 72116 7225)
(symbols 48 17651 0)
(miscs 40 37 96)
(strings 32 9247 4331)
(string-bytes 1 253012)
(vectors 16 8990)
(vector-slots 8 383789 17145)
(floats 8 64 304)
(intervals 56 210 111)
(buffers 960 12)
(heap 1024 26191 1090))
[-- Attachment #2: Type: text/html, Size: 4025 bytes --]
next reply other threads:[~2014-10-26 22:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-26 22:02 Joris Steyn [this message]
2014-10-30 3:54 ` bug#18845: 24.4; cc-mode derived modes broken because cl is used but not required Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAwT9LNXS2Wc0+-vOsXSxKu8WR2PTFYoP3DvyZEvAW9S3w2CVg@mail.gmail.com \
--to=jorissteyn@gmail.com \
--cc=18845@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.