From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org, Stefan <monnier@iro.umontreal.ca>,
"Kim F. Storm" <storm@cua.dk>
Subject: Re: Optimizations for flymake
Date: Tue, 02 Nov 2004 13:34:38 +0100 [thread overview]
Message-ID: <x53bzsctup.fsf@lola.goethe.zz> (raw)
In-Reply-To: <20041102122128.98913.qmail@web54101.mail.yahoo.com> (Pavel Kobiakov's message of "Tue, 2 Nov 2004 04:21:28 -0800 (PST)")
Pavel Kobiakov <pk_at_work@yahoo.com> writes:
> --- David Kastrup <dak@gnu.org> wrote:
>> storm@cua.dk (Kim F. Storm) writes:
>>
>> > Stefan <monnier@iro.umontreal.ca> writes:
>> >
>> >>> ! (defsubst flymake-makehash(&optional test)
>> >>> ! (if (featurep 'xemacs)
>> >>> ! (if test (make-hash-table :test test)
>> (make-hash-table))
>> >>> ! (makehash test)))
>> >>
>> >> Why not (if (fboundp 'make-hash-table) ...) ?
>> >
>> > Right, that's better.
>>
>> makehash is a compiled Lisp function in `subr'.
>> (makehash &optional TEST)
>>
>> This function is obsolete since 21.4;
>> use `make-hash-table' instead.
>>
>> Not documented.
>>
>> [back]
>>
>> In short, just rip out the test and always use
>> make-hash-table.
>>
>> --
>> David Kastrup, Kriemhildstr. 15, 44793 Bochum
>>
>
> Getting rid of makehash won't allow Flymake to run on
> older versions of Emacs, so I think it's not a good
> idea.
;;; flymake.el -- a universal on-the-fly syntax checker
;; Copyright (C) 2003 Free Software Foundation
;; Author: Pavel Kobiakov <pk_at_work@yahoo.com>
;; Maintainer: Pavel Kobiakov <pk_at_work@yahoo.com>
;; Version: 0.3
;; Keywords: c languages tools
;; This file is part of GNU Emacs.
I think that in the file distributed as part of GNU Emacs,
compatibility to versions of old GNU Emacs versions should not really
be too high priority. Of course, it is your decision as maintainer.
I just want to note that Emacs 21.3 is the currently released version
of Emacs, and even that has
make-hash-table is a built-in function.
(make-hash-table &rest KEYWORD-ARGS)
Create and return a new hash table.
Arguments are specified as keyword/argument pairs. The following
arguments are defined:
:test TEST -- TEST must be a symbol that specifies how to compare keys.
Default is `eql'. Predefined are the tests `eq', `eql', and `equal'.
User-supplied test and hash functions can be specified via
`define-hash-table-test'.
[...]
I mean, just _what_ are you trying to be compatible with? You are
using `when' and `unless' which can't be used in Emacs-20.7 anyway
without loading cl-macs or something.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2004-11-02 12:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-01 22:37 Optimizations for flymake Kim F. Storm
2004-11-02 0:17 ` Stefan
2004-11-02 9:10 ` Kim F. Storm
2004-11-02 10:57 ` David Kastrup
2004-11-02 12:21 ` Pavel Kobiakov
2004-11-02 12:34 ` David Kastrup [this message]
2004-11-02 15:48 ` Drew Adams
2004-11-03 12:45 ` Richard Stallman
2004-11-02 12:20 ` Stefan
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=x53bzsctup.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=storm@cua.dk \
/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.