emacs-devel
[Top][All Lists]
Advanced

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

Re: tags for functions


From: Ted Zlatanov
Subject: Re: tags for functions
Date: Thu, 22 Jan 2009 14:09:17 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

On Thu, 22 Jan 2009 14:39:40 -0500 "Stefan Monnier" <address@hidden> wrote: 

>> Let's go with
>> (defun my-move-defun ()
>> "docstring"
>> :keywords '(move)
>> ...)

SM> How 'bout

SM>     (defun my-move-defun ()
SM>       "docstring"
SM>       (declare (keywords (move)))
SM>       ...)

SM> PS: Don't take this to mean I think this is a good idea.  I haven't had
SM> time to think about it or even read the thread for that matter.

The CL `declare' macro could be used based on a quick read of the
source, assuming that's what you mean, but the CL docs don't show how it
could be used generally.  Should I modify `cl-do-proclaim' to keep track
of the keywords myself when `declare' is called?

It does seem cleaner than :keywords at the defun level.

Ted





reply via email to

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