all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Ryde <user42@zip.com.au>
To: bug-gnu-emacs@gnu.org
Subject: bug#2453: elint args for encode-time
Date: Tue, 24 Feb 2009 08:58:45 +1100	[thread overview]
Message-ID: <87eixo95nu.fsf@blah.blah> (raw)

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

In a buffer containing

    (encode-time 0 0 0 1 1 2009)

the commands

    M-x elint-initialize
    M-x elint-current-buffer

leave in the *Elint* buffer an error

    Wrong number of args: (encode-time 0 0 0 1 1 2009), (second minute hour day month year zone &rest args)

where I believe 6 args to encode-time is right, and should pass the
checks.

I suspect it's elint-unknown-builtin-args making the "zone" arg
mandatory, per below.


Incidentally, can some of the overrides in that list be handled in the
code nowadays?  Running

    (elint-find-builtin-args '(encode-time))

gives back `fn' instead of the function name, matched out of the
docstring (documentation 'encode-time).  Maybe that could be
transformed, or maybe some of the help funcs can do that already.




In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2008-11-10 on raven, modified by Debian
configured using `configure  '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU
  locale-coding-system: iso-8859-1
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  iswitchb-mode: t
  show-paren-mode: t
  encoded-kbd-mode: t
  file-name-shadow-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t


2009-02-24  Kevin Ryde  <user42@zip.com.au>

	* emacs-lisp/elint.el (elint-unknown-builtin-args): Correction to args
	for encode-time.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: elint.el.unknown-builtin.diff --]
[-- Type: text/x-diff, Size: 623 bytes --]

*** elint.el	07 Jan 2009 11:29:25 +1100	1.23
--- elint.el	24 Feb 2009 08:46:25 +1100	
***************
*** 107,113 ****
      (if cond then &rest else)
      (apply function &rest args)
      (format string &rest args)
!     (encode-time second minute hour day month year zone &rest args)
      (min &rest args)
      (logand &rest args)
      (logxor &rest args)
--- 107,113 ----
      (if cond then &rest else)
      (apply function &rest args)
      (format string &rest args)
!     (encode-time second minute hour day month year &optional zone)
      (min &rest args)
      (logand &rest args)
      (logxor &rest args)

             reply	other threads:[~2009-02-23 21:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e5bpss1pgf.fsf@fencepost.gnu.org>
2009-02-23 21:58 ` Kevin Ryde [this message]
2009-02-24  3:40   ` bug#2453: marked as done (elint args for encode-time) Emacs bug Tracking System
     [not found]   ` <handler.2453.D2453.12354463787479.notifdone@emacsbugs.donarmstrong.com>
2009-02-24 21:09     ` bug#2453: closed by Glenn Morris <rgm@gnu.org> (Re: bug#2453: elint " Kevin Ryde
2009-02-25 16:50       ` Stefan Monnier
2009-02-25 17:36         ` Glenn Morris
2009-02-26  0:14         ` Kevin Ryde

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=87eixo95nu.fsf@blah.blah \
    --to=user42@zip.com.au \
    --cc=2453@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@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.