emacs-devel
[Top][All Lists]
Advanced

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

Re: asm-mode patch to allow per-file comment character setting from file


From: Richard Stallman
Subject: Re: asm-mode patch to allow per-file comment character setting from file locals
Date: Tue, 13 Jun 2006 19:20:44 -0400

When you have a construct such as gas-register-machine-dependent
that generates a defun, it should be a macro, not a function.
The macro name should start with `def'.

And the name of the function it defines should not be constructed
like this

  (let ((mode-func (intern (format "gas-%s-mode" name))))

Instead, the name of the function should appear as the first argument
of the macro.

Those are general principles for Lisp programming which ought to be
applied here.


Comparing the usefulness for editing of these two proposed extensions
to asm mode is a different question.  It would be useful for those
who are interested in such things to compare them and state their
opinions.




reply via email to

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