[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#2453: elint args for encode-time

From: Kevin Ryde
Subject: bug#2453: elint args for encode-time
Date: Tue, 24 Feb 2009 08:58:45 +1100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

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

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' 
 '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g 

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  <address@hidden>

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

Attachment: elint.el.unknown-builtin.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]