all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#20362: 25.0.50; Byte compiler doesn't know parameter list of `unintern'
@ 2015-04-17 21:36 Philipp Stephani
  2015-04-18  4:37 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Stephani @ 2015-04-17 21:36 UTC (permalink / raw)
  To: 20362


Consider a file with the following content:

    (unintern 'foo)

Loading this file works as expected, but compiling it generates the
warning

    unintern called with 1 argument, but requires 2

But `unintern' doesn't require 2 arguments.

In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2015-04-17 on <redacted>
Repository revision: d5221996f661b5fd913b2e5742f7a8f77e5255eb
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description:	Ubuntu 14.04 LTS

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-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

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
t
Saving file /tmp/unintern.el...
Wrote /tmp/unintern.el
Compiling /tmp/unintern.el...done
Wrote /tmp/unintern.elc

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message dired format-spec
rfc822 mml easymenu 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 warnings byte-opt
compile comint ansi-color ring bytecomp byte-compile cl-extra seq
cl-loaddefs pcase cl-lib cconv mule-util time-date tooltip eldoc
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
elisp-mode 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 cl-preloaded 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 90872 6627)
 (symbols 48 19891 1)
 (miscs 40 504 121)
 (strings 32 15826 4014)
 (string-bytes 1 505589)
 (vectors 16 11836)
 (vector-slots 8 418651 3797)
 (floats 8 96 100)
 (intervals 56 211 0)
 (buffers 976 13)
 (heap 1024 43243 1178))





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#20362: 25.0.50; Byte compiler doesn't know parameter list of `unintern'
  2015-04-17 21:36 bug#20362: 25.0.50; Byte compiler doesn't know parameter list of `unintern' Philipp Stephani
@ 2015-04-18  4:37 ` Stefan Monnier
  2015-05-07 14:49   ` Philipp Stephani
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2015-04-18  4:37 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: 20362

tags 20362 notabug
thanks

> Loading this file works as expected, but compiling it generates the
> warning
>     unintern called with 1 argument, but requires 2
> But `unintern' doesn't require 2 arguments.

That's the `advertized-calling-convention' at work here.  IOW calling
the function with only one argument still works but is deprecated.


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#20362: 25.0.50; Byte compiler doesn't know parameter list of `unintern'
  2015-04-18  4:37 ` Stefan Monnier
@ 2015-05-07 14:49   ` Philipp Stephani
  0 siblings, 0 replies; 3+ messages in thread
From: Philipp Stephani @ 2015-05-07 14:49 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 20362

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

Stefan Monnier <monnier@iro.umontreal.ca> schrieb am Sa., 18. Apr. 2015 um
06:37 Uhr:

> tags 20362 notabug
> thanks
>
> > Loading this file works as expected, but compiling it generates the
> > warning
> >     unintern called with 1 argument, but requires 2
> > But `unintern' doesn't require 2 arguments.
>
> That's the `advertized-calling-convention' at work here.  IOW calling
> the function with only one argument still works but is deprecated.
>
>
Indeed. I only looked at the implementation, not the documentation. Sorry
for the noise.

[-- Attachment #2: Type: text/html, Size: 866 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-07 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-17 21:36 bug#20362: 25.0.50; Byte compiler doesn't know parameter list of `unintern' Philipp Stephani
2015-04-18  4:37 ` Stefan Monnier
2015-05-07 14:49   ` Philipp Stephani

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.